This is a small wrapper around magnum graphics to easily load/create objects and move them within the scene. Suitable to draw simple mechanical motions or function-based colored meshes.
- Bernardo Fichera ([email protected])
- primitive
- import from file
- Unify Object and DrawableObject
- Fix draw when material is present
- Fix set of mesh, color, material etc
- Remove debug messages
- Fix vertical rotation (problem when camera not in y=0, it keeps rotating about old y)
Work in progress. Check the examples to get an idea.
This library depends on Corrade
git clone https://github.com/mosra/corrade.git ([email protected]:mosra/corrade.git)
cd corrade && mkdir build && cmake .. && make && (sudo) make install
and Eigen
git clone https://gitlab.com/libeigen/eigen.git ([email protected]:libeigen/eigen.git)
cd eigen && mkdir build && cmake .. && (sudo) make install
In addition, in order to compile the project, install my waf-tools.
Clone the repository
git clone https://github.com/nash169/graphics-lib.git ([email protected]:nash169/graphics-lib.git)
Compile and install using waf commands
waf configure build
or
waf configure && waf
Install the library (optional)
(sudo) waf install
If you want to make a clean installation
(sudo) waf distclean configure build install
In order to set the desired compiler define the environment variable CXX=<g++,clang++,icpc> (gnu, clang and intel compiler respectively).
It is highly recommended to compile with AVX support
waf configure --release
Compile static library (default option)
waf configure --static
Compile shared library
waf configure --shared
Define a specific installation path
waf configure --prefix=/path/to/install/folder
Once the library is compiled all the examples can be run with
./build/src/examples/<name_example>