Re: raylib-d Create Light Sources

2022-12-01 Thread jwatson-CO-edu via Digitalmars-d-learn
On Thursday, 1 December 2022 at 01:17:16 UTC, Steven Schveighoffer wrote: On 11/30/22 7:56 PM, jwatson-CO-edu wrote: uint MAX_LIGHTS = 4; 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

Re: raylib-d Create Light Sources

2022-11-30 Thread Steven Schveighoffer via Digitalmars-d-learn
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 no

raylib-d Create Light Sources

2022-11-30 Thread jwatson-CO-edu via Digitalmars-d-learn
I am attempting to recreate the [Raylib flat shading tutorial](https://www.raylib.com/examples/shaders/loader.html?name=shaders_basic_lighting) with raylib-d. I have been able to find most of the necessary wrappers except the one the creates light sources. How do I create light sources in raylib-