Class OGL21Graphics
java.lang.Object
- All Implemented Interfaces:
OGLVersioned
- Direct Known Subclasses:
OGL30Graphics
OpenGL 2.1 Graphics Implementation.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested classes/interfaces inherited from class OGL20Graphics
OGL20Graphics.Info20Nested classes/interfaces inherited from class OGL13Graphics
OGL13Graphics.Info13Nested classes/interfaces inherited from class OGL11Graphics
OGL11Graphics.Info11Nested classes/interfaces inherited from class OGLGraphics
OGLGraphics.ErrorHandlingType, OGLGraphics.Info, OGLGraphics.Options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetProgramUniformMatrix2x3(int locationId, float[] matrix) Sets a uniform matrix (mat2x3) value on the currently-bound shader.voidsetProgramUniformMatrix2x3(int locationId, float[][] matrix) Sets a uniform matrix (mat2x3) value on the currently-bound shader.voidsetProgramUniformMatrix2x4(int locationId, float[] matrix) Sets a uniform matrix (mat2x4) value on the currently-bound shader.voidsetProgramUniformMatrix2x4(int locationId, float[][] matrix) Sets a uniform matrix (mat2x4) value on the currently-bound shader.voidsetProgramUniformMatrix3x2(int locationId, float[] matrix) Sets a uniform matrix (mat3x2) value on the currently-bound shader.voidsetProgramUniformMatrix3x2(int locationId, float[][] matrix) Sets a uniform matrix (mat3x2) value on the currently-bound shader.voidsetProgramUniformMatrix3x4(int locationId, float[] matrix) Sets a uniform matrix (mat3x4) value on the currently-bound shader.voidsetProgramUniformMatrix3x4(int locationId, float[][] matrix) Sets a uniform matrix (mat3x4) value on the currently-bound shader.voidsetProgramUniformMatrix4x2(int locationId, float[] matrix) Sets a uniform matrix (mat4x2) value on the currently-bound shader.voidsetProgramUniformMatrix4x2(int locationId, float[][] matrix) Sets a uniform matrix (mat4x2) value on the currently-bound shader.voidsetProgramUniformMatrix4x3(int locationId, float[] matrix) Sets a uniform matrix (mat4x3) value on the currently-bound shader.voidsetProgramUniformMatrix4x3(int locationId, float[][] matrix) Sets a uniform matrix (mat4x3) value on the currently-bound shader.Methods inherited from class OGL20Graphics
attachProgramShaders, createFileSourceSupplier, createFileSourceSupplier, createInfo, createProgram, createProgramBuilder, createProgramShader, createProgramShader, createReaderSourceSupplier, createStreamSourceSupplier, createStreamSourceSupplier, destroyProgram, destroyProgramShader, detachProgramShaders, endFrame, getProgram, linkProgram, refreshProgramLinkStatusAndUniforms, setFrameBufferWrite, setPointSpritesEnabled, setPointSpriteTexCoordGeneration, setProgram, setProgramUniformFloat, setProgramUniformFloatArray, setProgramUniformInt, setProgramUniformIntArray, setProgramUniformIVec2, setProgramUniformIVec3, setProgramUniformIVec4, setProgramUniformMatrix2, setProgramUniformMatrix2, setProgramUniformMatrix3, setProgramUniformMatrix3, setProgramUniformMatrix4, setProgramUniformMatrix4, setProgramUniformMatrix4, setProgramUniformMatrix4, setProgramUniformVec2, setProgramUniformVec3, setProgramUniformVec4, setProgramVertexAttribLocation, setVertexAttribBufferPointer, setVertexAttribEnabled, unsetProgramMethods inherited from class OGL15Graphics
createBuffer, createGeometryBuilder, createQuery, destroyBuffer, destroyQuery, endQuery, getBuffer, getCurrentBufferState, getQueryBooleanResult, getQueryResult, isQueryReady, mapByteBuffer, mapDoubleBuffer, mapFloatBuffer, mapIntBuffer, mapLongBuffer, mapShortBuffer, setBuffer, setBufferCapacity, setBufferData, setBufferData, setBufferData, setBufferData, setBufferData, setBufferData, setBufferSubData, setBufferSubData, setBufferSubData, setBufferSubData, setBufferSubData, setBufferSubData, setCurrentBufferState, setFogCoordinateSource, startQuery, unmapBuffer, unsetBufferMethods inherited from class OGL14Graphics
createTextureBuilder, setPointAttenuationFormula, setPointAttenuationMaximum, setPointAttenuationMinimum, setTextureFiltering, setTextureFiltering, setTextureLODBiasMethods inherited from class OGL13Graphics
getActiveTextureUnit, getCurrentActiveTextureUnitState, setActiveTextureUnit, setCurrentActiveTextureCoordArray, setCurrentActiveTextureUnitState, setTextureData, setTextureSubDataMethods inherited from class OGL12Graphics
drawGeometryElementRange, setTextureData, setTextureSubData, setTextureWrappingMethods inherited from class OGL11Graphics
accumulate, attribPop, attribPush, checkLightId, clear, clear, clientAttribPop, clientAttribPush, createTexture, destroyTexture, drawBitmap, drawGeometryArray, drawGeometryElements, finish, flush, getCurrentActiveTextureState, getCurrentMatrixId, getCurrentMatrixStack, getCurrentMatrixStack, getPixelPackAlignment, getPixelUnpackAlignment, getTexture, matrixAspectOrtho, matrixFrustum, matrixGet, matrixGet, matrixLookAt, matrixMode, matrixMultiply, matrixMultiply, matrixOrtho, matrixPerspective, matrixPop, matrixPush, matrixReset, matrixRotateX, matrixRotateY, matrixRotateZ, matrixScale, matrixSet, matrixSet, matrixTranslate, readFrameBuffer, resolveCurrentMatrixStack, setAutoNormalGen, setBackFillMode, setBlendingEnabled, setBlendingFunc, setBlendingFunc, setClearAccum, setClearColor, setClearDepth, setClearStencil, setColor, setColor, setColorARGB, setColorArrayEnabled, setColorArrayPointer, setColorMask, setColorMask, setCurrentActiveTextureState, setCurrentMatrixId, setDepthFunc, setDepthMask, setDepthTestEnabled, setFaceCullingEnabled, setFaceCullingSide, setFaceFront, setFillMode, setFogColor, setFogColor, setFogColor, setFogDensity, setFogEnabled, setFogEnd, setFogExponent, setFogExponentSquared, setFogFormula, setFogLinear, setFogStart, setFrameBufferRead, setFrameBufferWrite, setFrontFillMode, setHint, setLight, setLightAmbientColor, setLightAmbientColor, setLightAmbientColor, setLightAttenuation, setLightDiffuseColor, setLightDiffuseColor, setLightDiffuseColor, setLightEnabled, setLightingEnabled, setLightPosition, setLightShadeType, setLightSpecularColor, setLightSpecularColor, setLightSpecularColor, setLineSmoothingEnabled, setLineWidth, setMaterial, setMaterial, setMaterialAmbientColor, setMaterialAmbientColor, setMaterialAmbientColor, setMaterialDiffuseColor, setMaterialDiffuseColor, setMaterialDiffuseColor, setMaterialEmissionColor, setMaterialEmissionColor, setMaterialEmissionColor, setMaterialShininessFactor, setMaterialSpecularColor, setMaterialSpecularColor, setMaterialSpecularColor, setNormalArrayEnabled, setNormalArrayPointer, setPixelPackAlignment, setPixelUnpackAlignment, setPointSize, setPointSmoothingEnabled, setRasterPosition, setScissorBounds, setScissorTestEnabled, setStencilMask, setStencilTestEnabled, setStencilTestFunc, setStencilTestOperations, setTexGenEyePlane, setTexGenMode, setTexGenObjectPlane, setTexGenQEnabled, setTexGenREnabled, setTexGenSEnabled, setTexGenTEnabled, setTexture, setTextureCoordinateArrayEnabled, setTextureCoordinateArrayPointer, setTextureData, setTextureData, setTextureDataFromReadBuffer, setTextureDataFromReadBuffer, setTextureEnabled, setTextureEnvironment, setTextureFiltering, setTextureFiltering, setTextureSubData, setTextureSubData, setTextureSubDataFromReadBuffer, setTextureSubDataFromReadBuffer, setTextureWrapping, setTextureWrapping, setVertexArrayEnabled, setVertexArrayPointer, setViewport, unsetTextureMethods inherited from class OGLGraphics
checkError, clearError, currentBlit, currentFrame, currentNanos, currentTime, currentTimeMillis, currentTimeStepMillis, currentTimeStepNanos, destroyObject, fromGLBool, getCanvasAspect, getCanvasHeight, getCanvasWidth, getFloat, getFloats, getGLErrorName, getInfo, getInt, getInts, handleUndeletedObjects, isCore, setClientFlag, setFlag, supports, toGLBool, verifyFeatureSupport, verifyNonCore
-
Constructor Details
-
OGL21Graphics
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceOGLVersioned- Overrides:
getVersionin classOGL20Graphics- Returns:
- the version that this object or value is available for (and higher).
-
setProgramUniformMatrix2x3
public void setProgramUniformMatrix2x3(int locationId, float[] matrix) Sets a uniform matrix (mat2x3) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the column-major array of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 6 elements or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix2x3
public void setProgramUniformMatrix2x3(int locationId, float[][] matrix) Sets a uniform matrix (mat2x3) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the multidimensional array of values, each array as one row of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 2x3 or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix2x4
public void setProgramUniformMatrix2x4(int locationId, float[] matrix) Sets a uniform matrix (mat2x4) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the column-major array of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 8 elements or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix2x4
public void setProgramUniformMatrix2x4(int locationId, float[][] matrix) Sets a uniform matrix (mat2x4) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the multidimensional array of values, each array as one row of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 2x4 or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix3x2
public void setProgramUniformMatrix3x2(int locationId, float[] matrix) Sets a uniform matrix (mat3x2) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the column-major array of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 6 elements or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix3x2
public void setProgramUniformMatrix3x2(int locationId, float[][] matrix) Sets a uniform matrix (mat3x2) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the multidimensional array of values, each array as one row of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 3x2 or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix3x4
public void setProgramUniformMatrix3x4(int locationId, float[] matrix) Sets a uniform matrix (mat3x4) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the column-major array of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 12 elements or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix3x4
public void setProgramUniformMatrix3x4(int locationId, float[][] matrix) Sets a uniform matrix (mat3x4) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the multidimensional array of values, each array as one row of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 3x4 or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix4x2
public void setProgramUniformMatrix4x2(int locationId, float[] matrix) Sets a uniform matrix (mat4x2) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the column-major array of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 8 elements or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix4x2
public void setProgramUniformMatrix4x2(int locationId, float[][] matrix) Sets a uniform matrix (mat4x2) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the multidimensional array of values, each array as one row of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 4x2 or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix4x3
public void setProgramUniformMatrix4x3(int locationId, float[] matrix) Sets a uniform matrix (mat4x3) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the column-major array of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 12 elements or greater and a value is fetched out-of-bounds.
-
setProgramUniformMatrix4x3
public void setProgramUniformMatrix4x3(int locationId, float[][] matrix) Sets a uniform matrix (mat4x3) value on the currently-bound shader.- Parameters:
locationId- the uniform location.matrix- the multidimensional array of values, each array as one row of values.- Throws:
ArrayIndexOutOfBoundsException- if matrix is not 4x3 or greater and a value is fetched out-of-bounds.
-