trimeshloader  1.0.0
Flexible ANSI C trimeshloader 3DS/OBJ
Data Structures | Macros | Functions
trimeshloader.h File Reference

Trimeshloader public header file. More...

#include "tlobj.h"
#include "tl3ds.h"

Go to the source code of this file.

Data Structures

struct  tlObject
 Structure describing an Object (or SubMesh, Batch) More...
 
struct  tlMaterial
 Structure describing a Material (Colors and/or Texture) More...
 
struct  tlMaterialReference
 Structure describing the reference to a Material. More...
 
struct  tlTrimesh
 Structure describing an Trimesh (index triangle list) containing objects, vertices (point, texture coordinate and normal) and triangle indices. More...
 

Macros

#define TRIMESH_LOADER_API
 
#define TL_FVF_XYZ   1
 Used as format flag in loading functions: load the position of the vertex. More...
 
#define TL_FVF_UV   2
 Used as format flag in loading functions: load the texturecoordinate of the vertex. More...
 
#define TL_FVF_NORMAL   4
 Used as format flag in loading functions: load the normal of the vertex. More...
 

Functions

TRIMESH_LOADER_API tlTrimeshtlLoad3DS (const char *filename, unsigned int vertex_format)
 Load a 3DS file in an tlTrimesh structure. More...
 
TRIMESH_LOADER_API tlTrimeshtlLoadOBJ (const char *filename, unsigned int vertex_format)
 Load a OBJ file in an tlTrimesh structure. More...
 
TRIMESH_LOADER_API tlTrimeshtlCreateTrimeshFromObjState (tlObjState *state, unsigned int vertex_format)
 Create an a tlTrimesh structure from a tlObjState. More...
 
TRIMESH_LOADER_API tlTrimeshtlCreateTrimeshFrom3dsState (tl3dsState *state, unsigned int vertex_format)
 Create an a tlTrimesh structure from a tl3dsState. More...
 
TRIMESH_LOADER_API void tlTrimeshCreateNormals (tlTrimesh *trimesh)
 
TRIMESH_LOADER_API tlTrimeshtlLoadTrimesh (const char *filename, unsigned int vertex_format)
 Load an 3DS or OBJ file in an tlTrimesh structure. More...
 
TRIMESH_LOADER_API void tlDeleteTrimesh (tlTrimesh *trimesh)
 Delete an previously loaded tlTrimesh object. More...
 

Detailed Description

Trimeshloader public header file.

Macro Definition Documentation

◆ TRIMESH_LOADER_API

#define TRIMESH_LOADER_API