|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Texture
Interface for the texture of a SwoglComponent
. This interface
only maintains a BufferedImage and an associated 'dirty'
rectangle. When the image contents is modified, the respective
region may be marked as 'dirty', and will be updated at the
beginning of the next rendering pass.
Method Summary | |
---|---|
void |
addDirtyRectangle(java.awt.Rectangle rectangle)
Add the given dirty rectangle to this texture. |
void |
clearDirtyRectangle()
Clear the current dirty rectangle. |
java.awt.Rectangle |
getDirtyRectangle()
Returns a copy of the current dirty rectangle. |
java.awt.image.BufferedImage |
getImage()
Return the BufferedImage backing this texture. |
Method Detail |
---|
java.awt.image.BufferedImage getImage()
void addDirtyRectangle(java.awt.Rectangle rectangle)
rectangle
- The dirty rectanglejava.awt.Rectangle getDirtyRectangle()
null
if there is no rectangle marked
as 'dirty'
null
.void clearDirtyRectangle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |