Jun
29
2014

June updates to Magnum

IT

The Magnum C++11 and OpenGL/OpenGL ES/WebGL graphics engine gained experimental Android support, windowless applications on OS X and Windows, uses SDL2 as the default toolkit, adds new texture and mesh features, improves build system and got huge documentation review.

The June snapshot is available under snapshot-2014-06 tag in Corrade, Magnum, Magnum Plugins, Magnum Integration and Magnum Examples GitHub repositories. This article will describe the most important changes, for all the commits that went to master branches since the January snapshot (tagged snapshot-2014-01) see logs in Corrade, Magnum, Magnum Plugins and Magnum Integration, respectively.

For compatibility branch there is tag snapshot-2014-06-compatibility in Corrade, Magnum, Magnum Plugins and Magnum Examples repositories.

Experimental Android support

This snapshot contains experimental support for Android, see Corrade and Magnum building documentation. Initial platform support is in Platform::AndroidApplication.

Windowless applications on Mac OS X and Windows

Windowless applications are now supported on Windows and, thanks to joint effort by @amaranth and @ArEnSc, also on OS X. All command-line utilities such as magnum-info, magnum-distancefieldconverter and magnum-fontconverter are thus now available on all three major platforms.

Dropping GCC 4.6 support from master

Since GCC 4.7 is available even in LTS Ubuntu, it was time to drop support for 4.6 from master and providing it only in compatibility branch. Master branch now makes use of additonal C++11 features, such as template aliases, delegating constructors, user-defined literals etc., resulting in more maintainable code.

Using SDL2 as the default windowing toolkit

Since LTS Ubuntu now also has SDL2 in the repositories, it is now used in the documentation, tutorials and examples as the default windowing toolkit. The GLUT toolkit, which was used before, is still available in the library, but it's usage is not recommended and it probably won't receive new features anymore.

Installing debug and release libraries and plugins into separate locations

As explained in GitHub Issue #45, on some platforms it is not possible to mix debug and release libraries, as it leads to linker errors. Additionally it also wasn't possible to install both debug and release libraries into the same location, causing various inconveniences. Since this release, debug libraries are installed with -d suffix and debug plugins are installed into separate magnum-d/ directory. From end-user point of view not much has changed, CMake will automatically select proper libraries based on build type and also tries the best to select appropriate plugin directory. See documentation about plugins for more information about plugin directories on multi-configuration build systems.

Corrade

Dependency changes

  • Minimal required GCC version is now 4.7. Support for GCC 4.6 has been moved to compatibility branch.

New features

Changes

  • Libraries and plugins in debug build configuration are installed to different locations, making it possible to have debug and release libraries installed alongside each other
  • Compiler compatibility mode is now automatically detected by CMake to make the building easier
  • It's no longer needed to explicitly test validity of pointer returned from PluginManager::Manager::instance()
  • Improved error reporting in PluginManager library
  • Thorough documentation review, fixes and improvements

Bug fixes

  • Fixed corner case when Utility::Resource::getRaw() could unexpectedly return nullptr.

Deprecated APIs

No API was deprecated in this release.

Removed APIs

Magnum

Dependency changes

  • Minimal required GCC version is now 4.7. Support for GCC 4.6 has been moved to compatibility branch.

New features

Changes

Bug fixes

  • Fixed usage with OpenGL ES 3.1 contexts (it complained about invalid version)
  • Fixed compilation of Shaders::MeshVisualizer under WebGL and with ANGLE, see GitHub Issue #56
  • Fixed various build issues on Mac OS X, see GitHub Issues #51 and #54

Deprecated APIs

Removed APIs

  • All functionality deprecated in October snapshot has been removed, namely:
    • Removed deprecated raw-pointer versions of Buffer::setData() and Buffer:setSubData(), use overloads taking Containers::ArrayReference instead
    • Removed deprecated <Magnum/ImageFormat.h> header and ImageFormat/ImageType enums, use <Magnum/ColorFormat.h> header and ColorFormat/ColorType enums instead
    • Removed deprecated Matrix2 and Matrix2d typedefs, use Matrix2x2 and Matrix2x2d instead
    • Removed deprecated <Magnum/Swizzle.h> header and Magnum::swizzle() function, use <Magnum/Math/Swizzle.h> and Math::swizzle() instead
    • Removed deprecated *::maxSupported*() limit queries, use the less verbose *::max*() versions instead
    • Removed deprecated Platform::*Application::InputEvent::Modifier::*Button enum values, use Platform::*Application::*Event::buttons() function and Platform::*Application::*Event::Button enum instead
  • Platform::Sdl2Application::Configuration::Flag enum and related functions were replaced with WindowFlag, as the name would now conflict with context flags

Internal changes

  • Removed last remaining bits of global state, everything is now stored per-context.

Magnum Bootstrap

Changes

  • All windowed applications now use SDL2 by default. Minimal application using GLUT is available in new base-glut branch.
  • Adapted all bootstrap applications to Magnum improvements

Magnum Plugins

Dependency changes

  • Minimal required GCC version is now 4.7. Support for GCC 4.6 has been moved to compatibility branch.

Changes

  • Libraries and plugins in debug build configuration are installed to different locations, making it possible to have debug and release libraries installed alongside each other.

Magnum Integration

Dependency changes

  • Minimal required GCC version is now 4.7.

Changes

  • Libraries and plugins in debug build configuration are installed to different locations, making it possible to have debug and release libraries installed alongside each other.

Deprecated APIs

No API was deprecated in this release.

Removed APIs

No deprecated API was removed in this release.

» Add comment

Discussion: 7 comments

Magnum is really cool. Crystal clear design; I'm impressed.
Oh, thank you very much! :-)
Your project have a great potential. Awesome job.
» Reply 19.10.2014 08:35 | Insonyscuts | web | Sale sawhorse legs are available in most hardware shops

sale sawhorse legs are available in most hardware shops

John Doe <a href=http://www.templeworksleeds.co.uk/...uk/</a> in Seven "METHODICAL, exacting and worst <a href=http://www.pdrco.co.uk/>cheap Michael Kors bags</a> of all,patient," is how Morgan Freeman's world weary detectivedescribes Kevin Spacey's otherwise stark raving serial killer inBut, judging by the final scene where he presents GwynethPaltrow's severed head to the <a href=http://www.thvs.ca/>wholesale golf clubs</a> cops in a box, Freeman forgot tomention about him also being really good at gift wrapping.Tony in Tony: London Serial Killer FLAMIN' Nora, but this 2009drama was grim. In it, Peter Ferdinado played a socially inept anddeeply disturbed <a href=http://www.virtualapps.co.uk/>Louis Vuitton Outlet UK</a> man clearly based <a href=http://www.cmprnews.co.uk/...news.co.uk/</a> on reallife loon Dennis Nilsen who, in between watching cheesy '80s action videos and screaming athis own reflection in the bathroom mirror, brought home various waifs WAIFS. Stolen goods waived or scattered by a thief in his flight in order to effect his escape.2.


