glouw / gel

An N64-like software renderer
http://glouw.com/2017/11/12/gel.html
MIT License
570 stars 23 forks source link

Fix compilation (tested with Ubuntu) #2

Closed TheFakeMontyOnTheRun closed 6 years ago

TheFakeMontyOnTheRun commented 6 years ago

A constant was missing for when resetting the Z-Buffer. I went with 0xFFFF but it could be bigger values, since it's a float.

BTW, what is the license of this repository? Very cool work. Congrats.

scottjbarr commented 6 years ago

I had the same problem.

This was my solution.

#include <float.h>

Cool project BTW :)

TheFakeMontyOnTheRun commented 6 years ago

Being a C++ developer primarily, I wasn't aware this was a C constant. Gonna withdraw my Pull Request then.

(To be fair, I'm also much more into Fixed Point math than floats ;-) )

glouw commented 6 years ago

Thanks a bunch Monty. Lic is MIT.