final class WCPageBackBufferImpl extends WCPageBackBuffer implements ResourceFactoryListener
| Modifier and Type | Field and Description |
|---|---|
private boolean |
listenerAdded |
private float |
pixelScale |
private RTTexture |
texture |
| Constructor and Description |
|---|
WCPageBackBufferImpl(float pixelScale) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyArea(int x,
int y,
int w,
int h,
int dx,
int dy) |
WCGraphicsContext |
createGraphics() |
private static RTTexture |
createTexture(int w,
int h) |
void |
disposeGraphics(WCGraphicsContext gc) |
void |
factoryReleased()
Called when the factory is released.
|
void |
factoryReset()
Called when the factory is lost and about to be reset.
|
void |
flush(WCGraphicsContext gc,
int x,
int y,
int w,
int h) |
boolean |
validate(int width,
int height) |
private RTTexture texture
private boolean listenerAdded
private float pixelScale
private static RTTexture createTexture(int w, int h)
public WCGraphicsContext createGraphics()
createGraphics in class WCPageBackBufferpublic void disposeGraphics(WCGraphicsContext gc)
disposeGraphics in class WCPageBackBufferpublic void flush(WCGraphicsContext gc, int x, int y, int w, int h)
flush in class WCPageBackBufferprotected void copyArea(int x,
int y,
int w,
int h,
int dx,
int dy)
copyArea in class WCPageBackBufferpublic boolean validate(int width,
int height)
validate in class WCPageBackBufferpublic void factoryReset()
ResourceFactoryListenerfactoryReset in interface ResourceFactoryListenerpublic void factoryReleased()
ResourceFactoryListenerfactoryReleased in interface ResourceFactoryListener