codeanticode.glgraphics
Class GLGraphicsOffScreen

java.lang.Object
  extended by PGraphicsOpenGL
      extended by codeanticode.glgraphics.GLGraphicsOffScreen
All Implemented Interfaces:
GLConstants

public class GLGraphicsOffScreen
extends PGraphicsOpenGL
implements GLConstants

This class implements an opengl renderer for off-screen rendering to texture.


Field Summary
 
Fields inherited from interface codeanticode.glgraphics.GLConstants
COLOR, DOUBLE, FLOAT, GL_DEPTH_STENCIL, GL_DEPTH24_STENCIL8, GL_UNSIGNED_INT_24_8, GLGRAPHICS, LINEAR, LINEAR_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST, NEAREST, NEAREST_MIPMAP_LINEAR, NEAREST_MIPMAP_NEAREST, TEX_FILTER_PARAM_FLOAT, TEX_FILTER_PARAM_INT, TEX_FILTER_PARAM_MAT2, TEX_FILTER_PARAM_MAT3, TEX_FILTER_PARAM_MAT4, TEX_FILTER_PARAM_VEC2, TEX_FILTER_PARAM_VEC3, TEX_FILTER_PARAM_VEC4, TEX_INT, TEX_UBYTE, TEX1, TEX1D, TEX2D, TEX3, TEX4, TEXRECT
 
Constructor Summary
GLGraphicsOffScreen(processing.core.PApplet parent, int iwidth, int iheight)
          Creates an instance of GLGraphicsOffScreen for off-screen rendering.
 
Method Summary
 void beginDraw()
           
 void endDraw()
           
 GLTexture getTexture()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLGraphicsOffScreen

public GLGraphicsOffScreen(processing.core.PApplet parent,
                           int iwidth,
                           int iheight)
Creates an instance of GLGraphicsOffScreen for off-screen rendering. An drawing OpenGL drawing surface with the specified width and height is created, complete with depth and stencil buffers.

Parameters:
parent - PApplet
int - iwidth
int - iheight
Method Detail

getTexture

public GLTexture getTexture()

beginDraw

public void beginDraw()

endDraw

public void endDraw()


processing library glgraphics by Andres Colubri. (c) 2008