Package icyllis.arc3d.core
Class NoPixelsDevice
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.core.Device
icyllis.arc3d.core.NoPixelsDevice
- All Implemented Interfaces:
RefCounted
The NoPixelsDevice draws nothing, but tracks device's clip.
Used for deferred rendering.
-
Constructor Summary
ConstructorDescriptionNoPixelsDevice
(int left, int top, int right, int bottom) NoPixelsDevice
(Rect2ic bounds) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
drawArc
(float cx, float cy, float radius, float startAngle, float sweepAngle, int cap, float width, Paint paint) void
void
drawCircle
(float cx, float cy, float radius, Paint paint) void
drawImageRect
(@RawPtr Image image, Rect2fc src, Rect2fc dst, SamplingOptions sampling, Paint paint, int constraint) void
void
void
void
drawPoints
(int mode, float[] pts, int offset, int count, Paint paint) void
void
drawRoundRect
(RoundRect rr, Paint paint) void
drawVertices
(Vertices vertices, @SharedPtr Blender blender, Paint paint) protected Rect2ic
void
getClipBounds
(Rect2i bounds) Returns the bounding box of the current clip, in this device's coordinate space.boolean
isClipAA()
boolean
boolean
boolean
protected void
onDrawGlyphRunList
(Canvas canvas, GlyphRunList glyphRunList, Paint paint) void
void
void
replaceClip
(Rect2ic globalRect) final void
resetForNextPicture
(int left, int top, int right, int bottom) Methods inherited from class icyllis.arc3d.core.Device
createDevice, deallocate, drawGlyphRunList, getBounds, getBounds, getDeviceToGlobal, getGlobalBounds, getGlobalToDevice, getHeight, getImageInfo, getLocalToDevice, getLocalToDevice33, getRecordingContext, 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:
pushClipStack
in classDevice
-
popClipStack
public void popClipStack()- Specified by:
popClipStack
in classDevice
-
clipRect
-
replaceClip
-
isClipAA
public boolean isClipAA() -
isClipEmpty
public boolean isClipEmpty()- Specified by:
isClipEmpty
in classDevice
-
isClipRect
public boolean isClipRect()- Specified by:
isClipRect
in classDevice
-
isClipWideOpen
public boolean isClipWideOpen()- Specified by:
isClipWideOpen
in classDevice
-
getClipBounds
Description copied from class:Device
Returns 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:
getClipBounds
in classDevice
-
getClipBounds
- Specified by:
getClipBounds
in classDevice
-
drawPaint
-
drawPoints
- Specified by:
drawPoints
in classDevice
-
drawLine
-
drawRect
-
drawRoundRect
- Specified by:
drawRoundRect
in classDevice
-
drawCircle
- Specified by:
drawCircle
in 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:
drawImageRect
in classDevice
-
onDrawGlyphRunList
- Specified by:
onDrawGlyphRunList
in classDevice
-
drawVertices
- Specified by:
drawVertices
in classDevice
-