Open Search
    Alloc/Free Ray Object

    Detailed Description

    Functions

    RayObjectAllocRayObject (Int32 tex_cnt)
     
    void FreeRayObject (RayObject *&op)
     

    Function Documentation

    ◆ AllocRayObject()

    RayObject* AllocRayObject ( Int32  tex_cnt)

    Allocates a ray object. Destroy the allocated ray object with FreeRayObject().

    Parameters
    [in]tex_cntThe texture count.
    Returns
    The allocated ray object, or nullptr if the allocation failed.

    ◆ FreeRayObject()

    void FreeRayObject ( RayObject *&  op)

    Destructs ray objects allocated with AllocRayObject().

    Parameters
    [in,out]opThe ray object to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.