Gama C Library
Gama C API Documentation
gm3Mesh Struct Reference

Represents a 3D mesh composed of vertices, faces, normals, and texture coordinates. More...

#include <mesh.h>

Data Fields

gm3Posvertices
size_t n_vertices
gm3MeshFacefaces
size_t n_faces
gm3Posnormals
size_t n_normals
gm3Textexs
size_t n_texs
gm3MtlLibmtllibs
size_t n_mtllibs

Detailed Description

Represents a 3D mesh composed of vertices, faces, normals, and texture coordinates.

This struct stores all geometric and material data for a 3D model.

Field Documentation

◆ faces

gm3MeshFace* gm3Mesh::faces

Array of mesh faces (triangles).

◆ mtllibs

gm3MtlLib* gm3Mesh::mtllibs

Array of material libraries.

◆ n_faces

size_t gm3Mesh::n_faces

Number of faces in the mesh.

◆ n_mtllibs

size_t gm3Mesh::n_mtllibs

Number of material libraries.

◆ n_normals

size_t gm3Mesh::n_normals

Number of vertex normals in the mesh.

◆ n_texs

size_t gm3Mesh::n_texs

Number of texture coordinates in the mesh.

◆ n_vertices

size_t gm3Mesh::n_vertices

Number of vertices in the mesh.

◆ normals

gm3Pos* gm3Mesh::normals

Array of vertex normals.

◆ texs

gm3Tex* gm3Mesh::texs

Array of texture coordinates.

◆ vertices

gm3Pos* gm3Mesh::vertices

Array of vertex positions.


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