[SDL] HOWTO color cycling

Jo IoDream at ifrance.com
Sat Aug 25 13:02:01 PDT 2001


Hi,

I just look over your code,

After you do the second glLoadIdentity(), you do not translate on the
z-axis !!

try:
	glTranslatef(1.5f, 0.0f, -6.0f);
instead of:
	glTranslatef(3.0f, 0.0f,  0.0f);

Hope that helps !

Arne

www.dragongame.de





More information about the SDL mailing list