codeanticode.glgraphics
Class GLShader
java.lang.Object
codeanticode.glgraphics.GLShader
- All Implemented Interfaces:
- GLConstants
- Direct Known Subclasses:
- GLCgShader, GLSLShader
public abstract class GLShader
- extends java.lang.Object
- implements GLConstants
This class defines the basic API of a shader (GLSL or Cg).
Fields inherited from interface codeanticode.glgraphics.GLConstants |
BACKGROUND_ALPHA, CG_CONTEXT, CG_EFFECT, CG_PROGRAM, COLOR, DOUBLE, FLOAT, FRAGMENT_PROGRAM, GEOMETRY_PROGRAM, GL_DEPTH_STENCIL, GL_DEPTH24_STENCIL8, GL_FRAME_BUFFER, GL_PIXEL_BUFFER, GL_RENDER_BUFFER, GL_TEXTURE_OBJECT, GL_UNSIGNED_INT_24_8, GL_VERTEX_BUFFER, GLGRAPHICS, GLSL_PROGRAM, GLSL_SHADER, IDENTITY_MATRIX, INVERSE_MATRIX, INVERSE_TRANSPOSE_MATRIX, LINE_ADJACENCY, LINEAR_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST, LINEAR_SAMPLING, NEAREST_MIPMAP_LINEAR, NEAREST_MIPMAP_NEAREST, NEAREST_SAMPLING, SHADER_VAR_ARRAY, SHADER_VAR_FLOAT, SHADER_VAR_INT, SHADER_VAR_MAT2, SHADER_VAR_MAT3, SHADER_VAR_MAT4, SHADER_VAR_MODELVIEW_MAT, SHADER_VAR_MODELVIEW_PROJECTION_MAT, SHADER_VAR_PROJECTION_MAT, SHADER_VAR_TEXTURE_MAT, SHADER_VAR_TEXTURE_SAMPLER, SHADER_VAR_VEC2, SHADER_VAR_VEC3, SHADER_VAR_VEC4, TEX_BYTE, TEX_INT, TEX_NORM, TEX_ONEDIM, TEX_RECT, TRANSPOSE_MATRIX, TRIANGLE_ADJACENCY, VERTEX_PROGRAM |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delete
public void delete()
loadVertexShader
public abstract void loadVertexShader(java.lang.String file)
loadVertexShader
public abstract void loadVertexShader(java.net.URL url)
loadGeometryShader
public abstract void loadGeometryShader(java.lang.String file)
loadGeometryShader
public abstract void loadGeometryShader(java.net.URL url)
loadFragmentShader
public abstract void loadFragmentShader(java.lang.String file)
loadFragmentShader
public abstract void loadFragmentShader(java.net.URL url)
isInitialized
public abstract boolean isInitialized()
setup
public abstract void setup()
start
public abstract void start()
stop
public abstract void stop()
processing library GLGraphics by Andres Colubri. (c) 2008-2011