public interface Graphics
Modifier and Type | Method and Description |
---|---|
void |
blit(RTTexture srcTex,
RTTexture dstTex,
int srcX0,
int srcY0,
int srcX1,
int srcY1,
int dstX0,
int dstY0,
int dstX1,
int dstY1) |
void |
clear()
Clears the current
RenderTarget with transparent pixels. |
void |
clear(Color color)
Clears the current
RenderTarget with the given Color . |
void |
clearQuad(float x1,
float y1,
float x2,
float y2)
Clears the region represented by the given quad with transparent pixels.
|
void |
draw(Shape shape) |
void |
drawEllipse(float x,
float y,
float width,
float height) |
void |
drawLine(float x1,
float y1,
float x2,
float y2) |
void |
drawMappedTextureRaw(Texture tex,
float dx1,
float dy1,
float dx2,
float dy2,
float tx11,
float ty11,
float tx21,
float ty21,
float tx12,
float ty12,
float tx22,
float ty22) |
void |
drawRect(float x,
float y,
float width,
float height) |
void |
drawRoundRect(float x,
float y,
float width,
float height,
float arcw,
float arch) |
void |
drawString(GlyphList gl,
FontStrike strike,
float x,
float y,
Color selectColor,
int selectStart,
int selectEnd) |
void |
drawTexture(Texture tex,
float x,
float y,
float w,
float h) |
void |
drawTexture(Texture tex,
float dx1,
float dy1,
float dx2,
float dy2,
float sx1,
float sy1,
float sx2,
float sy2) |
void |
drawTexture3SliceH(Texture tex,
float dx1,
float dy1,
float dx2,
float dy2,
float sx1,
float sy1,
float sx2,
float sy2,
float dh1,
float dh2,
float sh1,
float sh2) |
void |
drawTexture3SliceV(Texture tex,
float dx1,
float dy1,
float dx2,
float dy2,
float sx1,
float sy1,
float sx2,
float sy2,
float dv1,
float dv2,
float sv1,
float sv2) |
void |
drawTexture9Slice(Texture tex,
float dx1,
float dy1,
float dx2,
float dy2,
float sx1,
float sy1,
float sx2,
float sy2,
float dh1,
float dv1,
float dh2,
float dv2,
float sh1,
float sv1,
float sh2,
float sv2) |
void |
drawTextureRaw(Texture tex,
float dx1,
float dy1,
float dx2,
float dy2,
float tx1,
float ty1,
float tx2,
float ty2) |
void |
drawTextureVO(Texture tex,
float topopacity,
float botopacity,
float dx1,
float dy1,
float dx2,
float dy2,
float sx1,
float sy1,
float sx2,
float sy2) |
void |
fill(Shape shape) |
void |
fillEllipse(float x,
float y,
float width,
float height) |
void |
fillQuad(float x1,
float y1,
float x2,
float y2) |
void |
fillRect(float x,
float y,
float width,
float height) |
void |
fillRoundRect(float x,
float y,
float width,
float height,
float arcw,
float arch) |
Screen |
getAssociatedScreen() |
NGCamera |
getCameraNoClone() |
Rectangle |
getClipRect() |
int |
getClipRectIndex() |
Rectangle |
getClipRectNoClone() |
CompositeMode |
getCompositeMode() |
float |
getExtraAlpha() |
RectBounds |
getFinalClipNoClone() |
NGLightBase[] |
getLights() |
Paint |
getPaint() |
float |
getPixelScaleFactor() |
NodePath |
getRenderRoot() |
RenderTarget |
getRenderTarget() |
ResourceFactory |
getResourceFactory() |
BasicStroke |
getStroke() |
BaseTransform |
getTransformNoClone() |
boolean |
hasPreCullingBits() |
boolean |
isAlphaTestShader() |
boolean |
isAntialiasedShape() |
boolean |
isDepthBuffer() |
boolean |
isDepthTest() |
boolean |
isState3D() |
void |
scale(float sx,
float sy) |
void |
scale(float sx,
float sy,
float sz) |
void |
setAntialiasedShape(boolean aa) |
void |
setCamera(NGCamera camera) |
void |
setClipRect(Rectangle clipRect) |
void |
setClipRectIndex(int index) |
void |
setCompositeMode(CompositeMode mode) |
void |
setDepthBuffer(boolean depthBuffer) |
void |
setDepthTest(boolean depthTest) |
void |
setExtraAlpha(float extraAlpha) |
void |
setHasPreCullingBits(boolean hasBits) |
void |
setLights(NGLightBase[] lights) |
void |
setNodeBounds(RectBounds bounds)
Set the node bounds for any node that would like to render objects of a
different size to self.
|
void |
setPaint(Paint paint) |
void |
setPerspectiveTransform(GeneralTransform3D perspectiveTransform) |
void |
setPixelScaleFactor(float pixelScale) |
void |
setRenderRoot(NodePath root) |
void |
setState3D(boolean flag) |
void |
setStroke(BasicStroke stroke) |
void |
setTransform(BaseTransform xform) |
void |
setTransform(double m00,
double m10,
double m01,
double m11,
double m02,
double m12) |
void |
setTransform3D(double mxx,
double mxy,
double mxz,
double mxt,
double myx,
double myy,
double myz,
double myt,
double mzx,
double mzy,
double mzz,
double mzt) |
void |
setup3DRendering() |
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 xform) |
void |
translate(float tx,
float ty) |
void |
translate(float tx,
float ty,
float tz) |
BaseTransform getTransformNoClone()
void setTransform(BaseTransform xform)
void setTransform(double m00, double m10, double m01, double m11, double m02, double m12)
void setTransform3D(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)
void transform(BaseTransform xform)
void translate(float tx, float ty)
void translate(float tx, float ty, float tz)
void scale(float sx, float sy)
void scale(float sx, float sy, float sz)
void setPerspectiveTransform(GeneralTransform3D perspectiveTransform)
void setCamera(NGCamera camera)
NGCamera getCameraNoClone()
void setDepthTest(boolean depthTest)
boolean isDepthTest()
void setDepthBuffer(boolean depthBuffer)
boolean isDepthBuffer()
boolean isAlphaTestShader()
void setAntialiasedShape(boolean aa)
boolean isAntialiasedShape()
RectBounds getFinalClipNoClone()
Rectangle getClipRect()
Rectangle getClipRectNoClone()
void setHasPreCullingBits(boolean hasBits)
boolean hasPreCullingBits()
void setClipRect(Rectangle clipRect)
void setClipRectIndex(int index)
int getClipRectIndex()
float getExtraAlpha()
void setExtraAlpha(float extraAlpha)
void setLights(NGLightBase[] lights)
NGLightBase[] getLights()
Paint getPaint()
void setPaint(Paint paint)
BasicStroke getStroke()
void setStroke(BasicStroke stroke)
void setCompositeMode(CompositeMode mode)
CompositeMode getCompositeMode()
void clear()
RenderTarget
with transparent pixels.
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()
.
This is equivalent to calling:
clear(Color.TRANSPARENT);
void clear(Color color)
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()
.void clearQuad(float x1, float y1, float x2, float y2)
clear()
methods, this
method does not attempt to clear the depth buffer.void fill(Shape shape)
void fillQuad(float x1, float y1, float x2, float y2)
void fillRect(float x, float y, float width, float height)
void fillRoundRect(float x, float y, float width, float height, float arcw, float arch)
void fillEllipse(float x, float y, float width, float height)
void draw(Shape shape)
void drawLine(float x1, float y1, float x2, float y2)
void drawRect(float x, float y, float width, float height)
void drawRoundRect(float x, float y, float width, float height, float arcw, float arch)
void drawEllipse(float x, float y, float width, float height)
void setNodeBounds(RectBounds bounds)
bounds
- should not include node transformvoid drawString(GlyphList gl, FontStrike strike, float x, float y, Color selectColor, int selectStart, int selectEnd)
void blit(RTTexture srcTex, RTTexture dstTex, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1)
void drawTexture(Texture tex, float x, float y, float w, float h)
void drawTexture(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2)
void drawTexture3SliceH(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2, float dh1, float dh2, float sh1, float sh2)
void drawTexture3SliceV(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2, float dv1, float dv2, float sv1, float sv2)
void drawTexture9Slice(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2, float dh1, float dv1, float dh2, float dv2, float sh1, float sv1, float sh2, float sv2)
void drawTextureVO(Texture tex, float topopacity, float botopacity, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2)
void drawTextureRaw(Texture tex, float dx1, float dy1, float dx2, float dy2, float tx1, float ty1, float tx2, float ty2)
void drawMappedTextureRaw(Texture tex, float dx1, float dy1, float dx2, float dy2, float tx11, float ty11, float tx21, float ty21, float tx12, float ty12, float tx22, float ty22)
void sync()
Texture
disposal
or "return to texture cache pool" operation.Screen getAssociatedScreen()
ResourceFactory getResourceFactory()
RenderTarget getRenderTarget()
void setRenderRoot(NodePath root)
NodePath getRenderRoot()
void setState3D(boolean flag)
boolean isState3D()
void setup3DRendering()
void setPixelScaleFactor(float pixelScale)
float getPixelScaleFactor()
Copyright © 2020. All rights reserved.