Renderable::SetTransparentAttachment
Defined in:
Sets the transparent attachment.
C4Renderable.h
Prototype
void SetTransparentAttachment(Renderable *attachment);
Parameters
attachment |
The renderable object that will be attached. |
Description
A renderable object may have another renderable object attached to it for the purpose of specifying a rendering order. The presence of an attachment qualifies a renderable object for transparent sorting, and an object is always rendered immediately before its attachment. This is useful when two transparent objects occupy the same space and one should always be behind the other.The
SetTransparentAttachment
function sets the object that is attached to a renderable. If the attachment
parameter is nullptr
, then the attachment is cleared.Initially, the transparent attachment is
nullptr
.
See Also
Renderable::GetTransparentAttachment