C4 Engine
C4 Engine API Documentation

Renderable::GetTransparentPosition

Defined in:  C4Renderable.h
Returns the transparent position pointer.
Prototype

const Point3D *GetTransparentPosition(voidconst;

Description
The GetTransparentPosition function returns the pointer to a renderable object's transparent position. This position is specified in world-space coordinates and represents the general location of a transparent object. Renderable objects having a transparent position are sorted and rendered from back to front with respect to the camera view direction.

If a renderable object has an attachment specified with the Renderable::SetTransparentAttachment function, then the transparent position is ignored, and the object is always rendered immediately before its attachment.

Initially, the transparent position is nullptr.
See Also

Renderable::SetTransparentPosition

Renderable::GetTransparentAttachment

Renderable::SetTransparentAttachment