Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Library.hpp
1#pragma once
2
3#include "resources/ResourcesManager.hpp"
4#include "Common.hpp"
5#include <array>
6
7
13class Library {
14
15public:
16
17 static const std::array<glm::vec3, 6> boxUps;
18 static const std::array<glm::vec3, 6> boxCenters;
19 static const std::array<glm::vec3, 6> boxRights;
20 static const std::array<glm::mat4, 6> boxVs;
21 static const std::array<glm::mat4, 6> boxVPs;
22
28 static Mesh generateGrid(uint resolution, float scale);
29
36 static Mesh generateCylinder(uint resolution, float radius, float height);
37
38};
39
The library provides a few commonly-used resources without having to set them up or query them from t...
Definition: Library.hpp:13
static const std::array< glm::vec3, 6 > boxUps
Skybox faces vertical direction.
Definition: Library.hpp:17
static Mesh generateGrid(uint resolution, float scale)
Definition: Library.cpp:49
static const std::array< glm::mat4, 6 > boxVs
Skybox faces view matrices.
Definition: Library.hpp:20
static const std::array< glm::vec3, 6 > boxCenters
Skybox faces center location.
Definition: Library.hpp:18
static const std::array< glm::mat4, 6 > boxVPs
Skybox faces view-projection matrices.
Definition: Library.hpp:21
static const std::array< glm::vec3, 6 > boxRights
Skybox faces horizontal direction.
Definition: Library.hpp:19
static Mesh generateCylinder(uint resolution, float radius, float height)
Definition: Library.cpp:77
Represents a geometric mesh composed of vertices, other attributes and triangles.
Definition: Mesh.hpp:15