Programming with OpenGL #5

Posted by Mordi on May 5, 2012, 5:43 a.m.

Finally got my spritefont to work properly.

Before, I simply had an array of 223 characters, drawing each texture separately. Now I've optimized it further by including all characters into one single texture. I've also contained all the info I need about each character into a struct, which is much better than having 5-6 separate arrays of 223 integers/floats.

Next up is getting my load-routine to work properly, using a thread.

Comments

poultry 12 years, 6 months ago

Yeah, I learned about that back in fall… I couldn't believe it either.

McFluffeh 12 years, 6 months ago

Hamsters… with pistols…