- 
                Notifications
    
You must be signed in to change notification settings  - Fork 88
 
glRotatef
        Chris Petersen edited this page Oct 16, 2014 
        ·
        1 revision
      
    glRotatef produces a rotation of angle degrees around the point (x,y,z)
| Parameter | Description | 
|---|---|
| a | Rotation angle | 
| x | Rotation x coordinate reference | 
| y | Rotation y coordinate reference | 
| z | Rotation z coordinate reference | 
Example from modules/ln_glgui/glgui.scm
(define (glgui-render g1 . gx)
  (glCoreInit)  ;; setup the OpenGL pipeline
  (glPushMatrix)
  (cond 
    ((fx= glgui:rotate 1)
      (glRotatef -90. 0. 0. 1.)
      (glTranslatef (flo (- app:height)) 0. 0.))
    ((fx= glgui:rotate 2)
      (glRotatef 90. 0. 0. 1.)
      (glTranslatef 0. (flo (- app:width)) 0.))
    ((fx= glgui:rotate 3)
      (glRotatef 180. 0. 0. 1.)
      (glTranslatef (flo (- app:width)) (flo (- app:height)) 0.))
  )
  (apply glgui-renderloop (append (list g1) gx))
  (glPopMatrix)
)
- 
- 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