| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer | |
| private int | |
| private int | |
| private boolean | |
| private final ResourceFactory | |
| private final Map | |
| private int | |
| private final Map | |
| private ByteBuffer | |
| private Texture | |
| private static final int | |
| private int | |
| private Texture | |
| private ByteBuffer | |
| private int[] | |
| private Texture | |
| private final GeneralTransform3D | |
| private Texture | |
| private int | |
| private final Screen | |
| private final VertexBuffer | |
| private Texture |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| private void | |
| public void | |
| private void | |
| public void | |
| public void | |
| protected final void | |
| public void | |
| public Screen | |
| public GlyphCache | |
| private GlyphCache | |
| public Texture | getGradientTexture(Gradient grad, BaseTransform xform, int paintW, int paintH, MaskData maskData, float bx, float by, float bw, float bh)
|
| public abstract RTTexture | |
| public Texture | |
| protected GeneralTransform3D | |
| public Texture | |
| public int | |
| public ResourceFactory | |
| public VertexBuffer | |
| public Texture | |
| public final boolean | Returns: true if this context has been disposed.Returns a flag indicating whether this context has been disposed. |
| public boolean | |
| protected void | |
| protected abstract void | |
| protected void | |
| protected void | |
| protected void | |
| public void | setRenderTarget(BaseGraphics g)
This method will call releaseRenderTarget method to reset last renderTarget and textures if g is null |
| protected abstract void | |
| public void | |
| public abstract void | |
| public Texture | |
| public abstract void | validatePaintOp(BaseGraphics g, BaseTransform xform, Texture maskTex, float bx, float by, float bw, float bh)
|
| public abstract void |
| clearBuffer | back to summary |
|---|---|
| private ByteBuffer clearBuffer | |
| curMaskCol | back to summary |
|---|---|
| private int curMaskCol | |
| curMaskRow | back to summary |
|---|---|
| private int curMaskRow | |
| disposed | back to summary |
|---|---|
| private boolean disposed | |
| factory | back to summary |
|---|---|
| private final ResourceFactory factory | |
| greyGlyphCaches | back to summary |
|---|---|
| private final Map<FontStrike, GlyphCache> greyGlyphCaches | |
| highMaskCol | back to summary |
|---|---|
| private int highMaskCol | |
| lcdGlyphCaches | back to summary |
|---|---|
| private final Map<FontStrike, GlyphCache> lcdGlyphCaches | |
| maskBuffer | back to summary |
|---|---|
| private ByteBuffer maskBuffer | |
| maskTex | back to summary |
|---|---|
| private Texture maskTex | |
| MIN_MASK_DIM | back to summary |
|---|---|
| private static final int MIN_MASK_DIM | |
| nextMaskRow | back to summary |
|---|---|
| private int nextMaskRow | |
| ovalTex | back to summary |
|---|---|
| private Texture ovalTex | |
| paintBuffer | back to summary |
|---|---|
| private ByteBuffer paintBuffer | |
| paintPixels | back to summary |
|---|---|
| private int[] paintPixels | |
| paintTex | back to summary |
|---|---|
| private Texture paintTex | |
| perspectiveTransform | back to summary |
|---|---|
| private final GeneralTransform3D perspectiveTransform | |
| rectTex | back to summary |
|---|---|
| private Texture rectTex | |
| rectTexMax | back to summary |
|---|---|
| private int rectTexMax | |
| screen | back to summary |
|---|---|
| private final Screen screen | |
| vertexBuffer | back to summary |
|---|---|
| private final VertexBuffer vertexBuffer | |
| wrapRectTex | back to summary |
|---|---|
| private Texture wrapRectTex | |
| BaseContext | back to summary |
|---|---|
| protected BaseContext(Screen screen, ResourceFactory factory, int vbQuads) | |
| checkDisposed | back to summary |
|---|---|
| protected boolean checkDisposed() | |
| clearCaches | back to summary |
|---|---|
| private void clearCaches(Map<FontStrike, GlyphCache> glyphCaches) | |
| clearGlyphCaches | back to summary |
|---|---|
| public void clearGlyphCaches() | |
| createRectTexture | back to summary |
|---|---|
| private void createRectTexture() | |
| dispose | back to summary |
|---|---|
| public void dispose() Dispose of this context. Subclass implementations can override this if needed. They must call super.dispose(). | |
| drawQuads | back to summary |
|---|---|
| public void drawQuads(float[] coordArray, byte[] colorArray, int numVertices) | |
| flushMask | back to summary |
|---|---|
| protected final void flushMask() | |
| flushVertexBuffer | back to summary |
|---|---|
| public void flushVertexBuffer() | |
| getAssociatedScreen | back to summary |
|---|---|
| public Screen getAssociatedScreen() | |
| getGlyphCache | back to summary |
|---|---|
| public GlyphCache getGlyphCache(FontStrike strike) | |
| getGlyphCache | back to summary |
|---|---|
| private GlyphCache getGlyphCache(FontStrike strike, Map<FontStrike, GlyphCache> glyphCaches) | |
| getGradientTexture | back to summary |
|---|---|
| public Texture getGradientTexture(Gradient grad, BaseTransform xform, int paintW, int paintH, MaskData maskData, float bx, float by, float bw, float bh) | |
| getLCDBuffer | back to summary |
|---|---|
| public abstract RTTexture getLCDBuffer() | |
| getOvalTexture | back to summary |
|---|---|
| public Texture getOvalTexture() | |
| getPerspectiveTransformNoClone | back to summary |
|---|---|
| protected GeneralTransform3D getPerspectiveTransformNoClone() | |
| getRectTexture | back to summary |
|---|---|
| public Texture getRectTexture() | |
| getRectTextureMaxSize | back to summary |
|---|---|
| public int getRectTextureMaxSize() | |
| getResourceFactory | back to summary |
|---|---|
| public ResourceFactory getResourceFactory() | |
| getVertexBuffer | back to summary |
|---|---|
| public VertexBuffer getVertexBuffer() | |
| getWrapRectTexture | back to summary |
|---|---|
| public Texture getWrapRectTexture() | |
| isDisposed | back to summary |
|---|---|
| public final boolean isDisposed() Returns a flag indicating whether this context has been disposed. A graphics context is disposed by the associated ResourceFactory when it is disposed. If a context has been disposed, it must be recreated, by a new ResourceFactory. All draw calls will be ignored. An attempt to create a resource will be ignored and will return null.
| |
| isSuperShaderEnabled | back to summary |
|---|---|
| public boolean isSuperShaderEnabled() | |
| releaseRenderTarget | back to summary |
|---|---|
| protected void releaseRenderTarget() | |
| renderQuads | back to summary |
|---|---|
| protected abstract void renderQuads(float[] coordArray, byte[] colorArray, int numVertices) | |
| setDeviceParametersFor2D | back to summary |
|---|---|
| protected void setDeviceParametersFor2D() | |
| setDeviceParametersFor3D | back to summary |
|---|---|
| protected void setDeviceParametersFor3D() | |
| setPerspectiveTransform | back to summary |
|---|---|
| protected void setPerspectiveTransform(GeneralTransform3D transform) | |
| setRenderTarget | back to summary |
|---|---|
| public void setRenderTarget(BaseGraphics g) This method will call releaseRenderTarget method to reset last renderTarget and textures if g is null | |
| setRenderTarget | back to summary |
|---|---|
| protected abstract void setRenderTarget(RenderTarget target, NGCamera camera, boolean depthTest, boolean state3D) | |
| updateMaskTexture | back to summary |
|---|---|
| public void updateMaskTexture(MaskData maskData, RectBounds maskBounds, boolean canScale) | |
| validateClearOp | back to summary |
|---|---|
| public abstract void validateClearOp(BaseGraphics g) | |
| validateMaskTexture | back to summary |
|---|---|
| public Texture validateMaskTexture(MaskData maskData, boolean canScale) | |
| validatePaintOp | back to summary |
|---|---|
| public abstract void validatePaintOp(BaseGraphics g, BaseTransform xform, Texture maskTex, float bx, float by, float bw, float bh) | |
| validateTextureOp | back to summary |
|---|---|
| public abstract void validateTextureOp(BaseGraphics g, BaseTransform xform, Texture src, PixelFormat format) | |