Hot answers tagged

2

As far as I know, you must initialize GLEW after creating GL context. Which means, after creating a window. If it wont work, please post an entire code of Engine::init().


1

Here's what I think is happening: the matrices in your static singleton sprite class (say that three times fast) -- specifically the model-view matrix -- is being modified on drawing every sprite without being reset to how it was before the modification. As such, any transformation you perform for one object is also applied to any subsequently drawn object ...



Only top voted, non community-wiki answers of a minimum length are eligible