public class GlobalsKt
Modifier and Type | Method and Description |
---|---|
static com.badlogic.gdx.graphics.Color |
Color(int r,
int g,
int b) |
static com.badlogic.gdx.graphics.glutils.ShaderProgram |
createDefaultShader() |
static com.badlogic.gdx.graphics.glutils.ShaderProgram |
createDefaultShaderGL2() |
static com.badlogic.gdx.graphics.glutils.ShaderProgram |
createDefaultShaderGL3() |
static com.badlogic.gdx.graphics.glutils.ShaderProgram |
createDefaultShapeShader(boolean hasNormals,
boolean hasColors,
int numTexCoords)
Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified.
|
static void |
drawBox(int MARGIN,
int SHADOW_OFFSET,
com.badlogic.gdx.graphics.glutils.ShapeRenderer shape,
float width,
float height,
float y,
float SCREEN_WIDTH,
float x) |
static void |
error(java.lang.String message) |
static java.lang.String |
getOsName() |
static org.codehaus.groovy.control.CompilerConfiguration |
groovyCompilerConfig() |
static boolean |
isLinux() |
static boolean |
isMobile() |
static boolean |
isOSX() |
static boolean |
isWindows() |
static java.util.List<uk.co.electronstudio.retrowar.LevelLoader> |
listAllLevels(java.lang.String path) |
static java.util.List<uk.co.electronstudio.retrowar.LevelLoader> |
listAllLevels() |
static void |
log(java.lang.String log) |
static void |
log(java.lang.String c,
java.lang.String log) |
static kotlin.Pair<java.lang.Float,java.lang.Float> |
normVector(kotlin.Pair<java.lang.Float,java.lang.Float> $receiver) |
static void |
playAtOurVolume(com.badlogic.gdx.audio.Sound $receiver) |
static com.badlogic.gdx.graphics.g2d.TextureRegion |
renderTileMapToTexture(com.badlogic.gdx.maps.tiled.TiledMap map) |
static float |
round(float $receiver) |
static float |
roundDown(float $receiver) |
static java.lang.String |
toMarkup(com.badlogic.gdx.graphics.Color $receiver) |
public static java.lang.String getOsName()
public static boolean isOSX()
public static boolean isMobile()
public static boolean isLinux()
public static boolean isWindows()
public static void log(java.lang.String log)
public static void log(java.lang.String c, java.lang.String log)
public static void error(java.lang.String message)
public static void drawBox(int MARGIN, int SHADOW_OFFSET, com.badlogic.gdx.graphics.glutils.ShapeRenderer shape, float width, float height, float y, float SCREEN_WIDTH, float x)
public static java.util.List<uk.co.electronstudio.retrowar.LevelLoader> listAllLevels(java.lang.String path)
public static java.util.List<uk.co.electronstudio.retrowar.LevelLoader> listAllLevels()
public static float roundDown(float $receiver)
public static kotlin.Pair<java.lang.Float,java.lang.Float> normVector(kotlin.Pair<java.lang.Float,java.lang.Float> $receiver)
public static com.badlogic.gdx.graphics.Color Color(int r, int g, int b)
public static float round(float $receiver)
public static com.badlogic.gdx.graphics.glutils.ShaderProgram createDefaultShader()
public static com.badlogic.gdx.graphics.glutils.ShaderProgram createDefaultShaderGL3()
public static com.badlogic.gdx.graphics.glutils.ShaderProgram createDefaultShapeShader(boolean hasNormals, boolean hasColors, int numTexCoords)
Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified.
public static com.badlogic.gdx.graphics.glutils.ShaderProgram createDefaultShaderGL2()
public static com.badlogic.gdx.graphics.g2d.TextureRegion renderTileMapToTexture(com.badlogic.gdx.maps.tiled.TiledMap map)
public static void playAtOurVolume(com.badlogic.gdx.audio.Sound $receiver)
public static java.lang.String toMarkup(com.badlogic.gdx.graphics.Color $receiver)
public static org.codehaus.groovy.control.CompilerConfiguration groovyCompilerConfig()