Archived

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

wolf_2000

textcolor

Recommended Posts

wolf_2000    122
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
_DarkWIng_    602
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   
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