Class holding 3d scene.
More...
#include <Scene.hpp>
Class holding 3d scene.
Definition at line 44 of file Scene.hpp.
Constructor.
- Parameters
-
Definition at line 34 of file Scene.cpp.
Gets scene AABB's minimum and maximum vector.
- Parameters
-
[out] | lo | Minimum vector. |
[out] | hi | Maximum vector. |
Definition at line 163 of file Scene.hpp.
Returns buffer of emissive triangles.
For each emissive triangle there are three vertex indices saved in this buffer.
- Returns
- Emissive triangle buffer.
Definition at line 138 of file Scene.hpp.
Returns material id buffer.
Material id of each vertex is saved in this buffer.
- Returns
- Material id buffer.
Definition at line 131 of file Scene.hpp.
Returns material info buffer.
Buffer contains material information (emissivity, reflectivity, refractivity, texture) for each matId.
- Returns
- Material info buffer.
Definition at line 145 of file Scene.hpp.
int FW::Scene::getNumEmissive |
( |
void |
| ) |
const |
|
inline |
int FW::Scene::getNumTriangles |
( |
void |
| ) |
const |
|
inline |
- Returns
- Number of triangles in the scene.
Definition at line 61 of file Scene.hpp.
int FW::Scene::getNumVertices |
( |
void |
| ) |
const |
|
inline |
- Returns
- Number of vertices in the scene.
Definition at line 66 of file Scene.hpp.
Returns texture atlas holding scene's textures.
- Returns
- Texture atlas.
Definition at line 151 of file Scene.hpp.
Returns texture atlas information buffer.
Buffer contains texture atlas information (xy contains offset, zw contains size).
- Returns
- Vertex atlas information buffer.
Definition at line 124 of file Scene.hpp.
Buffer& FW::Scene::getTriMaterialColorBuffer |
( |
void |
| ) |
|
|
inline |
Returns material color buffer.
Color of each triangle's material is saved in this buffer.
- Returns
- Material color buffer.
Definition at line 89 of file Scene.hpp.
Returns triangle normal buffer.
For each triangle there is a normal vector saved in this buffer.
- Returns
- Triangle normal buffer.
Definition at line 82 of file Scene.hpp.
Buffer& FW::Scene::getTriShadedColorBuffer |
( |
void |
| ) |
|
|
inline |
Returns shaded color buffer.
Shaded color of each triangle is saved in this buffer.
- Returns
- Shaded color buffer.
Definition at line 96 of file Scene.hpp.
Returns buffer of triangle's vertex indieces.
For each triangle, three vertex indices are saved in this buffer.
- Returns
- Buffer of triangle's vertex indices.
Definition at line 75 of file Scene.hpp.
Returns vertex normal buffer.
Normal vector of each vertex is saved in this buffer.
- Returns
- Vertex normal buffer.
Definition at line 110 of file Scene.hpp.
Returns vertex position buffer.
Position of each vertex is saved in this buffer.
- Returns
- Vertex position buffer.
Definition at line 103 of file Scene.hpp.
Returns vertex texture coordinate buffer.
Texture coordinates of each vertex is saved in this buffer.
- Returns
- Vertex texture coordinates buffer.
Definition at line 117 of file Scene.hpp.
The documentation for this class was generated from the following files: