Class OGL33Graphics
java.lang.Object
- All Implemented Interfaces:
OGLVersioned
- Direct Known Subclasses:
OGL40Graphics
OpenGL 3.3 Graphics Implementation.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested 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 TypeMethodDescriptionCreates a new sampler object.voiddestroySampler(OGLSampler sampler) Destroys a sampler object.protected voidendFrame()Called on frame end - mostly does cleanup of objects that were abandoned in OpenGL.longgetQueryResult(OGLQuery query) Gets the result of the query as a long integer.voidsetQueryCounter(OGLQuery query) Sets the GL timestamp on this query.voidsetSampler(OGLSampler sampler, int textureUnit) Sets the sampler to use for a given texture unit.voidsetSamplerFiltering(OGLSampler sampler, TextureMinFilter minFilter, TextureMagFilter magFilter) Sets the texture filtering types for a sampler.voidsetSamplerLODBias(OGLSampler sampler, float minLOD, float maxLOD) Sets the level-of-detail bias on this sampler.voidsetSamplerTextureBorderColor(OGLSampler sampler, float red, float green, float blue, float alpha) Sets the texture border color on a sampler object.voidsetSamplerTextureCompareFunction(OGLSampler sampler, LogicFunc func) Sets the texture compare function on this sampler.voidsetSamplerTextureCompareMode(OGLSampler sampler, boolean enabled) Sets the texture compare mode on this sampler.voidsetSamplerWrapR(OGLSampler sampler, TextureWrapType wrapType) Sets the R-coordinate wrapping for a sampler.voidsetSamplerWrapS(OGLSampler sampler, TextureWrapType wrapType) Sets the S-coordinate wrapping for a sampler.voidsetSamplerWrapT(OGLSampler sampler, TextureWrapType wrapType) Sets the T-coordinate wrapping for a sampler.voidunsetSampler(int textureUnit) Removes the current sampler from a given texture unit.Methods inherited from class OGL32Graphics
awaitClentFlushedCommandsSync, awaitSync, createFenceSync, createInfo, 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
-
OGL33Graphics
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceOGLVersioned- Overrides:
getVersionin classOGL32Graphics- Returns:
- the version that this object or value is available for (and higher).
-
endFrame
protected void endFrame()Description copied from class:OGLGraphicsCalled on frame end - mostly does cleanup of objects that were abandoned in OpenGL.- Overrides:
endFramein classOGL32Graphics
-
setQueryCounter
Sets the GL timestamp on this query. Can only be used within queries where the target isQueryTarget.TIME_ELAPSED.- Parameters:
query- the query to use.
-
getQueryResult
Description copied from class:OGL15GraphicsGets the result of the query as a long integer. IfOGL15Graphics.isQueryReady(OGLQuery)is not checked beforehand, this will hold the thread until the query is finished. Depending on your OpenGL version, a 64-bit precision value may not be available.- Overrides:
getQueryResultin classOGL15Graphics- Parameters:
query- the query to get the results for.- Returns:
- the long value of the result.
-
createSampler
-
destroySampler
Destroys a sampler object.- Parameters:
sampler- the sampler to destroy.
-
setSampler
Sets the sampler to use for a given texture unit.- Parameters:
sampler- the sampler to bind.textureUnit- the texture unit to bind it to.
-
unsetSampler
public void unsetSampler(int textureUnit) Removes the current sampler from a given texture unit.- Parameters:
textureUnit- the texture unit to unbind from.
-
setSamplerWrapS
Sets the S-coordinate wrapping for a sampler.- Parameters:
sampler- the sampler to set the parameter on.wrapType- the new wrapping type.
-
setSamplerWrapT
Sets the T-coordinate wrapping for a sampler.- Parameters:
sampler- the sampler to set the parameter on.wrapType- the new wrapping type.
-
setSamplerWrapR
Sets the R-coordinate wrapping for a sampler.- Parameters:
sampler- the sampler to set the parameter on.wrapType- the new wrapping type.
-
setSamplerFiltering
public void setSamplerFiltering(OGLSampler sampler, TextureMinFilter minFilter, TextureMagFilter magFilter) Sets the texture filtering types for a sampler.- Parameters:
sampler- the sampler to set the parameters on.minFilter- the minification filter to use.magFilter- the magnification filter to use.
-
setSamplerLODBias
Sets the level-of-detail bias on this sampler.- Parameters:
sampler- the sampler to set the parameters on.minLOD- the minimum LOD bias. This value limits the selection of highest resolution mipmap (lowest mipmap level).maxLOD- the maximum LOD bias. This value limits the selection of lowest resolution mipmap (highest mipmap level).
-
setSamplerTextureBorderColor
public void setSamplerTextureBorderColor(OGLSampler sampler, float red, float green, float blue, float alpha) Sets the texture border color on a sampler object.- Parameters:
sampler- the sampler to set the parameter on.red- the red component value (0 to 1).green- the green component value (0 to 1).blue- the blue component value (0 to 1).alpha- the alpha component value (0 to 1).
-
setSamplerTextureCompareMode
Sets the texture compare mode on this sampler. This is for a texture that is a depth-component texture.- Parameters:
sampler- the sampler to set the parameter on.enabled- if true, enable depth comparison on this sampler.
-
setSamplerTextureCompareFunction
Sets the texture compare function on this sampler. This is for a texture that is a depth-component texture.- Parameters:
sampler- the sampler to set the parameter on.func- if true, enable depth comparison on this sampler.- See Also:
-