Fermat
Public Methods | Public Members | List of all members
DeviceMeshStorage Class Reference

Detailed description

This class provides basic Mesh storage for either the host or device

#include <MeshStorage.h>

Public Methods

SUTILAPI DeviceMeshStorageoperator= (MeshStorage &mesh)
 
SUTILAPI int getNumVertices () const
 
SUTILAPI int getNumNormals () const
 
SUTILAPI int getNumTextureCoordinates () const
 
SUTILAPI int getNumTriangles () const
 
SUTILAPI int getNumMaterials () const
 
SUTILAPI int getVertexStride () const
 
SUTILAPI int getNormalStride () const
 
SUTILAPI int getTextureCoordinateStride () const
 
SUTILAPI int * getVertexIndices ()
 
SUTILAPI const int * getVertexIndices () const
 
SUTILAPI int * getNormalIndices ()
 
SUTILAPI const int * getNormalIndices () const
 
SUTILAPI int * getMaterialIndices ()
 
SUTILAPI const int * getMaterialIndices () const
 
SUTILAPI int * getTextureCoordinateIndices ()
 
SUTILAPI const int * getTextureCoordinateIndices () const
 
SUTILAPI int * getLightmapIndices ()
 
SUTILAPI const int * getLightmapIndices () const
 
SUTILAPI float * getVertexData ()
 
SUTILAPI const float * getVertexData () const
 
SUTILAPI float * getNormalData ()
 
SUTILAPI const float * getNormalData () const
 
SUTILAPI float * getTextureCoordinateData ()
 
SUTILAPI const float * getTextureCoordinateData () const
 
SUTILAPI MeshView view ()
 

Public Members

int m_num_vertices
 
int m_num_normals
 
int m_num_texture_coordinates
 
int m_num_lightmap_coordinates
 
int m_num_triangles
 
int m_num_groups
 
int m_vertex_stride
 
int m_normal_stride
 
int m_texture_stride
 
float2 m_tex_bias
 
float2 m_tex_scale
 
float2 m_lm_bias
 
float2 m_lm_scale
 
DomainBuffer< CUDA_BUFFER, int > m_vertex_indices
 
DomainBuffer< CUDA_BUFFER, int > m_normal_indices
 
DomainBuffer< CUDA_BUFFER, int > m_normal_indices_comp
 
DomainBuffer< CUDA_BUFFER, int > m_material_indices
 
DomainBuffer< CUDA_BUFFER, int > m_texture_indices
 
DomainBuffer< CUDA_BUFFER, int > m_texture_indices_comp
 
DomainBuffer< CUDA_BUFFER, int > m_lightmap_indices
 
DomainBuffer< CUDA_BUFFER, int > m_lightmap_indices_comp
 
DomainBuffer< CUDA_BUFFER, int > m_group_offsets
 
DomainBuffer< CUDA_BUFFER, float > m_vertex_data
 
DomainBuffer< CUDA_BUFFER, float > m_normal_data
 
DomainBuffer< CUDA_BUFFER, uint32 > m_normal_data_comp
 
DomainBuffer< CUDA_BUFFER, float > m_texture_data
 
DomainBuffer< CUDA_BUFFER, float > m_lightmap_data
 
DomainBuffer< CUDA_BUFFER, MeshMaterialm_materials
 

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