<a href=http://www.wohnzimmer.co.uk/>North Face Outlet Uk</a>
<a href=http://www.sproutart.co.uk/>North Face Outlet</a>
<a href=http://www.proroofcleaning.co.uk/>North Face uk</a>
<a href=http://www.blackroots.co.uk/>michael kors outlet uk</a>
<a href=http://www.pinkwizard.co.uk/>michael kors outlet</a>
<a href=http://www.pdrco.co.uk/>cheap michael kors</a>
<a href=http://www.rodelfishery.co.uk/>cheap michael kors bags</a>
<a href=http://www.cfcresults.co.uk/>michael kors bags</a>
<a href=http://www.blauerdiamant.com/>michael kors bags uk</a>
<a href=http://www.templeworksleeds.co.uk/...uk/</a>
<a href=http://www.lifesapeach.co.uk/...h.co.uk/</a>
<a href=http://www.yourrightsyourlanguage.ca/...</a>
<a href=http://www.broadviewcu.ca/...dviewcu.ca/</a>
<a href=http://www.magnapulse.ca/...gnapulse.ca/</a>
<a href=http://www.jfxmusic.co.uk/...usic.co.uk/</a>
<a href=http://www.rasrajindia.co.uk/...a.co.uk/</a>
<a href=http://www.LeakingCauldron.co.uk/....uk/</a>
<a href=http://www.icoplastic.co.uk/...ic.co.uk/</a>
<a href=http://www.acornpaws.co.uk/...aws.co.uk/</a>
<a href=http://www.cmprnews.co.uk/...news.co.uk/</a>
<a href=http://www.vetstaff.co.uk>http:/...uk</a>
<a href=http://www.duhs.co.uk>http:/....co.uk</a>
<a href=http://www.aashanti.co.uk>http:/...uk</a>
<a href=http://www.sodburytc.co.uk>http:/...k</a>
<a href=http://www.redturtle.co.uk>http:/...k</a>
<a href=http://www.td1radio.co.uk?>http:/...?</a>
<a href=http://www.skyuserclan.co.uk>http:/...lt;/a>
<a href=http://www.jbents.co.uk>http:/...o.uk</a>
<a href=http://www.ghyllheadoec.co.uk/>new balance outlet uk</a>
<a href=http://www.odacrefamily.ca/>new balance shoes uk</a>
<a href=http://www.atelier-michele-b.fr/>Hollister France Pas Cher</a>
<a href=http://www.carre-spectacles.fr/>Hollister pas cher</a>
<a href=http://www.2xescorts.co.uk/...rts.co.uk/</a>
» Reply 21.10.2014 20:38 | Insonyscuts | web | Cheap one of those convictions was blind

cheap one of those convictions was blind

It a small town, about 15,000 people but we went to university in Hamilton which is a large city. We never said we were from Hamilton, as in Auckland they hate people from Hamilton. Is to New christian Louis Vuitton <a href=http://www.magnapulse.ca/...gnapulse.ca/</a> Outlet UK louboutin Zealand what football is to Brazil, yet surprisingly, Dolf admits to being one of the few <a href=http://www.virtualapps.co.uk/>Louis Vuitton Outlet UK</a> Kiwis not taken with the sport..


<a href=http://www.wohnzimmer.co.uk/>North Face Outlet Uk</a>
<a href=http://www.sproutart.co.uk/>North Face Outlet</a>
<a href=http://www.proroofcleaning.co.uk/>North Face uk</a>
<a href=http://www.blackroots.co.uk/>michael kors outlet uk</a>
<a href=http://www.pinkwizard.co.uk/>michael kors outlet</a>
<a href=http://www.pdrco.co.uk/>cheap michael kors</a>
<a href=http://www.rodelfishery.co.uk/>cheap michael kors bags</a>
<a href=http://www.cfcresults.co.uk/>michael kors bags</a>
<a href=http://www.blauerdiamant.com/>michael kors bags uk</a>
<a href=http://www.templeworksleeds.co.uk/...uk/</a>
<a href=http://www.lifesapeach.co.uk/...h.co.uk/</a>
<a href=http://www.yourrightsyourlanguage.ca/...</a>
<a href=http://www.broadviewcu.ca/...dviewcu.ca/</a>
<a href=http://www.magnapulse.ca/...gnapulse.ca/</a>
<a href=http://www.jfxmusic.co.uk/...usic.co.uk/</a>
<a href=http://www.rasrajindia.co.uk/...a.co.uk/</a>
<a href=http://www.LeakingCauldron.co.uk/....uk/</a>
<a href=http://www.icoplastic.co.uk/...ic.co.uk/</a>
<a href=http://www.acornpaws.co.uk/...aws.co.uk/</a>
<a href=http://www.cmprnews.co.uk/...news.co.uk/</a>
<a href=http://www.vetstaff.co.uk>http:/...uk</a>
<a href=http://www.duhs.co.uk>http:/....co.uk</a>
<a href=http://www.aashanti.co.uk>http:/...uk</a>
<a href=http://www.sodburytc.co.uk>http:/...k</a>
<a href=http://www.redturtle.co.uk>http:/...k</a>
<a href=http://www.td1radio.co.uk?>http:/...?</a>
<a href=http://www.skyuserclan.co.uk>http:/...lt;/a>
<a href=http://www.jbents.co.uk>http:/...o.uk</a>
<a href=http://www.ghyllheadoec.co.uk/>new balance outlet uk</a>
<a href=http://www.odacrefamily.ca/>new balance shoes uk</a>
<a href=http://www.atelier-michele-b.fr/>Hollister France Pas Cher</a>
<a href=http://www.carre-spectacles.fr/>Hollister pas cher</a>
<a href=http://www.2xescorts.co.uk/...rts.co.uk/</a>
» Reply 22.10.2014 21:46 | Insonyscuts | web | Cheap that may be true

