An interface defined in BBMOD_IRenderable.gml
BBMOD_IRenderable()
An interface describing renderable objects. Any struct or object that implements this interface can be rendered using a BBMOD_Renderer.
Name | Description |
---|---|
render | Enqueues the object for rendering. |
A renderable object:
/// @desc Create event
render = function ()
{
var _matrix = matrix_build_identity();
_matrix[@ 12] = x;
_matrix[@ 13] = y;
_matrix[@ 14] = z;
matrix_set(matrix_world, _matrix);
model.render();
return self;
};
A renderable struct:
renderable = {
position: new BBMOD_Vec3(),
model: /* ... */,
render: function () {
var _matrix = matrix_build_identity();
position.ToArray(_matrix, 12);
matrix_set(matrix_world, _matrix);
model.render();
return self;
},
};
BBMOD_AnimationPlayer, BBMOD_Model, BBMOD_Node
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.