Sub glsv_Draw(gl As GL1)
......
' reset the scene
gl.glLoadIdentity
' ===================
' CAMERA
' ===================
' set camera to 'look' at certain position
' EYE 0,6,9 CENTER 0,0,0 VECTOR 0,1,0
gl.gluLookAt(0,6,9 , 0,0,0 , 0,1,0)
' perform rotation in Y axis
gl.glRotatef(rotY,0,1,0)
' ===================
' draw first object
' ===================
gl.glPushMatrix
gl.glTranslatef(1.1,0,distZ)
gl.glColor4f(0.6,1,0.6 , 1) ' green barrel colour
GLObject_Draw(obj1,gl)
gl.glPopMatrix
' ===================
' draw second object
' ===================
gl.glPushMatrix
gl.glColor4f(1,0.2,0.2 , 1) ' red barrel colour
gl.glTranslatef(-1.1,0,distZ)
GLObject_Draw(obj2,gl)
gl.glPopMatrix
End Sub