Hi,
And here is the OxygenBasic Version.
include "sw.inc" include "swgl.inc" hwnd = Window 640,450, SW_WINDOWED InitGl (hwnd) single a ClsColor 0, 0, 0, 255 while (1) ClearScreen glLoadIdentity glRotatef a, 1.0, 1.0, 1.0 glBegin GL_TRIANGLES glColor3ub 255,0,0 : glVertex3f -0.5, -0.5, 0.0 glColor3ub 0,255,0 : glVertex3f 0.5, -0.5, 0.0 glColor3ub 0,0,255 : glVertex3f 0.0, 0.5, 0.0 glEnd DoEvents SwapBuffer SetFps (60) a +=1 iF a>360 then a=0 iF Key(27) then Exit While wend QuitGl Quit
Bookmarks