public class ES2Graphics extends BaseShaderGraphics
Modifier and Type | Field and Description |
---|---|
private ES2Context |
context |
IDENT, isSimpleTranslate, nodeBounds, paint, scratchEllipse, scratchLine, scratchRRect, stroke, transX, transY
Modifier | Constructor and Description |
---|---|
private |
ES2Graphics(ES2Context context,
RenderTarget target) |
Modifier and Type | Method and Description |
---|---|
void |
clear(Color color)
Clears the current
RenderTarget with the given Color . |
(package private) static void |
clearBuffers(ES2Context context,
Color color,
boolean clearColor,
boolean clearDepth,
boolean ignoreScissor) |
void |
clearQuad(float x1,
float y1,
float x2,
float y2)
Clears the region represented by the given quad with transparent pixels.
|
(package private) static ES2Graphics |
create(ES2Context context,
RenderTarget target) |
(package private) void |
forceRenderTarget()
Called from ES2SwapChain to force the render target to be revalidated
(context made current, viewport and projection matrix updated, etc)
in response to a window resize event.
|
void |
scale(float sx,
float sy,
float sz) |
void |
setCamera(NGCamera camera) |
void |
sync()
Synchronize, or flush, any outstanding rendering operations to the
destination in preparation for some caller potentially reusing or
disposing a resource that has been used as the source of a recently
invoked rendering operation.
|
void |
transform(BaseTransform transform) |
void |
translate(float tx,
float ty,
float tz) |
blit, canReadBack, drawEllipse, drawLine, drawMappedTextureRaw2, drawMultiTexture, drawPixelsMasked, drawRect, drawRoundRect, drawString, drawTexture, drawTexture3SliceH, drawTexture3SliceV, drawTexture9Slice, drawTextureRaw2, fillEllipse, fillQuad, fillRect, fillRoundRect, getExternalShader, getLights, getPaintShaderTransform, maskInterpolatePixels, readBack, releaseReadBackBuffer, renderShape, setExternalShader, setLights, setNodeBounds, setPaint, setup3DRendering
clear, draw, drawMappedTextureRaw, drawTexture, drawTextureRaw, drawTextureVO, fill, getAssociatedScreen, getCamera, getCameraNoClone, getClipRect, getClipRectIndex, getClipRectNoClone, getCompositeMode, getExtraAlpha, getFinalClipNoClone, getPaint, getPixelScaleFactor, getRenderRoot, getRenderTarget, getResourceFactory, getStroke, getTransformNoClone, hasPreCullingBits, isAlphaTestShader, isAntialiasedShape, isDepthBuffer, isDepthTest, isState3D, scale, setAntialiasedShape, setClipRect, setClipRectIndex, setCompositeMode, setDepthBuffer, setDepthTest, setExtraAlpha, setHasPreCullingBits, setPerspectiveTransform, setPixelScaleFactor, setRenderRoot, setState3D, setStroke, setTransform, setTransform, setTransform3D, translate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, draw, drawMappedTextureRaw, drawTexture, drawTextureRaw, drawTextureVO, fill, getAssociatedScreen, getCameraNoClone, getClipRect, getClipRectIndex, getClipRectNoClone, getCompositeMode, getExtraAlpha, getFinalClipNoClone, getPaint, getPixelScaleFactor, getRenderRoot, getRenderTarget, getResourceFactory, getStroke, getTransformNoClone, hasPreCullingBits, isAlphaTestShader, isAntialiasedShape, isDepthBuffer, isDepthTest, isState3D, scale, setAntialiasedShape, setClipRect, setClipRectIndex, setCompositeMode, setDepthBuffer, setDepthTest, setExtraAlpha, setHasPreCullingBits, setPerspectiveTransform, setPixelScaleFactor, setRenderRoot, setState3D, setStroke, setTransform, setTransform, setTransform3D, translate
private final ES2Context context
private ES2Graphics(ES2Context context, RenderTarget target)
static ES2Graphics create(ES2Context context, RenderTarget target)
static void clearBuffers(ES2Context context, Color color, boolean clearColor, boolean clearDepth, boolean ignoreScissor)
public void clearQuad(float x1, float y1, float x2, float y2)
Graphics
clear()
methods, this
method does not attempt to clear the depth buffer.public void clear(Color color)
Graphics
RenderTarget
with the given Color
.
Note that this operation is affected by the current clip rectangle,
if set. To clear the entire surface, call setClipRect(null)
prior to calling clear()
.public void sync()
Graphics
Texture
disposal
or "return to texture cache pool" operation.void forceRenderTarget()
public void transform(BaseTransform transform)
transform
in interface Graphics
transform
in class BaseGraphics
public void translate(float tx, float ty, float tz)
translate
in interface Graphics
translate
in class BaseGraphics
public void scale(float sx, float sy, float sz)
scale
in interface Graphics
scale
in class BaseGraphics
public void setCamera(NGCamera camera)
setCamera
in interface Graphics
setCamera
in class BaseGraphics