-
Notifications
You must be signed in to change notification settings - Fork 86
glOrtho
Chris Petersen edited this page Oct 16, 2014
·
1 revision
glOrtho describes a transformation that produces a parallel projection.
Note: glOrtho is different in OpenGL and GLES. Why???
Parameter | Description |
---|---|
left | Left clipping plane |
right | Right clipping plane |
bottom | Bottom clipping plane |
top | Top clipping plane |
near | Nearer clipping plane |
far | Farther clipping plane |
Example 1: From modules/ln_glcore/glcore.scm:
(define (glCoreInit)
(if glCore:needsinit (begin
(glCoreTextureReset)
(glClearColor 0. 0. 0. 0.)
(glMatrixMode GL_PROJECTION)
(glLoadIdentity)
(glOrtho 0. (flo app:width) 0. (flo app:height) -1. 1.)
;; Many more here
)))
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip