| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | glScissor(int x, int y, int width, int height)
Calls |
| public static void | glViewport(int x, int y, int width, int height)
Calls |
| public static void | |
| public static int | toBackBufferX(int logicalX)
Converts an x-coordinate given in logical screen coordinates to backbuffer coordinates. |
| public static int | toBackBufferY(int logicalY)
Converts an y-coordinate given in logical screen coordinates to backbuffer coordinates. |
| public static int | toLogicalX(int backBufferX)
Converts an x-coordinate given in backbuffer coordinates to logical screen coordinates. |
| public static int | toLogicalY(int backBufferY)
Converts an y-coordinate given in backbuffer coordinates to logical screen coordinates. |
| mode | back to summary |
|---|---|
| private static HdpiMode mode | |
| HdpiUtils | back to summary |
|---|---|
| public HdpiUtils() | |
| glScissor | back to summary |
|---|---|
| public static void glScissor(int x, int y, int width, int height) Calls | |
| glViewport | back to summary |
|---|---|
| public static void glViewport(int x, int y, int width, int height) Calls | |
| setMode | back to summary |
|---|---|
| public static void setMode(HdpiMode mode) Allows applications to override HDPI coordinate conversion for glViewport and glScissor calls. This function can be used to ignore the default behavior, for example when rendering a UI stage to an off-screen framebuffer: HdpiUtils.setMode(HdpiMode.Pixels); fb.begin(); stage.draw(); fb.end(); HdpiUtils.setMode(HdpiMode.Logical);
| |
| toBackBufferX | back to summary |
|---|---|
| public static int toBackBufferX(int logicalX) Converts an x-coordinate given in logical screen coordinates to backbuffer coordinates. | |
| toBackBufferY | back to summary |
|---|---|
| public static int toBackBufferY(int logicalY) Converts an y-coordinate given in logical screen coordinates to backbuffer coordinates. | |
| toLogicalX | back to summary |
|---|---|
| public static int toLogicalX(int backBufferX) Converts an x-coordinate given in backbuffer coordinates to logical screen coordinates. | |
| toLogicalY | back to summary |
|---|---|
| public static int toLogicalY(int backBufferY) Converts an y-coordinate given in backbuffer coordinates to logical screen coordinates. | |