Package | Description |
---|---|
com.luciad.view.lightspeed.util.opengl.glsl |
Contains convenience classes for working with the OpenGL Shading Language
(GLSL).
|
com.luciad.view.opengl.binding |
Abstract binding for the OpenGL API.
|
Modifier and Type | Method and Description |
---|---|
void |
TLspShaderProgram.attachShaders(ILcdGL aGL)
Attaches the shaders to this program.
|
static TLspShader |
TLspShader.createFragmentShader(ILcdGL aGL,
String aSource)
Creates a fragment shader from the given source file.
|
static TLspShader |
TLspShader.createFragmentShader(ILcdGL aGL,
String[] aSources)
Creates a fragment shader from the given source files.
|
static TLspShader |
TLspShader.createFragmentShaderFromSourceCode(ILcdGL aGL,
String[] aSourceCode)
Creates a fragment shader from the given source code chunks.
|
static TLspShader |
TLspShader.createGeometryShader(ILcdGL aGL,
String aSource)
Creates a geometry shader from the given source file.
|
static TLspShader |
TLspShader.createGeometryShader(ILcdGL aGL,
String[] aSources)
Creates a geometry shader from the given source files.
|
static TLspShader |
TLspShader.createVertexShader(ILcdGL aGL,
String aSource)
Creates a vertex shader from the given source file.
|
static TLspShader |
TLspShader.createVertexShader(ILcdGL aGL,
String[] aSources)
Creates a vertex shader from the given source files.
|
static TLspShader |
TLspShader.createVertexShaderFromSourceCode(ILcdGL aGL,
String[] aSourceCode)
Creates a vertex shader from the given source code chunks.
|
void |
TLspShader.destroy(ILcdGL aGL)
Destroys the shader making it invalid to use.
|
void |
TLspShaderProgram.disableVertexAttribArray(ILcdGL aGL,
String aName)
Disables the vertex attribute array associated with the given name.
|
int |
TLspShaderProgram.getAttribLocation(ILcdGL aGL,
String aName)
Gets the location associated with the given name for a vertex attribute
|
int |
TLspShaderProgram.getUniformLocation(ILcdGL aGL,
String aName)
Gets the location associated with the given name for a uniform variable
|
void |
TLspShaderProgram.link(ILcdGL aGL)
Link the shader program.
|
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
boolean aValue)
Sets the uniform value.
|
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
double aValue)
Sets the uniform value.
|
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
float aValue)
Sets the uniform value.
|
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
float aValue1,
float aValue2)
Sets the value of the
vec2 uniform with given name. |
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
float aValue1,
float aValue2,
float aValue3)
Sets the value of the
vec3 uniform with given name. |
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
float aValue1,
float aValue2,
float aValue3,
float aValue4)
Sets the value of the
vec4 uniform with given name. |
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
int aValue)
Sets the uniform value.
|
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
int nbComponents,
FloatBuffer aValues)
Sets the uniform values.
|
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
int aValue1,
int aValue2)
Sets the value of the
ivec2 uniform with given name. |
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
int nbComponents,
IntBuffer aValues)
Sets the uniform values.
|
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
int aValue1,
int aValue2,
int aValue3)
Sets the value of the
ivec3 uniform with given name. |
void |
TLspShaderProgram.setUniformData(ILcdGL aGL,
String aName,
int aValue1,
int aValue2,
int aValue3,
int aValue4)
Sets the value of the
ivec4 uniform with given name. |
void |
TLspShaderProgram.setUniformMatrixData(ILcdGL aGL,
String aName,
int aDimension,
boolean aTranspose,
FloatBuffer aValues)
Sets the uniform matrix.
|
void |
TLspShaderProgram.setUniformMatrixData(ILcdGL aGL,
String aName,
int nbMatrices,
int aDimension,
boolean aTranspose,
FloatBuffer aValues) |
void |
TLspShaderProgram.setVertexAttribArray(ILcdGL aGL,
String aName,
int aNbComponents,
int aType,
boolean aNormalize,
int aStride,
Buffer aDirectBuffer)
Sets the vertex attribute pointer for the given vertex attribute.
|
void |
TLspShaderProgram.setVertexAttribData(ILcdGL aGL,
String aName,
double aValue)
Sets the vertex attribute.
|
void |
TLspShaderProgram.setVertexAttribData(ILcdGL aGL,
String aName,
float aValue)
Sets the vertex attribute.
|
void |
TLspShaderProgram.setVertexAttribData(ILcdGL aGL,
String aName,
int nbComponents,
DoubleBuffer aValues)
Sets the vertex attribute values.
|
void |
TLspShaderProgram.setVertexAttribData(ILcdGL aGL,
String aName,
int nbComponents,
FloatBuffer aValues)
Sets the vertex attribute values.
|
void |
TLspShaderProgram.setVertexAttribData(ILcdGL aGL,
String aName,
int nbComponents,
ShortBuffer aValues)
Sets the vertex attribute values.
|
void |
TLspShaderProgram.setVertexAttribData(ILcdGL aGL,
String aName,
short aValue)
Sets the vertex attribute.
|
Modifier and Type | Class and Description |
---|---|
class |
TLcdGLDebugGL
ILcdGL wrapper implementation that performs a glGetError call after each delegated OpenGL
call. |
class |
TLcdGLPassThroughGL
ILcdGL wrapper implementation which simply delegates all OpenGL calls. |
class |
TLcdGLTraceGL
ILcdGL wrapper implementation which prints the name of each invoked OpenGL call to a given
PrintStream along with the values of its arguments. |
Modifier and Type | Method and Description |
---|---|
ILcdGL |
TLcdGLTraceGL.getDelegate() |
ILcdGL |
TLcdGLPassThroughGL.getDelegate() |
ILcdGL |
TLcdGLDebugGL.getDelegate() |
ILcdGL |
ILcdGLDrawable.getGL()
Returns the ILcdGL object associated with the drawable.
|
Modifier and Type | Method and Description |
---|---|
void |
ILcdGLDrawable.setGL(ILcdGL aGL)
Sets the ILcdGL used by this drawable.
|
Constructor and Description |
---|
TLcdGLDebugGL(ILcdGL aDelegate) |
TLcdGLPassThroughGL(ILcdGL aDelegate) |
TLcdGLTraceGL(ILcdGL aDelegate) |
TLcdGLTraceGL(ILcdGL aDelegate,
PrintStream aPrintStream) |