raylib-d Create Light Sources

Steven Schveighoffer schveiguy at gmail.com
Thu Dec 1 01:17:16 UTC 2022


On 11/30/22 7:56 PM, jwatson-CO-edu wrote:
> 
> uint MAX_LIGHTS = 4;

This needs to be an `enum`.

> //...
> Light[MAX_LIGHTS] lights; // Error: undefined identifier `Light`

The rlights header file is not part of the raylib library, but is in the 
examples directory, you will need to port it. It's not very big, you 
probably can do it in a half hour.

https://github.com/raysan5/raylib/blob/387c06000618ef0aa3b15c5e46d1c525ba194c50/examples/shaders/rlights.h

-Steve


More information about the Digitalmars-d-learn mailing list