![]() |
gVirtualXRay
2.0.10
VirtualX-RayImagingLibraryonGPU
|
DepthMap is a class to render to a buffer in order to create, for exemple, a shadow map. More...
#include <DepthMap.h>
Public Member Functions | |
DepthMap (int map_size=8192) | |
default constructor More... | |
~DepthMap () | |
destructor More... | |
void | release () |
void | initialize () |
Initialize the buffers. More... | |
void | render (std::vector< PolygonMesh *> &mesh_set, Matrix4x4< float > const &proj_matrix) |
void | render (std::vector< PolygonMesh *> &mesh_set, Matrix4x4< float > const &proj_matrix, std::vector< Matrix4x4< float > > const &model_matrix_set) |
unsigned int | getMapTexture () const |
Get the texture. More... | |
DepthMap is a class to render to a buffer in order to create, for exemple, a shadow map.
Definition at line 90 of file DepthMap.h.
gVirtualXRay::DepthMap::DepthMap | ( | int | map_size = 8192 | ) |
default constructor
gVirtualXRay::DepthMap::~DepthMap | ( | ) |
destructor
unsigned int gVirtualXRay::DepthMap::getMapTexture | ( | ) | const |
Get the texture.
void gVirtualXRay::DepthMap::initialize | ( | ) |
Initialize the buffers.
void gVirtualXRay::DepthMap::release | ( | ) |
void gVirtualXRay::DepthMap::render | ( | std::vector< PolygonMesh *> & | mesh_set, |
Matrix4x4< float > const & | proj_matrix | ||
) |
render to the frame buffer, call initialize() if it has never been called before/ Use this overload in case there is one model matrixes for all the meshes
mesh_set | the Polygon mesh set to be rendered |
proj_matrix | the projection matrix |
void gVirtualXRay::DepthMap::render | ( | std::vector< PolygonMesh *> & | mesh_set, |
Matrix4x4< float > const & | proj_matrix, | ||
std::vector< Matrix4x4< float > > const & | model_matrix_set | ||
) |
render to the frame buffer, call initialize() if it has never been called before. Use this overload in case there are different model matrixes
mesh_set | the Polygon mesh set to be rendered |
proj_matrix | the projection matrix |
model_matrix_set | the model matrix set |