class DummySwapChain extends DummyResource implements Presentable
DummyResource.DummyRecord| Modifier and Type | Field and Description |
|---|---|
private int |
h |
private boolean |
opaque |
private PresentableState |
pState |
private DummyRTTexture |
texBackBuffer |
private int |
w |
contextdisposerRecord| Constructor and Description |
|---|
DummySwapChain(DummyContext context,
PresentableState pState,
DummyRTTexture rtt) |
| Modifier and Type | Method and Description |
|---|---|
Graphics |
createGraphics() |
void |
dispose() |
Screen |
getAssociatedScreen() |
int |
getContentHeight() |
int |
getContentWidth() |
int |
getContentX() |
int |
getContentY() |
int |
getPhysicalHeight() |
int |
getPhysicalWidth() |
float |
getPixelScaleFactor() |
boolean |
isMSAA() |
boolean |
isOpaque() |
boolean |
lockResources(PresentableState pState)
Locks any underlying resources needed for a createGraphics/prepare/present
sequence and returns a boolean indicating if the presentable needs to be
recreated.
|
boolean |
prepare(Rectangle clip)
display the indicated region to the user.
|
boolean |
present()
present the prepared region to the user.
|
void |
setOpaque(boolean opaque) |
private final PresentableState pState
private final DummyRTTexture texBackBuffer
private int w
private int h
private boolean opaque
DummySwapChain(DummyContext context, PresentableState pState, DummyRTTexture rtt)
public void dispose()
dispose in interface GraphicsResourcedispose in class DummyResourcepublic boolean lockResources(PresentableState pState)
PresentableGraphicsResource then its dispose() method will be
called prior to recreating a new Presentable object and
so no resource should need to be locked in that case.
The resources will be unlocked in either #prepare() or
Presentable.present().lockResources in interface PresentablepState - The presentation state for the upcoming pulsepublic boolean prepare(Rectangle clip)
Presentableprepare in interface Presentableclip - display region or null for full areapublic boolean present()
Presentablepresent in interface Presentablepublic int getPhysicalWidth()
getPhysicalWidth in interface Surfacepublic int getPhysicalHeight()
getPhysicalHeight in interface Surfacepublic int getContentWidth()
getContentWidth in interface Surfacepublic int getContentHeight()
getContentHeight in interface Surfacepublic int getContentX()
getContentX in interface Surfacepublic int getContentY()
getContentY in interface Surfacepublic float getPixelScaleFactor()
getPixelScaleFactor in interface Presentablepublic Graphics createGraphics()
createGraphics in interface RenderTargetpublic Screen getAssociatedScreen()
getAssociatedScreen in interface RenderTargetpublic boolean isOpaque()
isOpaque in interface RenderTargetpublic void setOpaque(boolean opaque)
setOpaque in interface RenderTargetpublic boolean isMSAA()
isMSAA in interface RenderTarget