BBMOD_Mesh

Extends BBMOD_Class

constructor

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.
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 © 2023, BlueBurn. Built on February 04, 2023 using GMDoc.