Why aren't NeHe's text functions working
hey, sorry to bother you guys with this, but I just can''t figure out what''s wrong. I''ve been trying to fix this for 8 days now and I just can''t get it, so I was hoping someone out there in cyberspace would have a suggestion or a fix that might help. My problem is that I just can''t get NeHe''s text functions to work in my program. I''ve been able to compile and run lesson 13 just fine, but when I use basically the same functions in my code it doesn''t work. It boggles the mind :-) My code is located at..
http://library.planeswalker.com/BlazingSands.zip
if you''re interested.
Any help would be appresiated; be it suggestions, fixes, or otherwise.
thanks,
OGAPO
Brought to you by: [email=ogapo@ithink.net]O.G.A.P.O.[/email] +----------------------------------------+| Surgeon General's Warning - || OGAPO can cause serious mental damage || if taken in large doses. |+----------------------------------------+/* Never underestimate the power of stupid people in large groups */
had a quick look as far as i see you''re not actually creating the display lists for the letters , though a better idea would be to use textured quads for the text
http://members.xoom.com/myBollux
http://members.xoom.com/myBollux
Sorry, I don''t know what do you mean by I am not loading the font, I call BuildFont in the InitGame finction if that''s what you''re looking for. Af first I was using DrawPixels with a custom font TGA bu that dropped me all the way down to about 3 FPS, so I figured I''d have to find a better way. Also, do you know if there''s any better way to get keyboard input than the array, sometimes when the FPS is very low it just drops keypresses (instead of buffering them) for some reason. Would Direct Input be better (just wondering, I have no experience with this).
Brought to you by: [email=ogapo@ithink.net]O.G.A.P.O.[/email] +----------------------------------------+| Surgeon General's Warning - || OGAPO can cause serious mental damage || if taken in large doses. |+----------------------------------------+/* Never underestimate the power of stupid people in large groups */
I would check out Zack Smiths OPENGL framework ... he has a good setup of files for you do Text Printing in a timely fashion using a bitmap or tga based on the NeHe demos...
http://welcom.to/zacksmith/
euro
http://welcom.to/zacksmith/
euro
----Eurosprt1--Pilot Extrodinaire
Ok, i finally figured it out, it seems that wglUseFontBitmaps returns false if there''s anything in the ogl error buffer, so you have to call glGetError() to make sure it''s clear before hand, weird huh? I wonder if all wgl functions are this way?
Brought to you by: [email=ogapo@ithink.net]O.G.A.P.O.[/email] +----------------------------------------+| Surgeon General's Warning - || OGAPO can cause serious mental damage || if taken in large doses. |+----------------------------------------+/* Never underestimate the power of stupid people in large groups */
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement