TextureBinder to reduce texture binds as well. Call
begin() to setup the context, call end() to undo all state changes. Use the setters to change state, use
textureBinder to bind textures.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private int | |
| private boolean | |
| private float | |
| private float | |
| public final TextureBinder | textureBinder
used to bind textures |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | setBlending(final boolean enabled, final int sRgbFactor, final int dRgbFactor, final int sAlphaFactor, final int dAlphaFactor)
|
| public void | |
| public void | |
| public void | |
| public void |
| blendDestAlphaFactor | back to summary |
|---|---|
| private int blendDestAlphaFactor | |
| blendDestRgbFactor | back to summary |
|---|---|
| private int blendDestRgbFactor | |
| blending | back to summary |
|---|---|
| private boolean blending | |
| blendSourceAlphaFactor | back to summary |
|---|---|
| private int blendSourceAlphaFactor | |
| blendSourceRgbFactor | back to summary |
|---|---|
| private int blendSourceRgbFactor | |
| cullFace | back to summary |
|---|---|
| private int cullFace | |
| depthFunc | back to summary |
|---|---|
| private int depthFunc | |
| depthMask | back to summary |
|---|---|
| private boolean depthMask | |
| depthRangeFar | back to summary |
|---|---|
| private float depthRangeFar | |
| depthRangeNear | back to summary |
|---|---|
| private float depthRangeNear | |
| textureBinder | back to summary |
|---|---|
| public final TextureBinder textureBinder used to bind textures | |
| RenderContext | back to summary |
|---|---|
| public RenderContext(TextureBinder textures) | |
| begin | back to summary |
|---|---|
| public void begin() Sets up the render context, must be matched with a call to | |
| end | back to summary |
|---|---|
| public void end() Resets all changed OpenGL states to their defaults. | |
| setBlending | back to summary |
|---|---|
| public void setBlending(final boolean enabled, final int sFactor, final int dFactor) | |
| setBlending | back to summary |
|---|---|
| public void setBlending(final boolean enabled, final int sRgbFactor, final int dRgbFactor, final int sAlphaFactor, final int dAlphaFactor) | |
| setCullFace | back to summary |
|---|---|
| public void setCullFace(final int face) | |
| setDepthMask | back to summary |
|---|---|
| public void setDepthMask(final boolean depthMask) | |
| setDepthTest | back to summary |
|---|---|
| public void setDepthTest(final int depthFunction) | |
| setDepthTest | back to summary |
|---|---|
| public void setDepthTest(final int depthFunction, final float depthRangeNear, final float depthRangeFar) | |