Magnum is a 2D/3D graphics engine written in C++11/C++14 and modern OpenGL. Its
Magnum — *Lightweight and modular C++11/C++14 graphics middleware to power your dreams.*
goal is to simplify low-level graphics development and interaction with OpenGL
using recent C++11/C++14 features and to abstract away platform-specific
Looking for an open-source library that gives you graphics abstraction and
issues.
platform independence on major desktop, mobile and web platforms? Do you want
it to have all the convenience utilities around yet stay small, powerful and
[](https://gitter.im/mosra/magnum?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
not give up on flexibility? *Here it is.* And it's free to use, even for
commercial purposes.
DESIGN GOALS
============
[](https://gitter.im/mosra/magnum?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://travis-ci.org/mosra/magnum) [](https://ci.appveyor.com/project/mosra/magnum/branch/master) [](https://coveralls.io/github/mosra/magnum?branch=master)
* **2D is not an ugly stepchild.** Many engines out there were created as
- Project homepage — http://magnum.graphics/
pure 2D or 3D and the alternative is usually just an afterthought, if
- Documentation — http://doc.magnum.graphics/
present at all. If you want to do your next project in 2D only, you have to
*Looking for more?* There's a [Showcase page](http://magnum.graphics/showcase/)
right behind the corner with lots of WebGL demos.
SUPPORTED PLATFORMS
SUPPORTED PLATFORMS
===================
===================
- **Linux** and embedded Linux
- **Windows**, **Windows RT** (Store/Phone)
- **macOS**, **iOS**
- **Android**
- **Web** ([asm.js](http://asmjs.org/) or [WebAssembly](http://webassembly.org/)),
through [Emscripten](http://kripken.github.io/emscripten-site/)
Graphics APIs:
Graphics APIs:
* **OpenGL** 2.1 through 4.5, core profile functionality and modern
-**OpenGL** 2.1 through 4.5, core profile functionality and modern
extensions
extensions
* **OpenGL ES** 2.0, 3.0, 3.1 and extensions to match desktop OpenGL
-**OpenGL ES** 2.0, 3.0, 3.1 and extensions to match desktop OpenGL
functionality
functionality
* **WebGL** 1.0, 2.0 and extensions to match desktop OpenGL functionality
- **WebGL** 1.0, 2.0 and extensions to match desktop OpenGL functionality
Platforms:
See the [Build Status page](http://magnum.graphics/build-status/) for detailed
per-platform build status.
* **Linux** and embedded Linux (natively using GLX/EGL and Xlib or through
SDL2, GLFW or GLUT toolkit) [](https://travis-ci.org/mosra/magnum) [](https://coveralls.io/github/mosra/magnum?branch=master)
BUILDING MAGNUM
* **Windows** with both MSVC and MinGW, natively or using ANGLE (through SDL2, GLFW or GLUT toolkit) [](https://ci.appveyor.com/project/mosra/magnum/branch/master)
===============
* **macOS** (through SDL2 or GLFW toolkit) [](https://travis-ci.org/mosra/magnum)
* **Web** (asm.js or WebAssembly), through [Emscripten](http://kripken.github.io/emscripten-site/) [](https://travis-ci.org/mosra/magnum)
FEATURES
========
* Actively maintained Doxygen documentation with tutorials and examples.
Snapshot is available at http://doc.magnum.graphics/magnum/.
* Vector and matrix library with implementation of complex numbers,
quaternions and their dual counterparts for representing transformations.
* Classes wrapping OpenGL using RAII principle and simplifying its usage with
direct state access and automatic fallback for unavailable features.
* Extensible scene graph which can be modified for each specific usage.
* Plugin-based data exchange framework, tools for manipulating meshes,
textures and images.
* Pre-made shaders, primitives and other tools for easy prototyping and
debugging.
INSTALLATION
============
You can either use packaging scripts, which are stored in the `package/`
You can either use packaging scripts, which are stored in the `package/`
subdirectory, or compile and install everything manually using the guide below.
subdirectory, or compile and install everything manually. A short guide is
Note that the [Magnum documentation](http://doc.magnum.graphics/magnum/)
below, for complete documentation for all platforms head over to the
contains more comprehensive guide for building, packaging and crosscompiling.