Class OGL14Graphics
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
com.blackrook.gloop.opengl.gl1.OGL14Graphics
- All Implemented Interfaces:
OGLVersioned
- Direct Known Subclasses:
OGL15Graphics
OpenGL 1.4 Graphics Implementation.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested 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 texture builder.voidsetPointAttenuationFormula(float constant, float linear, float quadratic) Sets the attenuation formula to use when changing the sizes of points based on their location in space.voidsetPointAttenuationMaximum(float size) Sets the maximum size for the diameter of Point geometry when it is attenuated by point distance from the "camera".voidsetPointAttenuationMinimum(float size) Sets the minimum size for the diameter of Point geometry when it is attenuated by point distance from the "camera".voidsetTextureFiltering(TextureTargetType target, TextureMinFilter minFilter, TextureMagFilter magFilter, boolean genMipmaps) Sets the filtering for the current texture bound to the specified target.voidsetTextureFiltering(TextureTargetType target, TextureMinFilter minFilter, TextureMagFilter magFilter, float anisotropy, boolean genMipmaps) Sets the filtering for the current texture bound to the specified target.voidsetTextureLODBias(float bias) Sets the Level Of Detail bias for automatic texture mipmapping.Methods inherited from class OGL13Graphics
createInfo, 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, 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
-
OGL14Graphics
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceOGLVersioned- Overrides:
getVersionin classOGL13Graphics- Returns:
- the version that this object or value is available for (and higher).
-
setPointAttenuationMaximum
public void setPointAttenuationMaximum(float size) Sets the maximum size for the diameter of Point geometry when it is attenuated by point distance from the "camera".- Parameters:
size- the minimum size.
-
setPointAttenuationMinimum
public void setPointAttenuationMinimum(float size) Sets the minimum size for the diameter of Point geometry when it is attenuated by point distance from the "camera".- Parameters:
size- the minimum size.
-
setPointAttenuationFormula
public void setPointAttenuationFormula(float constant, float linear, float quadratic) Sets the attenuation formula to use when changing the sizes of points based on their location in space.- Parameters:
constant- the formula constant coefficient.linear- the formula linear coefficient.quadratic- the formula quadratic coefficient.
-
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.- Overrides:
createTextureBuilderin classOGL13Graphics- Returns:
- a new texture builder.
-
setTextureLODBias
public void setTextureLODBias(float bias) Sets the Level Of Detail bias for automatic texture mipmapping.- Parameters:
bias- the bias value.
-
setTextureFiltering
public void setTextureFiltering(TextureTargetType target, TextureMinFilter minFilter, TextureMagFilter magFilter, boolean genMipmaps) Sets the filtering for the current texture bound to the specified target.- Parameters:
target- the texture target.minFilter- the minification filter.magFilter- the magnification filter.genMipmaps- if this generates mipmaps automatically.
-
setTextureFiltering
public void setTextureFiltering(TextureTargetType target, TextureMinFilter minFilter, TextureMagFilter magFilter, float anisotropy, boolean genMipmaps) Sets the filtering for the current texture bound to the specified target.- Parameters:
target- the texture target.minFilter- the minification filter.magFilter- the magnification filter.anisotropy- the anisotropic filtering (2.0 or greater to enable, 1.0 or less is "off").genMipmaps- if this generates mipmaps automatically.
-