Class OGL41Graphics
java.lang.Object
com.blackrook.gloop.opengl.OGLGraphics
com.blackrook.gloop.opengl.gl1.OGL11Graphics
- All Implemented Interfaces:
OGLVersioned
- Direct Known Subclasses:
OGL42Graphics
OpenGL 4.1 Graphics Implementation.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classstatic final classAn OpenGL Shader Program binary representation.Nested classes/interfaces inherited from class OGL40Graphics
OGL40Graphics.Info40Nested classes/interfaces inherited from class OGL32Graphics
OGL32Graphics.Info32Nested classes/interfaces inherited from class OGL31Graphics
OGL31Graphics.Info31Nested classes/interfaces inherited from class OGL30Graphics
OGL30Graphics.Info30Nested 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 TypeMethodDescriptionprotected OGLGraphics.InfoCalled once in order to fetch context info.Creates a new Program Pipeline object.voiddestroyProgramPipeline(OGLProgramPipeline pipeline) Destroys a program pipeline.protected voidendFrame()Called on frame end - mostly does cleanup of objects that were abandoned in OpenGL.getProgramBinary(OGLProgram program) Retrieves the binary representation of a compiled and linked program.getProgramPipelineInfoLog(OGLProgramPipeline pipeline) Fetches a program pipeline's info log aas a string.voidsetProgramBinary(OGLProgram program, OGL41Graphics.ProgramBinary programBinary) Creates a program from a binary representation.voidsetProgramBinaryRetriveableHint(OGLProgram program, boolean enabled) Sets a hint on a program to tell OpenGL that you are going to retrieve a binary representation from it.voidsetProgramSeparable(OGLProgram program, boolean enabled) Sets a flag on a program to tell OpenGL that you are planning to add this to a pipeline later.voidsetViewportIndex(int index, int x, int y, int width, int height) Sets a viewport at a specific index.voidvalidateProgramPipeline(OGLProgramPipeline pipeline) Checks the validity of a program pipeline's executables against this OpenGL context.Methods inherited from class OGL40Graphics
endQueryIndexed, setTessellationPatchInnerLevel, setTessellationPatchOuterLevel, startQueryIndexedMethods inherited from class OGL33Graphics
createSampler, destroySampler, getQueryResult, setQueryCounter, setSampler, setSamplerFiltering, setSamplerLODBias, setSamplerTextureBorderColor, setSamplerTextureCompareFunction, setSamplerTextureCompareMode, setSamplerWrapR, setSamplerWrapS, setSamplerWrapT, unsetSamplerMethods inherited from class OGL32Graphics
awaitClentFlushedCommandsSync, awaitSync, createFenceSync, destroySync, getMultisampleMethods inherited from class OGL31Graphics
drawGeometryArrayInstanced, drawGeometryElementsInstanced, drawGeometryElementsInstanced, drawGeometryElementsInstanced, drawGeometryElementsInstancedMethods inherited from class OGL30Graphics
attachFramebufferRenderbuffer, attachFramebufferTexture2D, checkFramebufferStatus, createFramebuffer, createProgramBuilder, createRenderbuffer, createVertexArrayState, createVertexArrayState, destroyFramebuffer, destroyRenderbuffer, destroyVertexArrayState, detachFramebufferRenderbuffer, detachFramebufferTexture2D, endConditionalRender, endTransformFeedback, generateMipmaps, matrixGet, matrixGet, matrixGet, matrixGet, matrixId, matrixMode, setFramebuffer, setProgramFragmentDataLocation, setProgramUniformMatrix4, setProgramUniformMatrix4, setRenderbuffer, setRenderbufferSize, setShaderUniformUnsignedInt, setShaderUniformUnsignedIntArray, setShaderUniformUnsignedIVec2, setShaderUniformUnsignedIVec3, setShaderUniformUnsignedIVec4, setTextureFiltering, setTextureFiltering, setTransformFeedbackVaryingNames, setVertexArrayState, startConditionalRender, startTransformFeedback, unsetFramebuffer, unsetRenderbuffer, unsetVertexArrayStateMethods inherited from class OGL21Graphics
setProgramUniformMatrix2x3, setProgramUniformMatrix2x3, setProgramUniformMatrix2x4, setProgramUniformMatrix2x4, setProgramUniformMatrix3x2, setProgramUniformMatrix3x2, setProgramUniformMatrix3x4, setProgramUniformMatrix3x4, setProgramUniformMatrix4x2, setProgramUniformMatrix4x2, setProgramUniformMatrix4x3, setProgramUniformMatrix4x3Methods inherited from class OGL20Graphics
attachProgramShaders, createFileSourceSupplier, createFileSourceSupplier, createProgram, createProgramShader, createProgramShader, createReaderSourceSupplier, createStreamSourceSupplier, createStreamSourceSupplier, destroyProgram, destroyProgramShader, detachProgramShaders, getProgram, linkProgram, refreshProgramLinkStatusAndUniforms, setFrameBufferWrite, setPointSpritesEnabled, setPointSpriteTexCoordGeneration, setProgram, setProgramUniformFloat, setProgramUniformFloatArray, setProgramUniformInt, setProgramUniformIntArray, setProgramUniformIVec2, setProgramUniformIVec3, setProgramUniformIVec4, setProgramUniformMatrix2, setProgramUniformMatrix2, setProgramUniformMatrix3, setProgramUniformMatrix3, setProgramUniformMatrix4, setProgramUniformMatrix4, setProgramUniformMatrix4, setProgramUniformVec2, setProgramUniformVec3, setProgramUniformVec4, setProgramVertexAttribLocation, setVertexAttribBufferPointer, setVertexAttribEnabled, unsetProgramMethods inherited from class OGL15Graphics
createBuffer, createGeometryBuilder, createQuery, destroyBuffer, destroyQuery, endQuery, getBuffer, getCurrentBufferState, getQueryBooleanResult, 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, 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, matrixLookAt, 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
-
OGL41Graphics
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceOGLVersioned- Overrides:
getVersionin classOGL40Graphics- Returns:
- the version that this object or value is available for (and higher).
-
createInfo
Description copied from class:OGLGraphicsCalled once in order to fetch context info.- Overrides:
createInfoin classOGL40Graphics- Returns:
- the info object.
-
endFrame
protected void endFrame()Description copied from class:OGLGraphicsCalled on frame end - mostly does cleanup of objects that were abandoned in OpenGL.- Overrides:
endFramein classOGL33Graphics
-
setViewportIndex
public void setViewportIndex(int index, int x, int y, int width, int height) Sets a viewport at a specific index.- Parameters:
index- the index to set.x- x-coordinate origin of the screen.y- y-coordinate origin of the screen.width- the width of the viewport in pixels.height- the height of the viewport in pixels.- See Also:
-
setProgramBinaryRetriveableHint
Sets a hint on a program to tell OpenGL that you are going to retrieve a binary representation from it. You should set this flag before linking a program.- Parameters:
program- the program to set the hint on.enabled- true to enable, false to disable.
-
setProgramSeparable
Sets a flag on a program to tell OpenGL that you are planning to add this to a pipeline later. You should set this flag before linking a program.- Parameters:
program- the program to set the hint on.enabled- true to enable, false to disable.
-
getProgramBinary
Retrieves the binary representation of a compiled and linked program.- Parameters:
program- the program to get the binary data from.- Returns:
- a ProgramBinary object that contains the program binary representation.
- Throws:
GraphicsException- if the program is not linked.- See Also:
-
setProgramBinary
Creates a program from a binary representation.- Parameters:
program- the program to update.programBinary- the binary representation to use.- Throws:
GraphicsException- if the program could not be uploaded.- See Also:
-
createProgramPipeline
Creates a new Program Pipeline object.- Returns:
- a new program pipeline object.
-
destroyProgramPipeline
Destroys a program pipeline.- Parameters:
pipeline- the pipeline to destroy.
-
getProgramPipelineInfoLog
Fetches a program pipeline's info log aas a string.- Parameters:
pipeline- the pipeline to query.- Returns:
- the pipeline's info log as a string.
-
validateProgramPipeline
Checks the validity of a program pipeline's executables against this OpenGL context.- Parameters:
pipeline- the pipeline to check.- Throws:
GraphicsException- if the pipeline is invalid.
-