Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

glCoreTextureWidth returns the texture width

Parameter Description
t The texture

Example

Example 1: Update a texture from the iOS cameraroll

(define (cameraroll-updatetexture t)
  (cameraroll:update)
  (let* ((th (glCoreTextureHeight t))
         (tw (glCoreTextureWidth t))
         (data (glCoreTextureData t)))
    (cameraroll:rgb data tw th)
    (glCoreTextureUpdate t)
))
Clone this wiki locally