cheap <a href=http://www.thebridgepp.co.uk/...p.co.uk/</a> that <a href=http://www.lifesapeach.co.uk/...h.co.uk/</a> may be true

The blaze was the second <a href=http://www.magnapulse.ca/...gnapulse.ca/</a> major fire at the <a href=http://www.virtualapps.co.uk/>Louis Vuitton Outlet UK</a> Jersey shore in seven months, following a September blaze that destroyed about <a href=http://www.magnapulse.ca/...gnapulse.ca/</a> a third of the boardwalk in Seaside Heights and Seaside Park. The boardwalk had just been rebuilt after Sandy. It is now being rebuilt again and many of the same arson investigators who probed the boardwalk fire are investigating the motel blaze as well..


<a href=http://www.wohnzimmer.co.uk/>North Face Outlet Uk</a>
<a href=http://www.sproutart.co.uk/>North Face Outlet</a>
<a href=http://www.proroofcleaning.co.uk/>North Face uk</a>
<a href=http://www.blackroots.co.uk/>michael kors outlet uk</a>
<a href=http://www.pinkwizard.co.uk/>michael kors outlet</a>
<a href=http://www.pdrco.co.uk/>cheap michael kors</a>
<a href=http://www.rodelfishery.co.uk/>cheap michael kors bags</a>
<a href=http://www.cfcresults.co.uk/>michael kors bags</a>
<a href=http://www.blauerdiamant.com/>michael kors bags uk</a>
<a href=http://www.templeworksleeds.co.uk/...uk/</a>
<a href=http://www.lifesapeach.co.uk/...h.co.uk/</a>
<a href=http://www.yourrightsyourlanguage.ca/...</a>
<a href=http://www.broadviewcu.ca/...dviewcu.ca/</a>
<a href=http://www.magnapulse.ca/...gnapulse.ca/</a>
<a href=http://www.jfxmusic.co.uk/...usic.co.uk/</a>
<a href=http://www.rasrajindia.co.uk/...a.co.uk/</a>
<a href=http://www.LeakingCauldron.co.uk/....uk/</a>
<a href=http://www.icoplastic.co.uk/...ic.co.uk/</a>
<a href=http://www.acornpaws.co.uk/...aws.co.uk/</a>
<a href=http://www.cmprnews.co.uk/...news.co.uk/</a>
<a href=http://www.vetstaff.co.uk>http:/...uk</a>
<a href=http://www.duhs.co.uk>http:/....co.uk</a>
<a href=http://www.aashanti.co.uk>http:/...uk</a>
<a href=http://www.sodburytc.co.uk>http:/...k</a>
<a href=http://www.redturtle.co.uk>http:/...k</a>
<a href=http://www.td1radio.co.uk?>http:/...?</a>
<a href=http://www.skyuserclan.co.uk>http:/...lt;/a>
<a href=http://www.jbents.co.uk>http:/...o.uk</a>
<a href=http://www.ghyllheadoec.co.uk/>new balance outlet uk</a>
<a href=http://www.odacrefamily.ca/>new balance shoes uk</a>
<a href=http://www.atelier-michele-b.fr/>Hollister France Pas Cher</a>
<a href=http://www.carre-spectacles.fr/>Hollister pas cher</a>
<a href=http://www.2xescorts.co.uk/...rts.co.uk/</a>
» Reply 23.10.2014 03:02 | Insonyscuts | web | Cheap right now they are just running amok

