Rendu
A lightweight rendering engine for experimentations
|
The library provides a few commonly-used resources without having to set them up or query them from the resources manager. More...
#include <Library.hpp>
Static Public Member Functions | |
static Mesh | generateGrid (uint resolution, float scale) |
static Mesh | generateCylinder (uint resolution, float radius, float height) |
Static Public Attributes | |
static const std::array< glm::vec3, 6 > | boxUps |
Skybox faces vertical direction. More... | |
static const std::array< glm::vec3, 6 > | boxCenters |
Skybox faces center location. More... | |
static const std::array< glm::vec3, 6 > | boxRights |
Skybox faces horizontal direction. More... | |
static const std::array< glm::mat4, 6 > | boxVs |
Skybox faces view matrices. More... | |
static const std::array< glm::mat4, 6 > | boxVPs |
Skybox faces view-projection matrices. More... | |
The library provides a few commonly-used resources without having to set them up or query them from the resources manager.
|
static |
Generate a Y-axis cylinder mesh.
resolution | the number of faces |
radius | the cylinder radius |
height | the cylinder height |
|
static |
Generate a XZ planar grid mesh.
resolution | number of cells on each axis |
scale | dimension of each cell |
|
static |
Skybox faces center location.
|
static |
Skybox faces horizontal direction.
|
static |
Skybox faces vertical direction.
|
static |
Skybox faces view-projection matrices.
|
static |
Skybox faces view matrices.