2D GUI with Magnum?

291 views
Skip to first unread message

adam.el...@gmail.com

unread,
Feb 7, 2017, 6:30:41 AM2/7/17
to Magnum C++/OpenGL Graphics Engine
I have been considering rewriting part of the GUI for a mobile app already written with using JUCE Component classes, directly with OpenGL. So I can have more flexibility and circumvent using the JUCE Component system on iOS and Android (this will also simplify my project). The JUCE Components are already being drawn to an OpenGL context. 

Then I found this library! Initially looks like a way to avoid having to learn OpenGL too deeply (?), plus using a modern C++ API to draw graphics. 

Are there any examples of 2D GUI interfaces drawn with Magnum? I only found the triangle example in the repository.

Thanks!

Vladimír Vondruš

unread,
Feb 12, 2017, 10:57:23 AM2/12/17
to adam.el...@gmail.com, Magnum C++/OpenGL Graphics Engine
Hi,

sorry for belated reply -- yes, Magnum should avoid the need to bother about nasty low-level issues with OpenGL like state management and platform-specific extensions :)

There is a bit more examples in the https://github.com/mosra/magnum-examples repository, among them is a text rendering one. However, what might actually interest you is the new experimental UI library that's part of https://github.com/mosra/magnum-extras repository. It's still considered heavily experimental, but we've been using it internally for a while now. There's unfortunately no tutorial or high-level overview of the capabilities yet, but you can have a look at the sources of the `gallery.cpp` file to see how it is used. In hopefully not-so-far future I'm planning to expand it, write proper docs for it and make some examples with it.

Hope this helps you :)

Regards
mosra

______________________________________________________________
> Od: adam.el...@gmail.com
> Komu: Magnum C++/OpenGL Graphics Engine <magnum...@googlegroups.com>
> Datum: 07.02.2017 12:30
> Předmět: [magnum] 2D GUI with Magnum?
>--
>You received this message because you are subscribed to the Google Groups "Magnum C++/OpenGL Graphics Engine" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to magnum-engin...@googlegroups.com.
>To post to this group, send email to magnum...@googlegroups.com.
>Visit this group at https://groups.google.com/group/magnum-engine.
>For more options, visit https://groups.google.com/d/optout.
>
>
Reply all
Reply to author
Forward
0 new messages