BBMOD_Mesh

A constructor defined in BBMOD_Mesh.gml

Implements BBMOD_IDestructible

new BBMOD_Mesh(_vertexFormat[, _model])

Description

A mesh struct.

Arguments

Name Type Description
_vertexFormat Struct.BBMOD_VertexFormat The vertex format of the or undefined.
_model Struct.BBMOD_Model The model to which the mesh belongs or undefined.

Properties

Name Description
BboxMax The maximum coordinate of the mesh's bounding box. Available since model version 3.1. Can be undefined.
BboxMin The minimum coordinate of the mesh's bounding box. Available since model version 3.1. Can be undefined.
Frozen If true then the mesh is frozen.
MaterialIndex An index of a material that the mesh uses.
Model The model to which the mesh belongs or undefined.
PrimitiveType The primitive type of the mesh.
VertexBuffer A vertex buffer.
VertexFormat The vertex format of the mesh.

Methods

Name Description
clone Creates a clone of the mesh.
copy Copies mesh data into another mesh.
destroy Frees memory used by the struct.
freeze Freezes the mesh. This makes it render faster.
from_buffer Loads mesh data from a bufffer.
render Enqueues the mesh for rendering.
submit Immediately submits the mesh for rendering.
to_buffer Writes mesh data to a buffer.

See also

BBMOD_Model, BBMOD_VertexFormat

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.