Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/Draw-a-sphere/Ol/draw-a-sphere.ol
Normal file
16
Task/Draw-a-sphere/Ol/draw-a-sphere.ol
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
(import (lib gl))
|
||||
(import (OpenGL version-1-0))
|
||||
|
||||
; init
|
||||
(glClearColor 0.3 0.3 0.3 1)
|
||||
(glPolygonMode GL_FRONT_AND_BACK GL_FILL)
|
||||
|
||||
(define quadric (gluNewQuadric))
|
||||
|
||||
; draw loop
|
||||
(gl:set-renderer (lambda (mouse)
|
||||
(glClear GL_COLOR_BUFFER_BIT)
|
||||
|
||||
(glColor3f 0.7 0.7 0.7)
|
||||
(gluSphere quadric 0.4 32 10)
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue