A3DGraphSpotLightGet
-
A3DStatus
A3DGraphSpotLightGet(const A3DGraphSpotLight *pLight, A3DGraphSpotLightData *pData) Fetches data from a spotlight source entity given its handle.
2.0Return Values
A3D_SUCCESS: in case of success.
A3D_INITIALIZE_NOT_CALLED: if the library is not initialized
A3D_INVALID_DATA_STRUCT_NULL: if
pDatais null.A3D_INVALID_DATA_STRUCT_SIZE: if
pDatais incorrectly initializedA3D_INVALID_ENTITY_TYPE: if the entity type
pLightrefers to is notkA3DTypeGraphSpotLight// Retrieves the light data at index 3: A3DGraphSpotLightData light = A3D_MAKE_DATA(A3DGraphSpotLightData); A3DStatus result = A3DGraphSpotLightGet(3, &light); assert(result == A3D_SUCCESS);
Parameters
pLight: A handle to the light to fetch data from.
pData: The
A3DGraphSpotLightDatato fill in.Returns
A3D_SUCCESSor an error code in case of failure.