public class PSWDrawable extends PrDrawable implements HeapImage
Modifier and Type | Field and Description |
---|---|
private boolean |
heapDirty |
private Image |
image |
private RTTexture |
rtt |
private boolean |
vramDirty |
Modifier | Constructor and Description |
---|---|
private |
PSWDrawable(RTTexture rtt,
boolean isDirty) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static PSWDrawable |
create(RTTexture rtt) |
(package private) static PSWDrawable |
create(Screen screen,
int width,
int height) |
Graphics |
createGraphics() |
void |
flush() |
(package private) static int |
getCompatibleHeight(Screen screen,
int h) |
(package private) static int |
getCompatibleWidth(Screen screen,
int w) |
int |
getContentHeight() |
int |
getContentWidth() |
java.lang.Object |
getData() |
int |
getMaxContentHeight() |
int |
getMaxContentWidth() |
int |
getPhysicalHeight() |
int |
getPhysicalWidth() |
int[] |
getPixelArray() |
int |
getScanlineStride() |
RTTexture |
getTextureObject() |
boolean |
isLost() |
void |
setContentHeight(int contentH) |
void |
setContentWidth(int contentW) |
create, getImagePool, getPixelScale, setImagePool
getNativeBounds, lock, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPixelScale
lock, unlock
private RTTexture rtt
private Image image
private boolean heapDirty
private boolean vramDirty
private PSWDrawable(RTTexture rtt, boolean isDirty)
public static PSWDrawable create(RTTexture rtt)
static int getCompatibleWidth(Screen screen, int w)
static int getCompatibleHeight(Screen screen, int h)
static PSWDrawable create(Screen screen, int width, int height)
public boolean isLost()
isLost
in interface LockableResource
isLost
in class PrTexture<RTTexture>
public void flush()
flush
in interface Filterable
public java.lang.Object getData()
getData
in interface Filterable
public int getContentWidth()
getContentWidth
in interface Filterable
public int getContentHeight()
getContentHeight
in interface Filterable
public int getMaxContentWidth()
getMaxContentWidth
in interface Filterable
getMaxContentWidth
in class PrDrawable
public int getMaxContentHeight()
getMaxContentHeight
in interface Filterable
getMaxContentHeight
in class PrDrawable
public void setContentWidth(int contentW)
setContentWidth
in interface Filterable
setContentWidth
in class PrDrawable
public void setContentHeight(int contentH)
setContentHeight
in interface Filterable
setContentHeight
in class PrDrawable
public int getPhysicalWidth()
getPhysicalWidth
in interface Filterable
public int getPhysicalHeight()
getPhysicalHeight
in interface Filterable
public int getScanlineStride()
getScanlineStride
in interface HeapImage
public int[] getPixelArray()
getPixelArray
in interface HeapImage
public RTTexture getTextureObject()
getTextureObject
in class PrTexture<RTTexture>
public Graphics createGraphics()
createGraphics
in class PrDrawable
public void clear()
clear
in class PrDrawable