A function defined in BBMOD_StaticBatch.gml
add(_model, _transform)
Adds a model to the static batch.
Name | Type | Description |
---|---|---|
_model | Struct.BBMOD_Model |
The model. |
_transform | Array |
A transformation matrix of the model. |
Struct.BBMOD_StaticBatch
Returns self
.
modTree = new BBMOD_Model("Tree.bbmod");
var _vformat = modTree.get_vertex_format();
batch = new BBMOD_StaticBatch(_vformat);
batch.start();
with (OTree)
{
var _transform = matrix_build(x, y, z, 0, 0, direction, 1, 1, 1);
other.batch.add(other.modTree, _transform);
}
batch.finish();
batch.freeze();
You must first call BBMOD_StaticBatch.begin before using this function!
Copyright © 2025, BlueBurn. Built on January 04, 2025 using GMDoc.