after having marginal success rendering a yellow rectangle on my raspberry pi's tft screen with sdl, i have decided to bring nukesim up to date for compiling on the pi. idk what i was on when i wrote this code. im finding all kinds of stupid things, my 3d maths dont know whether they are left handed or right handed. all my 3d geometry formats dont make any sense, its some kind of bastardized obj derivative. this thing doesnt even understand concepts such as polygons and vertexes. its all just vector arrays. the lua version has models, textures, materials, physics, input and even a freaking console, this looks like some kind of hello world project. **** it all. nuke all the things, then rewrite them and nuke them again.
not sure if i can render to that tft with opengl. i probibly have to use opengles or something that isnt two decades out of date. idk if i can deal with modern programming practices.
on another note, its not a good idea to write a quaternion library after drinking 7 beers. i could have sworn i wrote one before, but i couldn't find it in my dead projects archive.