A function defined in __bbmod_vertex_buffer.gml
bbmod_vertex_buffer_load(_file, _vformat)
Loads a vertex buffer from a file.
Name | Type | Description |
---|---|---|
_file | String |
The path to the file to load the vertex buffer from. |
_vformat | Struct.BBMOD_VertexFormat |
The vertex format of the vertex buffer. |
Id.VertexBuffer, Undefined
Returns the loaded vertex buffer or undefined
if loading fails.
/// @desc Create event
model = bbmod_vertex_buffer_load("model.bin", BBMOD_VFORMAT_DEFAULT);
vertex_freeze(model);
/// @desc Draw event
vertex_submit(model, pr_trianglelist, -1);
/// @desc Clean Up event
vertex_delete_buffer(model);
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.