*** empty log message ***
parent
fc32e87b68
commit
2585c833c8
|
@ -1,12 +1,8 @@
|
|||
USING: kernel words namespaces sequences x x11 opengl gl ;
|
||||
|
||||
f initialize-x create-window win set { 250 250 } resize-window map-window
|
||||
|
||||
[ GLX_RGBA ] choose-visual create-context make-current
|
||||
|
||||
: display ( -- )
|
||||
GL_COLOR_BUFFER_BIT glClear
|
||||
1.0 0.0 0.0 glColor3f
|
||||
1.0 1.0 1.0 glColor3f
|
||||
GL_POLYGON glBegin
|
||||
0.25 0.25 0.0 glVertex3f
|
||||
0.75 0.25 0.0 glVertex3f
|
||||
|
@ -22,4 +18,5 @@ glLoadIdentity
|
|||
0.0 1.0 0.0 1.0 -1.0 1.0 glOrtho
|
||||
;
|
||||
|
||||
init display
|
||||
f initialize-x create-window win set { 250 250 } resize-window map-window
|
||||
[ GLX_RGBA ] choose-visual create-context make-current init display
|
Loading…
Reference in New Issue