public class GLState
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_UNPACK_ALIGNMENT_DEFAULT |
| Constructor and Description |
|---|
GLState() |
| Modifier and Type | Method and Description |
|---|---|
void |
activeTexture(int pGLActiveTexture) |
void |
bindArrayBuffer(int pHardwareBufferID) |
void |
bindFramebuffer(int pFramebufferID) |
void |
bindIndexBuffer(int pHardwareBufferID) |
void |
bindTexture(int pHardwareTextureID) |
void |
blendFunction(int pSourceBlendMode,
int pDestinationBlendMode) |
void |
checkError() |
void |
checkFramebufferStatus() |
void |
clearError() |
void |
deleteArrayBuffer(int pHardwareBufferID) |
void |
deleteFramebuffer(int pHardwareFramebufferID) |
void |
deleteIndexBuffer(int pHardwareBufferID) |
void |
deleteProgram(int pShaderProgramID) |
void |
deleteTexture(int pHardwareTextureID) |
boolean |
disableBlend() |
boolean |
disableCulling() |
boolean |
disableDepthTest() |
boolean |
disableDither() |
boolean |
disableScissorTest() |
boolean |
enableBlend() |
boolean |
enableCulling() |
boolean |
enableDepthTest() |
boolean |
enableDither() |
boolean |
enableScissorTest() |
void |
finish()
Tells the OpenGL driver to send all pending commands to the GPU immediately,
and then blocks until the effects of those commands have been completed on the GPU.
|
void |
flush()
Tells the OpenGL driver to send all pending commands to the GPU immediately.
|
int |
generateArrayBuffer(int pSize,
int pUsage) |
int |
generateBuffer() |
int |
generateFramebuffer() |
int |
generateIndexBuffer(int pSize,
int pUsage) |
int |
generateTexture() |
int |
getActiveFramebuffer() |
int |
getActiveTexture() |
int |
getError() |
java.lang.String |
getExtensions() |
int |
getFramebufferStatus() |
int |
getInteger(int pAttribute) |
int |
getMaximumFragmentShaderUniformVectorCount() |
int |
getMaximumTextureSize() |
int |
getMaximumTextureUnits() |
int |
getMaximumVertexAttributeCount() |
int |
getMaximumVertexShaderUniformVectorCount() |
float[] |
getModelViewGLMatrix() |
float[] |
getModelViewProjectionGLMatrix() |
float[] |
getProjectionGLMatrix() |
java.lang.String |
getRenderer() |
java.lang.String |
getVersion() |
void |
glTexImage2D(int pTarget,
int pLevel,
android.graphics.Bitmap pBitmap,
int pBorder,
PixelFormat pPixelFormat)
Note: does not pre-multiply the alpha channel!
|
void |
glTexSubImage2D(int pTarget,
int pLevel,
int pX,
int pY,
android.graphics.Bitmap pBitmap,
PixelFormat pPixelFormat)
Note: does not pre-multiply the alpha channel!
|
boolean |
isBlendEnabled() |
boolean |
isCullingEnabled() |
boolean |
isDepthTestEnabled() |
boolean |
isDitherEnabled() |
boolean |
isScissorTestEnabled() |
boolean |
isTexture(int pHardwareTextureID) |
void |
lineWidth(float pLineWidth) |
void |
loadModelViewGLMatrixIdentity() |
void |
loadProjectionGLMatrixIdentity() |
void |
orthoModelViewGLMatrixf(float pLeft,
float pRight,
float pBottom,
float pTop,
float pZNear,
float pZFar) |
void |
orthoProjectionGLMatrixf(float pLeft,
float pRight,
float pBottom,
float pTop,
float pZNear,
float pZFar) |
void |
popModelViewGLMatrix() |
void |
popProjectionGLMatrix() |
void |
pushModelViewGLMatrix() |
void |
pushProjectionGLMatrix() |
void |
reset(RenderOptions pRenderOptions,
ConfigChooser pConfigChooser,
javax.microedition.khronos.egl.EGLConfig pEGLConfig) |
void |
resetGLMatrixStacks() |
void |
resetModelViewGLMatrixStack() |
void |
resetProjectionGLMatrixStack() |
void |
rotateModelViewGLMatrixf(float pAngle,
float pX,
float pY,
float pZ) |
void |
rotateProjectionGLMatrixf(float pAngle,
float pX,
float pY,
float pZ) |
void |
scaleModelViewGLMatrixf(float pScaleX,
float pScaleY,
int pScaleZ) |
void |
scaleProjectionGLMatrixf(float pScaleX,
float pScaleY,
float pScaleZ) |
boolean |
setBlendEnabled(boolean pEnabled) |
boolean |
setCullingEnabled(boolean pEnabled) |
boolean |
setDepthTestEnabled(boolean pEnabled) |
boolean |
setDitherEnabled(boolean pEnabled) |
boolean |
setScissorTestEnabled(boolean pEnabled) |
void |
skewModelViewGLMatrixf(float pSkewX,
float pSkewY) |
void |
skewProjectionGLMatrixf(float pSkewX,
float pSkewY) |
void |
translateModelViewGLMatrixf(float pX,
float pY,
float pZ) |
void |
translateProjectionGLMatrixf(float pX,
float pY,
float pZ) |
void |
useProgram(int pShaderProgramID) |
public static final int GL_UNPACK_ALIGNMENT_DEFAULT
public java.lang.String getVersion()
public java.lang.String getRenderer()
public java.lang.String getExtensions()
public int getMaximumVertexAttributeCount()
public int getMaximumVertexShaderUniformVectorCount()
public int getMaximumFragmentShaderUniformVectorCount()
public int getMaximumTextureUnits()
public int getMaximumTextureSize()
public void reset(RenderOptions pRenderOptions, ConfigChooser pConfigChooser, javax.microedition.khronos.egl.EGLConfig pEGLConfig)
public boolean isScissorTestEnabled()
public boolean enableScissorTest()
public boolean disableScissorTest()
public boolean setScissorTestEnabled(boolean pEnabled)
public boolean isBlendEnabled()
public boolean enableBlend()
public boolean disableBlend()
public boolean setBlendEnabled(boolean pEnabled)
public boolean isCullingEnabled()
public boolean enableCulling()
public boolean disableCulling()
public boolean setCullingEnabled(boolean pEnabled)
public boolean isDitherEnabled()
public boolean enableDither()
public boolean disableDither()
public boolean setDitherEnabled(boolean pEnabled)
public boolean isDepthTestEnabled()
public boolean enableDepthTest()
public boolean disableDepthTest()
public boolean setDepthTestEnabled(boolean pEnabled)
public int generateBuffer()
public int generateArrayBuffer(int pSize,
int pUsage)
public void bindArrayBuffer(int pHardwareBufferID)
public void deleteArrayBuffer(int pHardwareBufferID)
public int generateIndexBuffer(int pSize,
int pUsage)
public void bindIndexBuffer(int pHardwareBufferID)
public void deleteIndexBuffer(int pHardwareBufferID)
public int generateFramebuffer()
public void bindFramebuffer(int pFramebufferID)
public int getFramebufferStatus()
public void checkFramebufferStatus()
throws GLFrameBufferException,
GLException
GLFrameBufferExceptionGLExceptionpublic int getActiveFramebuffer()
public void deleteFramebuffer(int pHardwareFramebufferID)
public void useProgram(int pShaderProgramID)
public void deleteProgram(int pShaderProgramID)
public int generateTexture()
public boolean isTexture(int pHardwareTextureID)
public int getActiveTexture()
GLES20.GL_TEXTURE0 to GLES20.GL_TEXTURE31public void activeTexture(int pGLActiveTexture)
pGLActiveTexture - from GLES20.GL_TEXTURE0 to GLES20.GL_TEXTURE31.public void bindTexture(int pHardwareTextureID)
GLES20 - pHardwareTextureID - GLState#forceBindTexture(GLES20, int)}public void deleteTexture(int pHardwareTextureID)
public void blendFunction(int pSourceBlendMode,
int pDestinationBlendMode)
public void lineWidth(float pLineWidth)
public void pushModelViewGLMatrix()
public void popModelViewGLMatrix()
public void loadModelViewGLMatrixIdentity()
public void translateModelViewGLMatrixf(float pX,
float pY,
float pZ)
public void rotateModelViewGLMatrixf(float pAngle,
float pX,
float pY,
float pZ)
public void scaleModelViewGLMatrixf(float pScaleX,
float pScaleY,
int pScaleZ)
public void skewModelViewGLMatrixf(float pSkewX,
float pSkewY)
public void orthoModelViewGLMatrixf(float pLeft,
float pRight,
float pBottom,
float pTop,
float pZNear,
float pZFar)
public void pushProjectionGLMatrix()
public void popProjectionGLMatrix()
public void loadProjectionGLMatrixIdentity()
public void translateProjectionGLMatrixf(float pX,
float pY,
float pZ)
public void rotateProjectionGLMatrixf(float pAngle,
float pX,
float pY,
float pZ)
public void scaleProjectionGLMatrixf(float pScaleX,
float pScaleY,
float pScaleZ)
public void skewProjectionGLMatrixf(float pSkewX,
float pSkewY)
public void orthoProjectionGLMatrixf(float pLeft,
float pRight,
float pBottom,
float pTop,
float pZNear,
float pZFar)
public float[] getModelViewGLMatrix()
public float[] getProjectionGLMatrix()
public float[] getModelViewProjectionGLMatrix()
public void resetModelViewGLMatrixStack()
public void resetProjectionGLMatrixStack()
public void resetGLMatrixStacks()
public void glTexImage2D(int pTarget,
int pLevel,
android.graphics.Bitmap pBitmap,
int pBorder,
PixelFormat pPixelFormat)
GLUtils.texSubImage2D(int, int, int, int, Bitmap, int, int)
See topic: 'PNG loading that doesn't premultiply alpha?'pBorder - public void glTexSubImage2D(int pTarget,
int pLevel,
int pX,
int pY,
android.graphics.Bitmap pBitmap,
PixelFormat pPixelFormat)
GLUtils.texSubImage2D(int, int, int, int, Bitmap, int, int)
See topic: 'PNG loading that doesn't premultiply alpha?'public void flush()
GLState#finish()},
{@link RenderTexture#end(GLState, boolean, boolean)}.public void finish()
GLState#flush()},
{@link RenderTexture#end(GLState, boolean, boolean)}.public int getInteger(int pAttribute)
public int getError()
public void checkError()
throws GLException
GLExceptionpublic void clearError()