thre3dee
August 20th, 2005, 09:04 PM
hi,
im almost finished my OpenGL font class but a really strange thing is happening. My DrawText function simply won't result in any quads being rending.
I tried copying the code used to setup and draw a string to my main function and it draws the text fine (albeit with no textured alpha map yet).
For some strange reason its drawing when in the main function but not when its called from my class function.
Does anybody know why it would do this? coz i've done as much testing as possible and it just doesn't want to actually render the quads even though in debug mode ive watched it go through all the glVertex3f commands one by one
please help me!!!
im almost finished my OpenGL font class but a really strange thing is happening. My DrawText function simply won't result in any quads being rending.
I tried copying the code used to setup and draw a string to my main function and it draws the text fine (albeit with no textured alpha map yet).
For some strange reason its drawing when in the main function but not when its called from my class function.
Does anybody know why it would do this? coz i've done as much testing as possible and it just doesn't want to actually render the quads even though in debug mode ive watched it go through all the glVertex3f commands one by one
please help me!!!