Kigs Framework
Doc version 0.8
Open source multi purpose Rapid Application Development framework
|
#include <AndroidGraphicBufferBase.inl.h>
Inherited by AndroidGraphicBuffer, and AndroidGraphicBufferN.
This class allows access to Android's direct texturing mechanism. Locking the buffer gives you a pointer you can read/write to directly. It is fully threadsafe, but you probably really want to use the AndroidDirectTexture class which will handle double buffering.
In order to use the buffer in OpenGL, just call Bind() and it will attach to whatever texture is bound to GL_TEXTURE_2D.