Public Member Functions | Public Attributes

VR3Mesh::Subset Struct Reference

Subset data structure. More...

Collaboration diagram for VR3Mesh::Subset:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Subset ()
 Constructor used to clean the data structure at startup.
 ~Subset ()
 Destructor used to destroy all allocated data when the structur is deleted.

Public Attributes

bool ishidden
 Hidden flag (false by default)
Rendering flags
bool fl_difftex
 Flag stating if the mesh has a diffuse texture.
bool fl_lightmap
 Flag stating if the mesh has a light map.
bool fl_normmap
 Flag stating if the mesh has a normal map.
bool fl_dispmap
 Flag stating if the mesh has a displacement map.
Geometric Data
GLint tri_count
 Number of triangles in this subset.
GLint first
 First triangle (if they were numbered from 0 up in the mesh)
GLint * ptex_indices
 The array of primary (diffuse) texture indices (m_tri_count*3 GLints)
GLint * stex_indices
 The array of light map texture indices (m_tri_count*3 GLints)
GLint * ntex_indices
 The array of normal map texture indices (m_tri_count*3 GLints)
GLint * dtex_indices
 The array of displacement map texture indices (m_tri_count*3 GLints)
Material Data
VR3Materialmaterial
 Material associated to the mesh.
VAO and VBOs
GLuint VAO
 VAO associated with the subset.
GLuint VBOs [VR3MESH_MAX_VER_ATTRIBS]
 Mesh VBOs associated with the above VAO (vertex attributes in this subset)

Default shading program parameters

typedef void(VR3Mesh::* f_loaduniforms )(const Subset *sub)
 Standard shader uniform loading function typedef.
GLuint shader_program
 Shader program to be used by default for this mesh.
const GLint * unilocs
 Pointer to the uniform location array defined for the default program.
f_loaduniforms loadunifunc
 Function used to load uniform values in the current standard shader program.

Detailed Description

Subset data structure.

This structure contains data useful to identify informations available only with reference to a specific subset of the mesh.

Definition at line 93 of file VR3Mesh.h.


Member Typedef Documentation

typedef void(VR3Mesh::* VR3Mesh::Subset::f_loaduniforms)(const Subset *sub)

Standard shader uniform loading function typedef.

A function used to load uniform values into a shader when the default shader (depending upon the material) is used is identified by this type.

Definition at line 124 of file VR3Mesh.h.


Constructor & Destructor Documentation

VR3Mesh::Subset::Subset (  )

Constructor used to clean the data structure at startup.

VR3Mesh::Subset::~Subset (  )

Destructor used to destroy all allocated data when the structur is deleted.


Member Data Documentation

The array of displacement map texture indices (m_tri_count*3 GLints)

Definition at line 149 of file VR3Mesh.h.

First triangle (if they were numbered from 0 up in the mesh)

Definition at line 141 of file VR3Mesh.h.

Flag stating if the mesh has a diffuse texture.

Definition at line 102 of file VR3Mesh.h.

Flag stating if the mesh has a displacement map.

Definition at line 108 of file VR3Mesh.h.

Flag stating if the mesh has a light map.

Definition at line 104 of file VR3Mesh.h.

Flag stating if the mesh has a normal map.

Definition at line 106 of file VR3Mesh.h.

Hidden flag (false by default)

Definition at line 96 of file VR3Mesh.h.

Function used to load uniform values in the current standard shader program.

When standard shading program is used, the following pointer is loaded with a reference to the function to use to load the uniform values. The function chosen only depends upon the rendering flags.

Definition at line 131 of file VR3Mesh.h.

Material associated to the mesh.

Definition at line 157 of file VR3Mesh.h.

The array of normal map texture indices (m_tri_count*3 GLints)

Definition at line 147 of file VR3Mesh.h.

The array of primary (diffuse) texture indices (m_tri_count*3 GLints)

Definition at line 143 of file VR3Mesh.h.

Shader program to be used by default for this mesh.

Definition at line 116 of file VR3Mesh.h.

The array of light map texture indices (m_tri_count*3 GLints)

Definition at line 145 of file VR3Mesh.h.

Number of triangles in this subset.

Definition at line 139 of file VR3Mesh.h.

Pointer to the uniform location array defined for the default program.

Definition at line 118 of file VR3Mesh.h.

VAO associated with the subset.

Definition at line 165 of file VR3Mesh.h.

GLuint VR3Mesh::Subset::VBOs[VR3MESH_MAX_VER_ATTRIBS]

Mesh VBOs associated with the above VAO (vertex attributes in this subset)

Definition at line 167 of file VR3Mesh.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines