Skip to content

SetDrawGroupProperties

Description

Sets the properties of drawGroup.

Parameters

drawGroup

The draw group to set the properties of.

sorted

Determines whether the draw group should use entity->zdepth to sort the draw list or not.

hookCB

If set to a void function, it will be called before the drawGroup is drawn.

Return Value

None.

Syntax

RSDK.SetDrawGroupProperties(uint8 drawGroup, bool32 sorted, void (*hookCB)(void));
Graphics::SetDrawGroupProperties(uint8 drawGroup, bool32 sorted, void (*hookCB)(void));

Examples

RSDK.SetDrawGroupProperties(6, false, NULL);
RSDK.SetDrawGroupProperties(3, true, MyObject_DrawGroupHookCB);

Graphics::SetDrawGroupProperties(6, false, nullptr);
Graphics::SetDrawGroupProperties(3, true, MyObject::DrawGroupHookCB);