public class GLState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
GL10 |
mGL |
Constructor and Description |
---|
GLState(GL10 gl) |
GLState(GL10 gl,
Stage stage) |
Modifier and Type | Method and Description |
---|---|
boolean |
bindFrameBuffer(int frameBuffer) |
boolean |
bindTexture(Texture texture) |
void |
clearErrors() |
int |
getAxisSystem() |
BlendFunc |
getBlendFunc() |
GLColor |
getColor() |
BlendFunc |
getDefaultBlendFunc() |
int |
getError() |
int |
getFrameBuffer() |
float |
getLineWidth() |
Maskable |
getMask()
For internal use only
|
void |
getProjection(float[] projection) |
void |
getScissor(int[] scissor) |
Stage |
getStage() |
TextureCoordBuffer |
getTextureCoordBuffer() |
TextureManager |
getTextureManager() |
void |
getViewport(int[] viewport) |
boolean |
isAlphaTestEnabled() |
boolean |
isColorArrayEnabled() |
boolean |
isDepthTestEnabled() |
boolean |
isScissorTestEnabled() |
boolean |
isTextureCoordArrayEnabled() |
boolean |
isTextureEnabled() |
boolean |
isVertexArrayEnabled() |
void |
queueEvent(java.lang.Runnable r) |
void |
reset(GL10 gl) |
void |
setAlphaTestEnabled(boolean alphaTestEnabled) |
void |
setAxisSystem(int axisSystem) |
boolean |
setBlendFunc(BlendFunc blendFunc) |
boolean |
setColor(float r,
float g,
float b,
float a) |
boolean |
setColor(GLColor color) |
boolean |
setColorArrayEnabled(boolean colorArrayEnabled) |
void |
setDefaultBlendFunc(BlendFunc defaultBlendFunc) |
void |
setDepthTestEnabled(boolean depthTestEnabled) |
void |
setLineWidth(float width) |
void |
setMask(Maskable mask)
Deprecated.
|
void |
setProjection(float[] projection) |
void |
setProjection(float projection,
float left,
float right,
float bottom,
float top)
Set Projection mode
|
void |
setScissor(int[] scissor) |
void |
setScissor(int x,
int y,
int width,
int height) |
void |
setScissorTestEnabled(boolean scissorEnabled) |
boolean |
setTextureCoordArrayEnabled(boolean textureCoordArrayEnabled) |
boolean |
setTextureCoordBuffer(TextureCoordBuffer buffer) |
boolean |
setTextureEnabled(boolean textureEnabled) |
void |
setTextureManager(TextureManager textureManager)
For internal use only
|
boolean |
setVertexArrayEnabled(boolean vertexArrayEnabled) |
boolean |
setVertexBuffer(VertexBuffer buffer) |
void |
setViewport(int[] viewport) |
void |
setViewport(int x,
int y,
int width,
int height) |
boolean |
unbindTexture() |
public GLState(GL10 gl)
public GLState(GL10 gl, Stage stage)
public void reset(GL10 gl)
public void queueEvent(java.lang.Runnable r)
public int getAxisSystem()
public void setAxisSystem(int axisSystem)
public void setProjection(float projection, float left, float right, float bottom, float top)
projection
- right
- top
- , Scene.AXIS_BOTTOM_LEFT, Scene.AXIS_TOP_LEFT
public void setProjection(float[] projection)
public void getProjection(float[] projection)
public void setViewport(int x, int y, int width, int height)
public void setViewport(int[] viewport)
public void getViewport(int[] viewport)
public void setLineWidth(float width)
public float getLineWidth()
public boolean bindFrameBuffer(int frameBuffer)
public int getFrameBuffer()
public boolean bindTexture(Texture texture)
public boolean unbindTexture()
public boolean isVertexArrayEnabled()
public boolean setVertexArrayEnabled(boolean vertexArrayEnabled)
vertexArrayEnabled
- the vertexArrayEnabled to setpublic boolean setVertexBuffer(VertexBuffer buffer)
public boolean isTextureEnabled()
public boolean setTextureEnabled(boolean textureEnabled)
textureEnabled
- the textureEnabled to setpublic boolean setTextureCoordBuffer(TextureCoordBuffer buffer)
public TextureCoordBuffer getTextureCoordBuffer()
public boolean isTextureCoordArrayEnabled()
public boolean setTextureCoordArrayEnabled(boolean textureCoordArrayEnabled)
textureCoordArrayEnabled
- the textureCoordArrayEnabled to setpublic boolean isColorArrayEnabled()
public boolean setColorArrayEnabled(boolean colorArrayEnabled)
colorArrayEnabled
- the colorArrayEnabled to setpublic boolean isAlphaTestEnabled()
public void setAlphaTestEnabled(boolean alphaTestEnabled)
public GLColor getColor()
public boolean setColor(GLColor color)
color
- the color to setpublic boolean setColor(float r, float g, float b, float a)
color
- the color to setpublic BlendFunc getDefaultBlendFunc()
public void setDefaultBlendFunc(BlendFunc defaultBlendFunc)
public BlendFunc getBlendFunc()
public boolean setBlendFunc(BlendFunc blendFunc)
blendFunc
- the blendFunc to setpublic int getError()
public void clearErrors()
public Maskable getMask()
camera
- the camera to set@Deprecated public void setMask(Maskable mask)
mask
- public boolean isDepthTestEnabled()
public void setDepthTestEnabled(boolean depthTestEnabled)
public boolean isScissorTestEnabled()
public void setScissorTestEnabled(boolean scissorEnabled)
public void setScissor(int x, int y, int width, int height)
public void setScissor(int[] scissor)
public void getScissor(int[] scissor)
public TextureManager getTextureManager()
public void setTextureManager(TextureManager textureManager)
textureManager
- public Stage getStage()