• Advertisement

Archived

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

textcolor

This topic is 5820 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