ssloy / tinyrenderer

A brief computer graphics / rendering course
https://github.com/ssloy/tinyrenderer/wiki
Other
20.73k stars 1.99k forks source link

Incompatible with modern C++? #119

Closed UltraEngine closed 1 year ago

UltraEngine commented 1 year ago

I've been using this renderer in my 3D engine editor with great results to generate thumbnails for 3D models and materials. Unfotrunately, my project no longer will compile. Every single mat and vec constructor is producing an error saying "cannot convert from initializer list to mat<4, 4> (or whatever it is)". My project is using the C++20 standard.

Will this be fixed?

ssloy commented 1 year ago

What compiler do you use?

ssloy commented 1 year ago

fixed

UltraEngine commented 1 year ago

That was very fast, big thanks!

I'm using Visual Studio 2022, but my code is intended to compile with GCC and Mac (LLVM?) as well.