| Modifier and Type | Field and Description |
|---|---|
| private Pixels | |
| private QueuedPixelSource | |
| private final PresentableState |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getContentHeight()
Overrides com. Implements com. Returns the content height of this texture, in pixels. |
| public int | getContentWidth()
Overrides com. Implements com. Returns the content width of this texture, in pixels. |
| public float | |
| public float | |
| public boolean | isMSAA()
Overrides com. Implements com.
|
| public boolean | lockResources(PresentableState
The presentation state for the upcoming pulse 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
display region or null for full area dirtyregion)Implements com. display the indicated region to the user. |
| public boolean |
| pixels | back to summary |
|---|---|
| private Pixels pixels | |
| pixelSource | back to summary |
|---|---|
| private QueuedPixelSource pixelSource | |
| pState | back to summary |
|---|---|
| private final PresentableState pState | |
| SWPresentable | back to summary |
|---|---|
| public SWPresentable(PresentableState pState, SWResourceFactory factory) | |
| getContentHeight | back to summary |
|---|---|
| public int getContentHeight() Overrides com. Implements com. Doc from com. Returns the content height of this texture, in pixels. Note that the content size of a texture may be smaller than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The content height will be less than or equal to the content height. For example, if the hardware does not support non-power-of-two textures, and you call ResourceFactory.createTexture(400, 200), the returned Texture will have physical dimensions of 512x256, but the content dimensions will be 400x200.
| |
| getContentWidth | back to summary |
|---|---|
| public int getContentWidth() Overrides com. Implements com. Doc from com. Returns the content width of this texture, in pixels. Note that the content size of a texture may be smaller than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The content width will be less than or equal to the content width. For example, if the hardware does not support non-power-of-two textures, and you call ResourceFactory.createTexture(400, 200), the returned Texture will have physical dimensions of 512x256, but the content dimensions will be 400x200.
| |
| 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() Overrides com. 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 dirtyregion) 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.
| |