Package icyllis.arc3d.granite
Class ClipResult_old
java.lang.Object
icyllis.arc3d.granite.ClipResult_old
- All Implemented Interfaces:
Cloneable
Produced by
Clip_old
. It provides a set of modifications to the drawing state that
implements the clip.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addScissor
(Rect2ic rect, Rect2f clippedBounds) Intersects the clip state with the provided rect.clone()
boolean
int
int
int
int
int
boolean
hasClip()
int
hashCode()
boolean
Should scissor clip be applied?boolean
Should stencil clip be applied?init
(int logicalWidth, int logicalHeight, int physicalWidth, int physicalHeight) Call this method before use.void
setScissor
(int l, int t, int r, int b) void
setStencil
(int seq) Sets the sequence number of the stencil mask.
-
Constructor Details
-
ClipResult_old
public ClipResult_old()
-
-
Method Details
-
init
public ClipResult_old init(int logicalWidth, int logicalHeight, int physicalWidth, int physicalHeight) Call this method before use.There are two kinds of sizes. Sometimes we create a larger texture but only use a subset of the area, thus it must be scissored.
-
addScissor
Intersects the clip state with the provided rect. Returns false if the draw became empty. 'clippedBounds' will be intersected with 'rect'. This returns false if the clip becomes empty or the draw no longer intersects the clip. In either case the draw can be skipped. -
setScissor
public void setScissor(int l, int t, int r, int b) -
hasScissorClip
public boolean hasScissorClip()Should scissor clip be applied? -
getScissorX0
public int getScissorX0() -
getScissorY0
public int getScissorY0() -
getScissorX1
public int getScissorX1() -
getScissorY1
public int getScissorY1() -
setStencil
public void setStencil(int seq) Sets the sequence number of the stencil mask. -
hasStencilClip
public boolean hasStencilClip()Should stencil clip be applied? -
getStencilSeq
public int getStencilSeq() -
hasClip
public boolean hasClip() -
hashCode
public int hashCode() -
equals
-
clone
-