Closed Quaker762 closed 7 years ago
@z33ky I think I finally understand how to draw stuff in OpenGL haha. I'll work on the model class soon, should be a cinch porting Mike's code over to some nicer C++ (if you can consider my code that AHAHA)
I haven't bothered with indexing for the quad (aka I couldn't get it to work haha), it's a waste of time trying to get it going for a saving of a few bytes of VRAM..
BTW shader programs are working rather nicely :)
As a side note (sort of unrelated), it seems the indices for models are baked into the vertex data headers in all .mdl
files.
Created a class that enables us to actually draw a quad to the screen (and a small GL3.3 test in main.cpp). Currently doesn't pass any data to a shader, so it's just a black quad (no colour data).