|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.ScissorRect
public class ScissorRect
This class is used to attach glScissor information to a RenderAtom.
| Constructor Summary | |
|---|---|
ScissorRect(int x,
int y,
int width,
int height)
Creates a new ScissorBox |
|
| Method Summary | |
|---|---|
boolean |
check(org.openmali.types.twodee.Sized2iRO viewport)
Checks if the values of the box are valid |
void |
clamp(org.openmali.types.twodee.Sized2iRO viewport)
Clamps the ScissorBox'es values to be insode the Canvas. |
boolean |
equals(ScissorRect box2)
|
int |
getHeight()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
void |
init(int x,
int y,
int width,
int height)
Initializes the ScissorBox |
boolean |
isChanged()
Have the values changed since last time? |
void |
setChanged(boolean changed)
Have the values changed since last time? |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScissorRect(int x,
int y,
int width,
int height)
x - the x coordinate of the lower-left cornery - the y coordinate of the lower-left cornerwidth - the width of the boxheight - the height of the box| Method Detail |
|---|
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public void setChanged(boolean changed)
public boolean isChanged()
public boolean check(org.openmali.types.twodee.Sized2iRO viewport)
viewport - the Viewport size to check the bounds against
public void clamp(org.openmali.types.twodee.Sized2iRO viewport)
viewport - the Viewport size to check the bounds againstpublic boolean equals(ScissorRect box2)
public java.lang.String toString()
toString in class java.lang.Object
public void init(int x,
int y,
int width,
int height)
x - the x coordinate of the lower-left cornery - the y coordinate of the lower-left cornerwidth - the width of the boxheight - the height of the box
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||