Class OGL13Graphics
java.lang.Object
com.blackrook.gloop.opengl.OGLGraphics
com.blackrook.gloop.opengl.gl1.OGL11Graphics
com.blackrook.gloop.opengl.gl1.OGL12Graphics
com.blackrook.gloop.opengl.gl1.OGL13Graphics
- All Implemented Interfaces:
OGLVersioned
- Direct Known Subclasses:
OGL14Graphics
OpenGL 1.3 Graphics Implementation.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested ClassesNested 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 texture builder.intprotected intvoidsetActiveTextureUnit(int unit) Sets the current "active" texture unit for texture bindings and texture environment settings.voidsetCurrentActiveTextureCoordArray(int unit) Sets the current client active texture (for coordinates submission).protected voidsetCurrentActiveTextureUnitState(int unit) Sets the current texture unit state.voidsetTextureData(TextureCubeFace cubeFace, ByteBuffer imageData, ColorFormat colorFormat, TextureFormat format, int texlevel, int width, int height, int border) Sends a texture into OpenGL's memory for the current texture bound toTextureTargetType.TEXTURE_CUBE.voidsetTextureSubData(TextureCubeFace cubeFace, ByteBuffer imageData, ColorFormat colorFormat, int texlevel, int width, int height, int xoffs, int yoffs) Sends a subset of data to the current texture bound toTextureTargetType.TEXTURE_CUBEalready in OpenGL's memory.Methods 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, endFrame, 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
-
OGL13Graphics
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceOGLVersioned- Overrides:
getVersionin classOGL12Graphics- 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 classOGL11Graphics- Returns:
- the info object.
-
getCurrentActiveTextureUnitState
protected int getCurrentActiveTextureUnitState()- Overrides:
getCurrentActiveTextureUnitStatein classOGL11Graphics- Returns:
- the current "active" texture unit.
-
setCurrentActiveTextureUnitState
protected void setCurrentActiveTextureUnitState(int unit) Description copied from class:OGL11GraphicsSets the current texture unit state.- Overrides:
setCurrentActiveTextureUnitStatein classOGL11Graphics- Parameters:
unit- the current "active" texture unit to set.
-
createTextureBuilder
Creates a texture builder.This texture builder aids in building texture objects, and its
TextureBuilder.create()method will bind a new texture to its required target, send the data, set the filtering and build mipmaps, unbind the target, and return the new object.Limitations on this implementation version are: No auto mipmapgen.
- Overrides:
createTextureBuilderin classOGL12Graphics- Returns:
- a new texture builder.
-
getActiveTextureUnit
public int getActiveTextureUnit()- Returns:
- the current active texture unit.
- See Also:
-
setActiveTextureUnit
public void setActiveTextureUnit(int unit) Sets the current "active" texture unit for texture bindings and texture environment settings. This texture unit is the one used for all subsequent calls to texture target binding, until it is changed.- Parameters:
unit- the texture unit to switch to.
-
setTextureData
public void setTextureData(TextureCubeFace cubeFace, ByteBuffer imageData, ColorFormat colorFormat, TextureFormat format, int texlevel, int width, int height, int border) Sends a texture into OpenGL's memory for the current texture bound toTextureTargetType.TEXTURE_CUBE.- Parameters:
cubeFace- the texture cube face.imageData- the image to send.colorFormat- the pixel storage format of the buffer data.format- the internal format.texlevel- the mipmapping level to copy this into (0 is topmost).width- the texture width in texels.height- the texture height in texels.border- the texel border to add, if any.- Throws:
UnsupportedOperationException- if any provided type or format is unavailable in this version.GraphicsException- if the buffer provided is not direct, or if no current cube texture.
-
setTextureSubData
public void setTextureSubData(TextureCubeFace cubeFace, ByteBuffer imageData, ColorFormat colorFormat, int texlevel, int width, int height, int xoffs, int yoffs) Sends a subset of data to the current texture bound toTextureTargetType.TEXTURE_CUBEalready in OpenGL's memory.- Parameters:
cubeFace- the texture cube face.imageData- the image to send.colorFormat- the pixel storage format of the buffer data.texlevel- the mipmapping level to copy this into (0 is topmost).width- the texture width in texels.height- the texture height in texels.xoffs- the texel offset.yoffs- the texel offset.- Throws:
UnsupportedOperationException- if the provided format is unavailable in this version.GraphicsException- if the buffer provided is not direct, or if no current cube texture.
-
setCurrentActiveTextureCoordArray
public void setCurrentActiveTextureCoordArray(int unit) Sets the current client active texture (for coordinates submission).- Parameters:
unit- the texture unit for binding.
-