All My Brain Where stuff from my brain lands

December 8, 2011

Rendering to a texture with iOS 5 texture cache api.

Filed under: Programming — Tags: , , , , , — Dennis @ 7:31 am

There are a couple examples of how to take image input, perhaps from the iPhone camera, or from your own image, fast map those image to an OpenGl texture, and then render them with an OpenGL shader. This post is for those of you who don’t necessarily want to render the image on the screen, but want to perform some OpenGL operations and then read the image back out. Luckily, the same API that allows you to map the images to textures, also allows you to read data back out from the textures without having to use glReadPixels(…) or some other method that takes a long time. Here’s how it’s done…

(more…)

Powered by WordPress

css.php
%d bloggers like this: