gVirtualXRay  2.0.10
VirtualX-RayImagingLibraryonGPU
Public Member Functions
gVirtualXRay::DepthMap Class Reference

DepthMap is a class to render to a buffer in order to create, for exemple, a shadow map. More...

#include <DepthMap.h>

Collaboration diagram for gVirtualXRay::DepthMap:
Collaboration graph

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DepthMap()

gVirtualXRay::DepthMap::DepthMap ( int  map_size = 8192)

default constructor

◆ ~DepthMap()

gVirtualXRay::DepthMap::~DepthMap ( )

destructor

Member Function Documentation

◆ getMapTexture()

unsigned int gVirtualXRay::DepthMap::getMapTexture ( ) const

Get the texture.

◆ initialize()

void gVirtualXRay::DepthMap::initialize ( )

Initialize the buffers.

◆ release()

void gVirtualXRay::DepthMap::release ( )

◆ render() [1/2]

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

Parameters
mesh_setthe Polygon mesh set to be rendered
proj_matrixthe projection matrix

◆ render() [2/2]

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

Parameters
mesh_setthe Polygon mesh set to be rendered
proj_matrixthe projection matrix
model_matrix_setthe model matrix set

The documentation for this class was generated from the following file: