Package icyllis.arc3d.sketch
Class NoPixelsDevice
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.sketch.Device
icyllis.arc3d.sketch.NoPixelsDevice
- All Implemented Interfaces:
RefCounted
The NoPixelsDevice draws nothing, but tracks device's clip.
Used for deferred rendering.
-
Constructor Summary
ConstructorsConstructorDescriptionNoPixelsDevice(int left, int top, int right, int bottom) NoPixelsDevice(@NonNull Rect2ic bounds) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddrawArc(float cx, float cy, float radius, float startAngle, float sweepAngle, int cap, float width, Paint paint) voidvoiddrawEllipse(float cx, float cy, float rx, float ry, Paint paint) voiddrawImageRect(@RawPtr Image image, Rect2fc src, Rect2fc dst, SamplingOptions sampling, Paint paint, int constraint) voidvoidvoidvoiddrawPoints(int mode, float[] pts, int offset, int count, Paint paint) voidvoidvoiddrawVertices(Vertices vertices, Blender blender, Paint paint) protected Rect2icvoidgetClipBounds(@NonNull Rect2i bounds) Returns the bounding box of the current clip, in this device's coordinate space.booleanisClipAA()booleanbooleanbooleanprotected voidonDrawGlyphRunList(Canvas canvas, GlyphRunList glyphRunList, Paint paint) voidvoidvoidreplaceClip(Rect2ic globalRect) final voidresetForNextPicture(int left, int top, int right, int bottom) Methods inherited from class icyllis.arc3d.sketch.Device
createDevice, deallocate, drawBlurredRRect, drawEdgeAAQuad, drawGlyphRunList, getBounds, getBounds, getCommandContext, getDeviceToGlobal, getGlobalBounds, getGlobalToDevice, getHeight, getImageInfo, getLocalToDevice, getLocalToDevice33, getRelativeTransform, getWidth, isPixelAlignedToGlobal, makeSurface, setDeviceCoordinateSystem, setGlobalCTM, setLocalToDevice
-
Constructor Details
-
NoPixelsDevice
-
NoPixelsDevice
public NoPixelsDevice(int left, int top, int right, int bottom)
-
-
Method Details
-
resetForNextPicture
public final void resetForNextPicture(int left, int top, int right, int bottom) -
pushClipStack
public void pushClipStack()- Specified by:
pushClipStackin classDevice
-
popClipStack
public void popClipStack()- Specified by:
popClipStackin classDevice
-
clipRect
-
replaceClip
-
isClipAA
public boolean isClipAA() -
isClipEmpty
public boolean isClipEmpty()- Specified by:
isClipEmptyin classDevice
-
isClipRect
public boolean isClipRect()- Specified by:
isClipRectin classDevice
-
isClipWideOpen
public boolean isClipWideOpen()- Specified by:
isClipWideOpenin classDevice
-
getClipBounds
Description copied from class:DeviceReturns the bounding box of the current clip, in this device's coordinate space. No pixels outside these bounds will be touched by draws unless the clip is further modified (at which point this will return the updated bounds).- Specified by:
getClipBoundsin classDevice
-
getClipBounds
- Specified by:
getClipBoundsin classDevice
-
drawPaint
-
drawPoints
- Specified by:
drawPointsin classDevice
-
drawLine
-
drawRect
-
drawRRect
-
drawEllipse
- Specified by:
drawEllipsein classDevice
-
drawArc
public void drawArc(float cx, float cy, float radius, float startAngle, float sweepAngle, int cap, float width, Paint paint) -
drawPie
public void drawPie(float cx, float cy, float radius, float startAngle, float sweepAngle, Paint paint) -
drawChord
public void drawChord(float cx, float cy, float radius, float startAngle, float sweepAngle, Paint paint) -
drawImageRect
public void drawImageRect(@RawPtr @RawPtr Image image, Rect2fc src, Rect2fc dst, SamplingOptions sampling, Paint paint, int constraint) - Specified by:
drawImageRectin classDevice
-
onDrawGlyphRunList
- Specified by:
onDrawGlyphRunListin classDevice
-
drawVertices
- Specified by:
drawVerticesin classDevice
-