Palm-Studios / sh3redux

SILENT HILL 3 Engine Remake in OpenGL and C++
GNU General Public License v3.0
164 stars 15 forks source link

Created a quad class #83

Closed Quaker762 closed 7 years ago

Quaker762 commented 7 years ago

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).

Quaker762 commented 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)

Quaker762 commented 7 years ago

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..

Quaker762 commented 7 years ago

BTW shader programs are working rather nicely :)

Shaders!

Quaker762 commented 7 years ago

As a side note (sort of unrelated), it seems the indices for models are baked into the vertex data headers in all .mdl files.