Gama C Library
Gama C API Documentation
gm3MtlLib Struct Reference

Represents a material library, typically loaded from an .mtl file. More...

#include <mtl.h>

Data Fields

char name [256]
gm3Materialmaterials
size_t n_materials
gm3Texturetextures
size_t n_textures

Detailed Description

Represents a material library, typically loaded from an .mtl file.

This struct contains a collection of materials and the textures they reference.

Field Documentation

◆ materials

gm3Material* gm3MtlLib::materials

Array of materials defined in this library.

◆ n_materials

size_t gm3MtlLib::n_materials

Number of materials in the array.

◆ n_textures

size_t gm3MtlLib::n_textures

Number of textures in the array.

◆ name

char gm3MtlLib::name[256]

The name of the material library (usually the MTL filename).

◆ textures

gm3Texture* gm3MtlLib::textures

Array of textures referenced by materials in this library.


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