| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final GLDrawable | |
| private TextureRenderer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: whether the contents of the overlay were lost since the last renderIndicates whether the Java 2D contents of the overlay were lost
since the last time |
| public Graphics2D | Returns: a newGraphics2D object for
rendering into the backing store of this rendererCreates a |
| public void | draw(final int
the lower-left x coordinate (relative to the lower left
of the overlay) of the rectangle to draw x, final int the lower-left y coordinate (relative to the lower left
of the overlay) of the rectangle to draw y, final int the width of the rectangle to draw width, final int the height of the rectangle to draw height)Draws the specified sub-rectangle of the overlay on top of the OpenGL drawable. |
| public void | draw(final int
the on-screen x coordinate at which to draw the rectangle screenx, final int the on-screen y coordinate (relative to lower left) at
which to draw the rectangle screeny, final int the x coordinate of the pixel in the overlay of
the lower left portion of the rectangle to draw overlayx, final int the y coordinate of the pixel in the overlay
(relative to lower left) of the lower left portion of the
rectangle to draw overlayy, final int the width of the rectangle to draw width, final int the height of the rectangle to draw height)Draws the specified sub-rectangle of the overlay at the specified x and y coordinate on top of the OpenGL drawable. |
| public void | |
| public void | |
| public void | markDirty(final int
the x coordinate (in Java 2D coordinates -- relative to
upper left) of the region to update x, final int the y coordinate (in Java 2D coordinates -- relative to
upper left) of the region to update y, final int the width of the region to update width, final int the height of the region to update height)Marks the given region of the overlay as dirty. |
| private void |
| contentsLost | back to summary |
|---|---|
| private boolean contentsLost | |
| drawable | back to summary |
|---|---|
| private final GLDrawable drawable | |
| renderer | back to summary |
|---|---|
| private TextureRenderer renderer | |
| Overlay | back to summary |
|---|---|
| public Overlay(final GLDrawable drawable) Creates a new Java 2D overlay on top of the specified GLDrawable. | |
| beginRendering | back to summary |
|---|---|
| public void beginRendering() throws GLException Begins the OpenGL rendering process for the overlay. This is separated out so advanced applications can render independent pieces of the overlay to different portions of the drawable.
| |
| contentsLost | back to summary |
|---|---|
| public boolean contentsLost() Indicates whether the Java 2D contents of the overlay were lost
since the last time
| |
| createGraphics | back to summary |
|---|---|
| public Graphics2D createGraphics() Creates a
| |
| draw | back to summary |
|---|---|
| public void draw(final int x, final int y, final int width, final int height) throws GLException Draws the specified sub-rectangle of the overlay on top of the
OpenGL drawable.
| |
| draw | back to summary |
|---|---|
| public void draw(final int screenx, final int screeny, final int overlayx, final int overlayy, final int width, final int height) throws GLException Draws the specified sub-rectangle of the overlay at the
specified x and y coordinate on top of the OpenGL drawable.
| |
| drawAll | back to summary |
|---|---|
| public void drawAll() throws GLException Draws the entire contents of the overlay on top of the OpenGL
drawable. This is a convenience method which encapsulates all
portions of the rendering process; if this method is used,
| |
| endRendering | back to summary |
|---|---|
| public void endRendering() throws GLException Ends the OpenGL rendering process for the overlay. This is separated out so advanced applications can render independent pieces of the overlay to different portions of the drawable.
| |
| markDirty | back to summary |
|---|---|
| public void markDirty(final int x, final int y, final int width, final int height) Marks the given region of the overlay as dirty. This region, and
any previously set dirty regions, will be automatically
synchronized with the underlying Texture during the next
| |
| validateRenderer | back to summary |
|---|---|
| private void validateRenderer() | |