| Modifier and Type | Field and Description |
|---|---|
| private final BaseShaderContext | |
| private Shader | |
| private static final float | |
| private boolean | |
| private boolean | |
| private NGLightBase[] | |
| private static final double | |
| private static Affine2D | |
| private static Affine3D | |
| private static RectBounds |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | blit(RTTexture srcTex, RTTexture dstTex, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1)
Implements com.
|
| private static float | |
| public boolean | |
| private static boolean | |
| private boolean | |
| public void | clearQuad(float x1, float y1, float x2, float y2)
Implements com. Clears the region represented by the given quad with transparent pixels. |
| public void | |
| private void | |
| public void | |
| public void | drawMappedTextureRaw2(Texture src1, Texture src2, float dx1, float dy1, float dx2, float dy2, float t1x11, float t1y11, float t1x21, float t1y21, float t1x12, float t1y12, float t1x22, float t1y22, float t2x11, float t2y11, float t2x21, float t2y21, float t2x12, float t2y12, float t2x22, float t2y22)
Implements com.
|
| protected void | drawMultiTexture(MultiTexture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2)
|
| public void | drawPixelsMasked(RTTexture
the texture containing the source image pixels imgtex, RTTexture the texture containing the mask pixels, only the
alpha channel is used from this texture masktex, int the X coordinate of the UL destination pixel dx, int the Y coordinate of the UL destination pixel dy, int the width of the pixel regions to be combined dw, int the height of the pixel regions to be combined dh, int the X coordinate of the UL pixel in the image texture ix, int the Y coordinate of the UL pixel in the image texture iy, int the X coordinate of the UL pixel in the mask texture mx, int the Y coordinate of the UL pixel in the mask texture my)Implements com. Apply a mask to the pixels of an image and render the results onto the destination in device space. |
| pack-priv boolean | drawPrimDiagonal(float x1, float y1, float x2, float y2, float lw, int cap, float bx, float by, float bw, float bh)
|
| pack-priv boolean | |
| public void | |
| public void | drawRoundRect(float x, float y, float w, float h, float arcw, float arch)
Implements com.
|
| public void | drawString(GlyphList gl, FontStrike strike, float x, float y, Color selectColor, int selectStart, int selectEnd)
Implements com.
|
| public void | drawTexture(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2)
Overrides com. Implements com.
|
| public 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)
Overrides com. Implements com.
|
| public 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)
Overrides com. Implements com.
|
| public 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)
Overrides com. Implements com.
|
| public void | drawTextureRaw2(Texture src1, Texture src2, float dx1, float dy1, float dx2, float dy2, float t1x1, float t1y1, float t1x2, float t1y2, float t2x1, float t2y1, float t2x2, float t2y2)
Implements com.
|
| private BaseTransform | |
| public void | |
| pack-priv boolean | fillPrimRect(float x, float y, float w, float h, Texture rectTex, Texture wrapTex, float bx, float by, float bw, float bh)
|
| public void | |
| public void | |
| public void | fillRoundRect(float x, float y, float w, float h, float arcw, float arch)
Implements com.
|
| pack-priv BaseShaderContext | |
| public Shader | |
| public final NGLightBase[] | |
| public void | |
| pack-priv AffineBase | |
| private static float | |
| private void | |
| pack-priv boolean | |
| private static float | |
| public void | maskInterpolatePixels(RTTexture
the texture containing the source image pixels imgtex, RTTexture the texture containing the mask pixels, only the
alpha channel is used from this texture masktex, int the X coordinate of the UL destination pixel dx, int the Y coordinate of the UL destination pixel dy, int the width of the pixel regions to be combined dw, int the height of the pixel regions to be combined dh, int the X coordinate of the UL pixel in the image texture ix, int the Y coordinate of the UL pixel in the image texture iy, int the X coordinate of the UL pixel in the mask texture mx, int the Y coordinate of the UL pixel in the mask texture my)Implements com. Use a mask to determine which pixels of an image are to be rendered onto the destination in device space. |
| public RTTexture | |
| public void | |
| private void | renderGeneralRoundedPgram(float ox, float oy, float wvecx, float wvecy, float hvecx, float hvecy, float arcfractw, float arcfracth, float ifractw, float ifracth, BaseTransform rendertx, BaseShaderContext.
|
| private void | renderGeneralRoundedRect(float rx, float ry, float rw, float rh, float arcw, float arch, BaseShaderContext.
|
| protected void | renderShape(Shape shape, BasicStroke stroke, float bx, float by, float bw, float bh)
Implements abstract com.
|
| private void | |
| public void | |
| public void | |
| public void | setNodeBounds(RectBounds
should not include node transform bounds)Implements com. Set the node bounds for any node that would like to render objects of a different size to self. |
| public void | setPaint(Paint paint)
Overrides com. Implements com.
|
| public void |
| context | back to summary |
|---|---|
| private final BaseShaderContext context | |
| externalShader | back to summary |
|---|---|
| private Shader externalShader | |
| FRINGE_FACTOR | back to summary |
|---|---|
| private static final float FRINGE_FACTOR | |
| isComplexPaint | back to summary |
|---|---|
| private boolean isComplexPaint | |
| lcdSampleInvalid | back to summary |
|---|---|
| private boolean lcdSampleInvalid | |
| lights | back to summary |
|---|---|
| private NGLightBase[] lights | |
| SQRT_2 | back to summary |
|---|---|
| private static final double SQRT_2 | |
| TEMP_TX2D | back to summary |
|---|---|
| private static Affine2D TEMP_TX2D | |
| TEMP_TX3D | back to summary |
|---|---|
| private static Affine3D TEMP_TX3D | |
| TMP_BOUNDS | back to summary |
|---|---|
| private static RectBounds TMP_BOUNDS | |
| BaseShaderGraphics | back to summary |
|---|---|
| protected BaseShaderGraphics(BaseShaderContext context, RenderTarget renderTarget) | |
| blit | back to summary |
|---|---|
| public void blit(RTTexture srcTex, RTTexture dstTex, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1) Implements com.
| |
| calculateScaleFactor | back to summary |
|---|---|
| private static float calculateScaleFactor(float contentDim, float physicalDim) | |
| canReadBack | back to summary |
|---|---|
| public boolean canReadBack() Implements com.
| |
| canUseStrokeShader | back to summary |
|---|---|
| private static boolean canUseStrokeShader(BasicStroke bs) | |
| checkInnerCurvature | back to summary |
|---|---|
| private boolean checkInnerCurvature(float arcw, float arch) | |
| clearQuad | back to summary |
|---|---|
| public void clearQuad(float x1, float y1, float x2, float y2) Implements com. Doc from com. Clears the region represented by the given quad with transparent pixels.
Note that this operation is affected by the current clip rectangle,
if set, as well as the current transform (the quad is specified in
user space). Also note that unlike the
| |
| drawEllipse | back to summary |
|---|---|
| public void drawEllipse(float x, float y, float w, float h) Implements com.
| |
| drawLCDBuffer | back to summary |
|---|---|
| private void drawLCDBuffer(float bx, float by, float bw, float bh, float tx1, float ty1, float tx2, float ty2) | |
| drawLine | back to summary |
|---|---|
| public void drawLine(float x1, float y1, float x2, float y2) Implements com.
| |
| drawMappedTextureRaw2 | back to summary |
|---|---|
| public void drawMappedTextureRaw2(Texture src1, Texture src2, float dx1, float dy1, float dx2, float dy2, float t1x11, float t1y11, float t1x21, float t1y21, float t1x12, float t1y12, float t1x22, float t1y22, float t2x11, float t2y11, float t2x21, float t2y21, float t2x12, float t2y12, float t2x22, float t2y22) Implements com.
| |
| drawMultiTexture | back to summary |
|---|---|
| protected void drawMultiTexture(MultiTexture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2) | |
| drawPixelsMasked | back to summary |
|---|---|
| public void drawPixelsMasked(RTTexture imgtex, RTTexture masktex, int dx, int dy, int dw, int dh, int ix, int iy, int mx, int my) Implements com. Doc from com. Apply a mask to the pixels of an image and render the results onto the destination in device space. All coordinates specify pixel coordinates and are integers to reinforce the fact that these are pixel operations, not coordinate rendering operations. The image texture is combined with the mask texture by multiplying the pixels in the image texture by the alpha in the mask texture and then the result is applied to the destination using the current compositing rule (which should likely be SrcOver in most cases).
dst.argb = (img.argb * mask.a) Composite dst.argb
| |
| drawPrimDiagonal | back to summary |
|---|---|
| pack-priv boolean drawPrimDiagonal(float x1, float y1, float x2, float y2, float lw, int cap, float bx, float by, float bw, float bh) | |
| drawPrimRect | back to summary |
|---|---|
| pack-priv boolean drawPrimRect(float x, float y, float w, float h) | |
| drawRect | back to summary |
|---|---|
| public void drawRect(float x, float y, float w, float h) Implements com.
| |
| drawRoundRect | back to summary |
|---|---|
| public void drawRoundRect(float x, float y, float w, float h, float arcw, float arch) Implements com.
| |
| drawString | back to summary |
|---|---|
| public void drawString(GlyphList gl, FontStrike strike, float x, float y, Color selectColor, int selectStart, int selectEnd) Implements com.
| |
| drawTexture | back to summary |
|---|---|
| public void drawTexture(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2) Overrides com. Implements com.
| |
| drawTexture3SliceH | back to summary |
|---|---|
| public 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) Overrides com. Implements com.
| |
| drawTexture3SliceV | back to summary |
|---|---|
| public 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) Overrides com. Implements com.
| |
| drawTexture9Slice | back to summary |
|---|---|
| public 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) Overrides com. Implements com.
| |
| drawTextureRaw2 | back to summary |
|---|---|
| public void drawTextureRaw2(Texture src1, Texture src2, float dx1, float dy1, float dx2, float dy2, float t1x1, float t1y1, float t1x2, float t1y2, float t2x1, float t2y1, float t2x2, float t2y2) Implements com.
| |
| extract3Dremainder | back to summary |
|---|---|
| private BaseTransform extract3Dremainder(BaseTransform xform) | |
| fillEllipse | back to summary |
|---|---|
| public void fillEllipse(float x, float y, float w, float h) Implements com.
| |
| fillPrimRect | back to summary |
|---|---|
| pack-priv boolean fillPrimRect(float x, float y, float w, float h, Texture rectTex, Texture wrapTex, float bx, float by, float bw, float bh) | |
| fillQuad | back to summary |
|---|---|
| public void fillQuad(float x1, float y1, float x2, float y2) Implements com.
| |
| fillRect | back to summary |
|---|---|
| public void fillRect(float x, float y, float w, float h) Implements com.
| |
| fillRoundRect | back to summary |
|---|---|
| public void fillRoundRect(float x, float y, float w, float h, float arcw, float arch) Implements com.
| |
| getContext | back to summary |
|---|---|
| pack-priv BaseShaderContext getContext() | |
| getExternalShader | back to summary |
|---|---|
| public Shader getExternalShader() | |
| getLights | back to summary |
|---|---|
| public final NGLightBase[] getLights() Implements com.
| |
| getPaintShaderTransform | back to summary |
|---|---|
| public void getPaintShaderTransform(Affine3D ret) Implements com.
| |
| getPaintTextureTx | back to summary |
|---|---|
| pack-priv AffineBase getPaintTextureTx(BaseTransform renderTx, Shader shader, float rx, float ry, float rw, float rh) | |
| getStrokeExpansionFactor | back to summary |
|---|---|
| private static float getStrokeExpansionFactor(BasicStroke stroke) | |
| initLCDSampleRT | back to summary |
|---|---|
| private void initLCDSampleRT() | |
| isComplexPaint | back to summary |
|---|---|
| pack-priv boolean isComplexPaint() | |
| len | back to summary |
|---|---|
| private static float len(float x, float y) | |
| maskInterpolatePixels | back to summary |
|---|---|
| public void maskInterpolatePixels(RTTexture imgtex, RTTexture masktex, int dx, int dy, int dw, int dh, int ix, int iy, int mx, int my) Implements com. Doc from com. Use a mask to determine which pixels of an image are to be rendered onto the destination in device space. All coordinates specify pixel coordinates and are integers to reinforce the fact that these are pixel operations, not coordinate rendering operations. The mask texture controls the contribution of source and destination pixels in the resulting output. Note that a simple multiply of the source texture by the mask texture may not produce the correct masking operation for the case where a non-SrcOver blending mode is in use. In those conditions, it is more accurate to first compute the result of blending the source into the destination and to then use this method to choose how much of the result should be taken from the results of the blending and how much should remain the original destination pixel value. Mathematically, the mask alpha controls a linear interpolation between the image and destination pixels.
dst.argb = (mask.a * img.argb) + ((1 - mask.a) * dst.argb)
Note that the current composite mode is ignored during this operation.
| |
| readBack | back to summary |
|---|---|
| public RTTexture readBack(Rectangle view) Implements com.
| |
| releaseReadBackBuffer | back to summary |
|---|---|
| public void releaseReadBackBuffer(RTTexture rtt) Implements com.
| |
| renderGeneralRoundedPgram | back to summary |
|---|---|
| private void renderGeneralRoundedPgram(float ox, float oy, float wvecx, float wvecy, float hvecx, float hvecy, float arcfractw, float arcfracth, float ifractw, float ifracth, BaseTransform rendertx, BaseShaderContext. | |
| renderGeneralRoundedRect | back to summary |
|---|---|
| private void renderGeneralRoundedRect(float rx, float ry, float rw, float rh, float arcw, float arch, BaseShaderContext. | |
| renderShape | back to summary |
|---|---|
| protected void renderShape(Shape shape, BasicStroke stroke, float bx, float by, float bw, float bh) Implements abstract com.
| |
| renderWithComplexPaint | back to summary |
|---|---|
| private void renderWithComplexPaint(Shape shape, BasicStroke stroke, float bx, float by, float bw, float bh) | |
| setExternalShader | back to summary |
|---|---|
| public void setExternalShader(Shader shader) Implements com.
| |
| setLights | back to summary |
|---|---|
| public void setLights(NGLightBase[] lights) Implements com.
| |
| setNodeBounds | back to summary |
|---|---|
| public void setNodeBounds(RectBounds bounds) Implements com. Doc from com. Set the node bounds for any node that would like to render objects of a different size to self. This is useful for proportional paints, where by definition proportional paint should be stretched across node bounds to which it has been applied. In most cases nodes/shapes are rendered in a single draw call, and if needed bounds can be determined by inspecting object to be drawn. However not all nodes are so simple, NGText for example can have hundreds of Graphics.drawString(...), draw(...), and fill(...) calls per a single NGText.renderContent(). Use: Before making several draw calls from a single node, setNodeBounds(bounds), when complete invalidate nodeBounds by setNodeBounds(null).
| |
| setPaint | back to summary |
|---|---|
| public void setPaint(Paint paint) Overrides com. Implements com.
| |
| setup3DRendering | back to summary |
|---|---|
| public void setup3DRendering() Implements com.
| |