Alloc/Free Ray Object 函数

详细描述

函数

RayObject AllocRayObject ( 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() .

参数
[in] tex_cnt The texture count.
返回
The allocated ray object, or nullptr if the allocation failed.

◆  FreeRayObject()

void FreeRayObject ( RayObject *&  op )

Destructs ray objects allocated with AllocRayObject() .

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