Advertisement

Coloring Problems

Started by June 09, 2002 09:05 PM
0 comments, last by PepsiPlease 22 years, 8 months ago
Hi, I am making a small tile-based game. Whenever I draw the tiles, however, they all turn the color I tell one to. For instance, in my draw scene function I have three functions being called. It looks like this: drawglscene() { //some stuff draw_tiles(); draw_ball(); draw_floor(); //more stuff When I call the first one, it draws all the tiles a texture. On the next one, it is supposed to draws everything (that''s supposed to be it) a wall texture. In the next one, however, it draws only the tiles from the first function red, the color the ball is supposed to be. The ball does not get drawn, nor does the floor. So I''m wondering, what am I doing wrong? (Probably just some dumb newbie mistake, but hey, it stumped me...)
The default color is white, so if you change it to red you need to change it back to white afterwards. If this doesn''t help, the error can only be found in the code of your draw_ functions, so you need to send this as well to the forum.

This topic is closed to new replies.

Advertisement