gKit2 light
Public Member Functions | Public Attributes | List of all members
MeshBuffer Struct Reference

representation d'un objet. More...

#include <mesh_buffer.h>

Public Member Functions

const void * vertex_buffer () const
 
size_t vertex_buffer_size () const
 
const void * texcoord_buffer () const
 
size_t texcoord_buffer_size () const
 
const void * normal_buffer () const
 
size_t normal_buffer_size () const
 
const void * index_buffer () const
 
size_t index_buffer_size () const
 
const void * index_buffer_offset (const int first) const
 
const void * material_buffer () const
 
size_t material_buffer_size () const
 

Public Attributes

std::vector< vec3positions
 attribut position More...
 
std::vector< vec2texcoords
 attribut coordonnees de texture More...
 
std::vector< vec3normals
 attribut normale More...
 
std::vector< int > material_indices
 indice de la matiere des triangles More...
 
std::vector< int > indices
 indices des sommets des triangles More...
 
std::vector< MaterialDatamaterials
 ensemble de matieres More...
 
std::vector< MeshGroupmaterial_groups
 sequence de triangles groupes par matiere More...
 

Detailed Description

representation d'un objet.

Definition at line 21 of file mesh_buffer.h.

Member Data Documentation

◆ positions

std::vector<vec3> MeshBuffer::positions

attribut position

Definition at line 23 of file mesh_buffer.h.

◆ texcoords

std::vector<vec2> MeshBuffer::texcoords

attribut coordonnees de texture

Definition at line 24 of file mesh_buffer.h.

◆ normals

std::vector<vec3> MeshBuffer::normals

attribut normale

Definition at line 25 of file mesh_buffer.h.

◆ material_indices

std::vector<int> MeshBuffer::material_indices

indice de la matiere des triangles

Definition at line 27 of file mesh_buffer.h.

◆ indices

std::vector<int> MeshBuffer::indices

indices des sommets des triangles

Definition at line 28 of file mesh_buffer.h.

◆ materials

std::vector<MaterialData> MeshBuffer::materials

ensemble de matieres

Definition at line 30 of file mesh_buffer.h.

◆ material_groups

std::vector<MeshGroup> MeshBuffer::material_groups

sequence de triangles groupes par matiere

Definition at line 31 of file mesh_buffer.h.


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