Helper types and accessors for the light resource type (`.lightc`).
| Namespace: | dmGameSystem |
| Include: | #include <dmsdk/gamesys/resources/res_light.h> |
| STRUCTS | |
|---|---|
| struct LightResource | Opaque handle to a loaded light resource |
| FUNCTIONS | |
|---|---|
| dmRender::HLightPrototype* GetLightPrototype(LightResource* res) | Get the render light prototype for a loaded light resource |
dmRender::HLightPrototype* GetLightPrototype(LightResource* res)
Returns the dmRender::HLightPrototype handle created from the .lightc data.
The pointer remains valid until the resource is released.
PARAMETERS
LightResource* |
res |
Light resource |
RETURNS
dmRender::HLightPrototype* |
Prototype pointer |