libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
model.hpp File Reference

OpenGL 3-D mesh and model classes with deformation support. More...

#include "config.h"
#include "mx.hpp"
#include "gl.hpp"
#include "util.hpp"
#include <vector>
#include <string>
#include <glm/glm.hpp>
Include dependency graph for model.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mx::MXMaterial
 Parsed Wavefront MTL material properties. More...
class  mx::Mesh
 A single OpenGL sub-mesh: geometry buffers, texture bindings, and deformers. More...
class  mx::Model
 A collection of Mesh objects loaded from an OBJ file. More...

Namespaces

namespace  mx

Enumerations

enum class  mx::DeformAxis { mx::X = 0 , mx::Y = 1 , mx::Z = 2 }
 Axis selector for deformation operations. More...

Detailed Description

OpenGL 3-D mesh and model classes with deformation support.

Provides Mesh (a single sub-mesh with its own buffers) and Model (a collection of meshes loaded from a Wavefront OBJ file). Both classes offer a rich set of CPU-side geometry deformation operations (scale, bend, twist, wave, noise, etc.) as well as texture-map management (normal, parallax, AO, displacement maps).

Requires the WITH_GL compile-time flag.

Definition in file model.hpp.