OpenGL: Difference between revisions

→‎{{header|Racket}}: Make sure to repaint, when canvas is resized.
No edit summary
(→‎{{header|Racket}}: Make sure to repaint, when canvas is resized.)
Line 2,134:
(with-gl-context (λ() (draw-opengl) (swap-gl-buffers))))
(define/override (on-size width height)
(with-gl-context (λ() (resize width height) (on-paint))))
(super-instantiate () (style '(gl)))))
 
Anonymous user