Search in sources :

Example 21 with IntArray

use of com.badlogic.gdx.utils.IntArray in project libgdx by libgdx.

the class TextArea method initialize.

@Override
protected void initialize() {
    super.initialize();
    writeEnters = true;
    linesBreak = new IntArray();
    cursorLine = 0;
    firstLineShowing = 0;
    moveOffset = -1;
    linesShowing = 0;
}
Also used : IntArray(com.badlogic.gdx.utils.IntArray)

Example 22 with IntArray

use of com.badlogic.gdx.utils.IntArray in project nhglib by VoidZombie.

the class TiledForwardShader method init.

@Override
public void init() {
    super.init(shaderProgram, renderable);
    idtMatrix = new Matrix4();
    bones = new float[0];
    lightsFrustum = new Array<>();
    lightsToRender = new Array<>();
    for (int i = 0; i < 100; i++) {
        lightsFrustum.add(new IntArray());
    }
    color = new Color();
    lightTexture = new Texture(64, 128, Pixmap.Format.RGBA8888);
    lightTexture.setFilter(Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest);
    lightInfoTexture = new Texture(1, 128, Pixmap.Format.RGBA8888);
    lightInfoTexture.setFilter(Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest);
    lightPixmap = new Pixmap(64, 128, Pixmap.Format.RGBA8888);
    lightPixmap.setBlending(Pixmap.Blending.None);
    lightInfoPixmap = new Pixmap(1, 128, Pixmap.Format.RGBA8888);
    lightInfoPixmap.setBlending(Pixmap.Blending.None);
    frustums = new SmallFrustums(10, 10);
}
Also used : IntArray(com.badlogic.gdx.utils.IntArray) Matrix4(com.badlogic.gdx.math.Matrix4)

Aggregations

IntArray (com.badlogic.gdx.utils.IntArray)22 IOException (java.io.IOException)4 FileHandle (com.badlogic.gdx.files.FileHandle)3 Array (com.badlogic.gdx.utils.Array)3 ParticleController (com.badlogic.gdx.graphics.g3d.particles.ParticleController)2 ParticleEffect (com.badlogic.gdx.graphics.g3d.particles.ParticleEffect)2 SaveData (com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData)2 MapProperties (com.badlogic.gdx.maps.MapProperties)2 TiledMapTileSet (com.badlogic.gdx.maps.tiled.TiledMapTileSet)2 AnimatedTiledMapTile (com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile)2 StaticTiledMapTile (com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile)2 FloatArray (com.badlogic.gdx.utils.FloatArray)2 GdxRuntimeException (com.badlogic.gdx.utils.GdxRuntimeException)2 ShortArray (com.badlogic.gdx.utils.ShortArray)2 Element (com.badlogic.gdx.utils.XmlReader.Element)2 AssetDescriptor (com.badlogic.gdx.assets.AssetDescriptor)1 Texture (com.badlogic.gdx.graphics.Texture)1 Glyph (com.badlogic.gdx.graphics.g2d.BitmapFont.Glyph)1 GlyphRun (com.badlogic.gdx.graphics.g2d.GlyphLayout.GlyphRun)1 TextureAtlas (com.badlogic.gdx.graphics.g2d.TextureAtlas)1