public final class GraphicsHelpers extends Object
| Constructor and Description |
|---|
GraphicsHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear() |
static void |
clear(float red,
float green,
float blue,
float alpha) |
static void |
drawToTexture(com.badlogic.gdx.graphics.Texture destTexture,
com.badlogic.gdx.graphics.Pixmap srcPixmap,
int x,
int y)
Same as
Texture.draw(com.badlogic.gdx.graphics.Pixmap, int, int), but also allows drawing the source Pixmap object to an unmanaged Texture object. |
static void |
getProjectedCenteredPosition(ViewportContext viewportContext,
float x,
float y,
float z,
float width,
float height,
com.badlogic.gdx.math.Vector3 result) |
static void |
renderCoordinateSystemAxis(DebugGeometryRenderer debugGeometryRenderer,
ExtendedSpriteBatch spriteBatch,
ViewportContext viewportContext,
com.badlogic.gdx.graphics.g2d.BitmapFont font,
com.badlogic.gdx.math.Vector3 origin) |
static void |
renderCoordinateSystemAxis(DebugGeometryRenderer debugGeometryRenderer,
ExtendedSpriteBatch spriteBatch,
ViewportContext viewportContext,
com.badlogic.gdx.graphics.g2d.BitmapFont font,
com.badlogic.gdx.math.Vector3 origin,
float axisLength) |
static void |
renderGridPlane(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer,
com.badlogic.gdx.graphics.Camera projectionCamera,
int width,
int depth) |
static void |
renderGridPlane(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer,
com.badlogic.gdx.graphics.Camera projectionCamera,
int width,
int depth,
float minX,
float minY,
float minZ) |
static void |
renderGridPlane(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer,
com.badlogic.gdx.graphics.Camera projectionCamera,
int width,
int depth,
com.badlogic.gdx.math.Matrix4 transform) |
public static void clear()
public static void clear(float red,
float green,
float blue,
float alpha)
public static void renderCoordinateSystemAxis(DebugGeometryRenderer debugGeometryRenderer, ExtendedSpriteBatch spriteBatch, ViewportContext viewportContext, com.badlogic.gdx.graphics.g2d.BitmapFont font, com.badlogic.gdx.math.Vector3 origin)
public static void renderCoordinateSystemAxis(DebugGeometryRenderer debugGeometryRenderer, ExtendedSpriteBatch spriteBatch, ViewportContext viewportContext, com.badlogic.gdx.graphics.g2d.BitmapFont font, com.badlogic.gdx.math.Vector3 origin, float axisLength)
public static void renderGridPlane(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer,
com.badlogic.gdx.graphics.Camera projectionCamera,
int width,
int depth)
public static void renderGridPlane(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer,
com.badlogic.gdx.graphics.Camera projectionCamera,
int width,
int depth,
float minX,
float minY,
float minZ)
public static void renderGridPlane(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer,
com.badlogic.gdx.graphics.Camera projectionCamera,
int width,
int depth,
com.badlogic.gdx.math.Matrix4 transform)
public static void drawToTexture(com.badlogic.gdx.graphics.Texture destTexture,
com.badlogic.gdx.graphics.Pixmap srcPixmap,
int x,
int y)
Texture.draw(com.badlogic.gdx.graphics.Pixmap, int, int), but also allows drawing the source Pixmap object to an unmanaged Texture object.
Note that doing so will mean that the original texture image data will be restored if the OpenGL context is
restored (any Pixmap's drawn to it will need to be redrawn after the context restore).public static void getProjectedCenteredPosition(ViewportContext viewportContext, float x, float y, float z, float width, float height, com.badlogic.gdx.math.Vector3 result)
Copyright © 2022. All rights reserved.