[Solved]Can't render Text

Started by
11 comments, last by Brother Bob 10 years, 6 months ago

Yeah, but then it has to be something in between that code and the objectdrawing code which works too.

But I am not doing anything in between other than what is written in the code above. The drawText method gets called literally right after the renderObjects() call.

But even if I just call the drawText() code it doesn't work

Just for your information, I am using GLFW instead of SDL but that shouldn't matter as far as I can tell.

Advertisement

Alright, I solved it. And because somebody might search this in the future I will post the solution here:

I had to use a VertexArrayObject for the text, then it would draw just fine.

I was under the impression, that you don't have to use VAOs but I guess I was wrong.

I believe VAO was made mandatory in OpenGL 4.0 or thereabout. In any case, yes, it is mandatory to use VAO in later versions at least.

This topic is closed to new replies.

Advertisement