ported example from pretty-big to racket/gui
(Why? sgl is in mr dist, pretty-big is in plt dist)
This commit is contained in:
parent
a436df02f4
commit
4f41e3f79d
|
@ -1,6 +1,5 @@
|
||||||
;; By Brendan Burns, with modifications by Scott Owens
|
;; By Brendan Burns, with modifications by Scott Owens
|
||||||
|
(module gl-frame racket/gui
|
||||||
(module gl-frame lang/plt-pretty-big
|
|
||||||
(require sgl/gl
|
(require sgl/gl
|
||||||
sgl/gl-vectors)
|
sgl/gl-vectors)
|
||||||
(provide set-gl-draw-fn
|
(provide set-gl-draw-fn
|
||||||
|
@ -110,7 +109,7 @@
|
||||||
(letrec
|
(letrec
|
||||||
([loop
|
([loop
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(if (< i pixels)
|
(when (< i pixels)
|
||||||
(begin
|
(begin
|
||||||
(gl-vector-set! vec (* i 3)
|
(gl-vector-set! vec (* i 3)
|
||||||
(bytes-ref data (+ (* i 4) 1)))
|
(bytes-ref data (+ (* i 4) 1)))
|
||||||
|
@ -147,6 +146,3 @@
|
||||||
(lambda (ix)
|
(lambda (ix)
|
||||||
(gl-vector-ref *textures* ix)))
|
(gl-vector-ref *textures* ix)))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user