bbmod_vertex_buffer_load

A function defined in __bbmod_vertex_buffer.gml

bbmod_vertex_buffer_load(_file, _vformat)

Description

Loads a vertex buffer from a file.

Arguments

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.

Returns

Id.VertexBuffer, Undefined Returns the loaded vertex buffer or undefined if loading fails.

Example

/// @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);

See also

BBMOD_VFORMAT_DEFAULT

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 26, 2024 using GMDoc.