cheap right now they are just running amok

The Central <a href=http://www.fosig.co.uk/>Louis Vuitton Outlet</a> <a href=http://www.bbme.co.uk/>cheap christian louboutin shoes</a> Florida Archers <a href=http://www.acornpaws.co.uk/...aws.co.uk/</a> club is a slightly longer drive from Orlando, but the state of <a href=http://www.pdrco.co.uk/>cheap Michael Kors bags</a> the art archery center is well worth the drive. An <a href=http://www.fosig.co.uk/>Louis Vuitton Outlet</a> hour southwest in Fort Meade, the nonprofit club rests along a perfect backdrop of protected woods and wetlands of the Peace River. The Central Florida Archers meets for monthly competitions and weekly shoots, typically on Tuesday and Saturday mornings.


<a href=http://www.wohnzimmer.co.uk/>North Face Outlet Uk</a>
<a href=http://www.sproutart.co.uk/>North Face Outlet</a>
<a href=http://www.proroofcleaning.co.uk/>North Face uk</a>
<a href=http://www.blackroots.co.uk/>michael kors outlet uk</a>
<a href=http://www.pinkwizard.co.uk/>michael kors outlet</a>
<a href=http://www.pdrco.co.uk/>cheap michael kors</a>
<a href=http://www.rodelfishery.co.uk/>cheap michael kors bags</a>
<a href=http://www.cfcresults.co.uk/>michael kors bags</a>
<a href=http://www.blauerdiamant.com/>michael kors bags uk</a>
<a href=http://www.templeworksleeds.co.uk/...uk/</a>
<a href=http://www.lifesapeach.co.uk/...h.co.uk/</a>
<a href=http://www.yourrightsyourlanguage.ca/...</a>
<a href=http://www.broadviewcu.ca/...dviewcu.ca/</a>
<a href=http://www.magnapulse.ca/...gnapulse.ca/</a>
<a href=http://www.jfxmusic.co.uk/...usic.co.uk/</a>
<a href=http://www.rasrajindia.co.uk/...a.co.uk/</a>
<a href=http://www.LeakingCauldron.co.uk/....uk/</a>
<a href=http://www.icoplastic.co.uk/...ic.co.uk/</a>
<a href=http://www.acornpaws.co.uk/...aws.co.uk/</a>
<a href=http://www.cmprnews.co.uk/...news.co.uk/</a>
<a href=http://www.vetstaff.co.uk>http:/...uk</a>
<a href=http://www.duhs.co.uk>http:/....co.uk</a>
<a href=http://www.aashanti.co.uk>http:/...uk</a>
<a href=http://www.sodburytc.co.uk>http:/...k</a>
<a href=http://www.redturtle.co.uk>http:/...k</a>
<a href=http://www.td1radio.co.uk?>http:/...?</a>
<a href=http://www.skyuserclan.co.uk>http:/...lt;/a>
<a href=http://www.jbents.co.uk>http:/...o.uk</a>
<a href=http://www.ghyllheadoec.co.uk/>new balance outlet uk</a>
<a href=http://www.odacrefamily.ca/>new balance shoes uk</a>
<a href=http://www.atelier-michele-b.fr/>Hollister France Pas Cher</a>
<a href=http://www.carre-spectacles.fr/>Hollister pas cher</a>
<a href=http://www.2xescorts.co.uk/...rts.co.uk/</a>