| Modifier and Type | Field and Description |
|---|---|
| private final ES2Context | |
| private boolean | |
| private GLDrawable | |
| private int | |
| private final boolean | |
| pack-priv int | |
| private boolean | |
| private boolean | |
| private float | |
| private float | |
| private final PresentableState | |
| private RTTexture | stableBackbuffer
An offscreen surface that acts as a persistent backbuffer, currently only used when dirty region optimizations are enabled in the scenegraph. |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ES2Graphics | |
| public void | |
| private void | drawTexture(ES2Graphics g, RTTexture src, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2)
|
| public Screen | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public float | |
| public float | |
| public boolean | |
| public boolean | |
| public boolean | lockResources(PresentableState pState)
Implements com. Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated. |
| public boolean | prepare(Rectangle clip)
Implements com. display the indicated region to the user. |
| public boolean | |
| public void |
| context | back to summary |
|---|---|
| private final ES2Context context | |
| copyFullBuffer | back to summary |
|---|---|
| private boolean copyFullBuffer | |
| drawable | back to summary |
|---|---|
| private GLDrawable drawable | |
| h | back to summary |
|---|---|
| private int h | |
| msaa | back to summary |
|---|---|
| private final boolean msaa | |
| nativeDestHandle | back to summary |
|---|---|
| pack-priv int nativeDestHandle | |
| needsResize | back to summary |
|---|---|
| private boolean needsResize | |
| opaque | back to summary |
|---|---|
| private boolean opaque | |
| pixelScaleFactorX | back to summary |
|---|---|
| private float pixelScaleFactorX | |
| pixelScaleFactorY | back to summary |
|---|---|
| private float pixelScaleFactorY | |
| pState | back to summary |
|---|---|
| private final PresentableState pState | |
| stableBackbuffer | back to summary |
|---|---|
| private RTTexture stableBackbuffer An offscreen surface that acts as a persistent backbuffer, currently only used when dirty region optimizations are enabled in the scenegraph. In OpenGL, the contents of a window's (hardware) backbuffer are undefined after a swapBuffers() operation. The dirty region optimizations used in the Prism scenegraph require the window's backbuffer to be persistent, so when those optimizations are enabled, we insert this special stableBackbuffer into the swap chain. In createGraphics() we return a Graphics object that points to this stableBackbuffer so that the scenegraph gets rendered into it, and then at present() time we first copy stableBackbuffer into the window's hardware backbuffer prior to calling swapBuffers(). | |
| w | back to summary |
|---|---|
| private int w | |
| ES2SwapChain | back to summary |
|---|---|
| pack-priv ES2SwapChain(ES2Context context, PresentableState pState) | |
| createGraphics | back to summary |
|---|---|
| public ES2Graphics createGraphics() Implements com.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com.
| |
| drawTexture | back to summary |
|---|---|
| private void drawTexture(ES2Graphics g, RTTexture src, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2) | |
| getAssociatedScreen | back to summary |
|---|---|
| public Screen getAssociatedScreen() Implements com.
| |
| getContentHeight | back to summary |
|---|---|
| public int getContentHeight() Implements com.
| |
| getContentWidth | back to summary |
|---|---|
| public int getContentWidth() Implements com.
| |
| getContentX | back to summary |
|---|---|
| public int getContentX() Implements com.
| |
| getContentY | back to summary |
|---|---|
| public int getContentY() Implements com.
| |
| getFboID | back to summary |
|---|---|
| public int getFboID() Implements com.
| |
| getPhysicalHeight | back to summary |
|---|---|
| public int getPhysicalHeight() Implements com.
| |
| getPhysicalWidth | back to summary |
|---|---|
| public int getPhysicalWidth() Implements com.
| |
| getPixelScaleFactorX | back to summary |
|---|---|
| public float getPixelScaleFactorX() Implements com.
| |
| getPixelScaleFactorY | back to summary |
|---|---|
| public float getPixelScaleFactorY() Implements com.
| |
| isMSAA | back to summary |
|---|---|
| public boolean isMSAA() Implements com.
| |
| isOpaque | back to summary |
|---|---|
| public boolean isOpaque() Implements com.
| |
| lockResources | back to summary |
|---|---|
| public boolean lockResources(PresentableState pState) Implements com. Doc from com. Locks any underlying resources needed for a createGraphics/prepare/present
sequence and returns a boolean indicating if the presentable needs to be
recreated.
If the method returns true and the Presentable implements
| |
| prepare | back to summary |
|---|---|
| public boolean prepare(Rectangle clip) Implements com. Doc from com. display the indicated region to the user.
| |
| present | back to summary |
|---|---|
| public boolean present() Implements com. Doc from com. present the prepared region to the user.
| |
| setOpaque | back to summary |
|---|---|
| public void setOpaque(boolean isOpaque) Implements com.
| |