Gama C Library
Gama C API Documentation
gm3MeshFace Struct Reference

Represents a single face (triangle) in a 3D mesh. More...

#include <mesh.h>

Data Fields

size_t vertices [3]
long uvs [3]
int material
int material_file
gm3Pos normal

Detailed Description

Represents a single face (triangle) in a 3D mesh.

Field Documentation

◆ material

int gm3MeshFace::material

Index to the material within the associated material library.

◆ material_file

int gm3MeshFace::material_file

Index to the material library within the mesh's mtllibs array.

◆ normal

gm3Pos gm3MeshFace::normal

The calculated geometric normal of this face.

◆ uvs

long gm3MeshFace::uvs[3]

Indices to the mesh's texture coordinate array (3 per triangle).

◆ vertices

size_t gm3MeshFace::vertices[3]

Indices to the mesh's vertex array (3 per triangle).


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