BBMOD_MeshRenderQueue

A constructor defined in BBMOD_MeshRenderQueue.gml

Implements BBMOD_IMeshRenderQueue

new BBMOD_MeshRenderQueue([_name[, _priority]])

Description

A render queue specialized for rendering of multiple instances of a model, where all instances are using the same material. You can use this instead of BBMOD_RenderQueue to increase rendering performance.

Arguments

Name Type Description
_name String The name of the render queue. Defaults to "RenderQueue" + number of created render queues - 1 (e.g. "RenderQueue0", "RenderQueue1" etc.) if undefined.
_priority Real The priority of the render queue. Defaults to 0.

Properties

Name Description
Name The name of the render queue. This can be useful for debugging purposes.
Priority The priority of the render queue. Render queues with lower priority come first in the array returned by bbmod_render_queues_get.

Methods

Name Description
DrawMesh Adds a BBMOD_ERenderCommand.DrawMesh command into the queue.
DrawMeshAnimated Adds a BBMOD_ERenderCommand.DrawMeshAnimated command into the queue.
DrawMeshBatched Adds a BBMOD_ERenderCommand.DrawMeshBatched command into the queue.
clear Clears the render queue.
destroy Frees memory used by the struct.
has_commands Checks whether the render queue has commands for given render pass.
is_empty Checks whether the render queue is empty.
set_priority Changes the priority of the render queue. Render queues with lower priority come first in the array returned by bbmod_render_queues_get.
submit Submits render commands.
Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on July 03, 2024 using GMDoc.