Coloring Problems
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...)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement