Drawing multiple object on the screen

hi everyone,

i’m drawing to cubes, i want one cube to be fixed in the center and the other will be moving around this fixed cube. the fixed cube doesn’t show up it is just flashing on the screen when the other cube is moving. what do u think is the problem with that?

btw, it’s a homework where we are not allowed to use built in functions like glTranslate, glRotate etc…

I’ll appreciate any help!

t’s a homework where we are not allowed to use built in functions like glTranslate, glRotate etc…
you are not allowed to use ogl matrix manipulations? :eek:

then write your own matrix manipulations and use glMultMatrix, glLoadMatrix etc.

Just guessing here, but could have forgotten to redraw the first (stationery) cube in every frame, and you are just drawing it in the first frame? (which is why it flashes)?

How can you write an OpenGL programme without “built-in functions” like gl*? Rendering a triangle in immediate mode requires 5 of them!

crazy, man