trimeshloader  1.0.0
Flexible ANSI C trimeshloader 3DS/OBJ
Data Fields
tlTrimesh Struct Reference

Structure describing an Trimesh (index triangle list) containing objects, vertices (point, texture coordinate and normal) and triangle indices. More...

#include <trimeshloader.h>

Data Fields

float * vertices
 pointer to the vertex data More...
 
unsigned int vertex_count
 number of vertices More...
 
unsigned int vertex_format
 format of the vertices More...
 
unsigned int vertex_size
 size/stride of each vertex, in bytes More...
 
unsigned short * faces
 pointer to the face (triangle) indices (3 unsigned shorts) More...
 
unsigned int face_count
 number of faces More...
 
tlObjectobjects
 list of objects in this trimesh More...
 
unsigned int object_count
 number of objects More...
 
tlMaterialmaterials
 list of materials in this trimesh More...
 
unsigned int material_count
 number of materials More...
 
tlMaterialReferencematerial_references
 list of references to materials in this trimesh More...
 
unsigned int material_reference_count
 number of references to materials More...
 

Detailed Description

Structure describing an Trimesh (index triangle list) containing objects, vertices (point, texture coordinate and normal) and triangle indices.

Field Documentation

◆ face_count

unsigned int tlTrimesh::face_count

number of faces

◆ faces

unsigned short* tlTrimesh::faces

pointer to the face (triangle) indices (3 unsigned shorts)

◆ material_count

unsigned int tlTrimesh::material_count

number of materials

◆ material_reference_count

unsigned int tlTrimesh::material_reference_count

number of references to materials

◆ material_references

tlMaterialReference* tlTrimesh::material_references

list of references to materials in this trimesh

◆ materials

tlMaterial* tlTrimesh::materials

list of materials in this trimesh

◆ object_count

unsigned int tlTrimesh::object_count

number of objects

◆ objects

tlObject* tlTrimesh::objects

list of objects in this trimesh

◆ vertex_count

unsigned int tlTrimesh::vertex_count

number of vertices

◆ vertex_format

unsigned int tlTrimesh::vertex_format

format of the vertices

◆ vertex_size

unsigned int tlTrimesh::vertex_size

size/stride of each vertex, in bytes

◆ vertices

float* tlTrimesh::vertices

pointer to the vertex data


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