Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

wolf_2000

textcolor

This topic is 5967 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, why when i use Textures in OpenGL my Textcolor has the same Color as my Text??? i have a code like this (short version ;-) ) load textures draw any select white color glColor3f(1.0f,1.0f,1.0f); and now draw my text glColor3f(1.0f,1.0f,1.0f); glRasterPos2f(-8.0f,0.32f); glPrint("angle %2.2f", angle); but the text isn''t white, anyone know whats wrong??? wolf

Share this post


Link to post
Share on other sites
Advertisement
what color is your text then?
do you have any color masks enabled?
did you enable blending?

There are more worlds than the one that you hold in your hand...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by wolf_2000
Hi,
why when i use Textures in OpenGL my Textcolor has the same Color as my Text???
i have a code like this (short version ;-) )

load textures
draw any

select white color
glColor3f(1.0f,1.0f,1.0f);

and now draw my text
glColor3f(1.0f,1.0f,1.0f);
glRasterPos2f(-8.0f,0.32f);
glPrint("angle %2.2f", angle);

but the text isn''t white, anyone know whats wrong???

wolf


It''s using the texture on your text. Try glDisabling textures before you draw text and enabling them again afterward.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!