Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Draw-a-pixel/Ol/draw-a-pixel.ol
Normal file
14
Task/Draw-a-pixel/Ol/draw-a-pixel.ol
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(import (lib gl))
|
||||
(import (OpenGL version-1-0))
|
||||
|
||||
; init
|
||||
(glClearColor 0.3 0.3 0.3 1)
|
||||
(glOrtho 0 320 0 240 0 1)
|
||||
|
||||
; draw loop
|
||||
(gl:set-renderer (lambda (mouse)
|
||||
(glClear GL_COLOR_BUFFER_BIT)
|
||||
(glBegin GL_POINTS)
|
||||
(glColor3f 255 0 0)
|
||||
(glVertex2f 100 100)
|
||||
(glEnd)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue