A3DGraphSpotLightCreate

A3DStatus A3DGraphSpotLightCreate(const A3DGraphSpotLightData *pData, A3DGraphSpotLight **ppLight)
A3DStatus A3DGraphSpotLightCreate(const A3DGraphSpotLightData* pData, A3DGraphSpotLight** ppLight)

Creates a new spotlight source entity, returning its handle.

2.0

Once created, the new light entity can be referenced to by its handle, given by *ppLight. In case of failure, *ppLight is unchanged.

Parameters

pData: The data used for light creation.

ppLight: An address to the new handle after creation.

Returns

A3D_SUCCESS or an error code in case of failure.