Index

 E3d_LightAllocate
 E3d_LightFree


E3d_LightAllocate

Allocate a light source

Syntax
 E3dLight* E3d_LightAllocate(void)
Arguments
None.

Description
This function allocates and initializes an E3dLight structure.

Return value
Pointer to the allocated E3dLight structure or NULL in case of an error.

See also
E3d_LightFree

E3d_LightFree

Free a Light source

Syntax
 void E3d_LightFree(E3dLight* LLight)
Argument
 E3dLight* LLight         Pointer to the Light structure to be freed
Description
This function first decrements the reference count (RefCnt) of the given Light structure (if it's not already zero). After that, if RefCnt is still greater than zero, it means that this Light is being being referred to somewhere else, so E3d_LightFree() will simply return. If RefCnt is zero, E3d_LightFree() will free the memory associated with the light source

Return value
None.

See also
E3d_LightAllocate