public PseudoPixel() { super( TextureCache.createSolid( 0xFFFFFFFF ) ); }
public PseudoPixel() { super( TextureCache.createSolid( 0xFFFFFFFF ) ); }
public PseudoPixel() { super( TextureCache.createSolid( 0xFFFFFFFF ) ); }
public CircleArc( int triangles, float radius ) { super( 0, 0, 0, 0 ); texture = TextureCache.createSolid( 0xFFFFFFFF ); this.nTris = triangles; this.rad = radius; vertices = ByteBuffer. allocateDirect( (nTris * 2 + 1) * 4 * (Float.SIZE / 8) ). order( ByteOrder.nativeOrder() ). asFloatBuffer(); indices = ByteBuffer. allocateDirect( nTris * 3 * Short.SIZE / 8 ). order( ByteOrder.nativeOrder() ). asShortBuffer(); sweep = 1f; updateTriangles(); }
public CircleArc( int triangles, float radius ) { super( 0, 0, 0, 0 ); texture = TextureCache.createSolid( 0xFFFFFFFF ); this.nTris = triangles; this.rad = radius; vertices = ByteBuffer. allocateDirect( (nTris * 2 + 1) * 4 * (Float.SIZE / 8) ). order( ByteOrder.nativeOrder() ). asFloatBuffer(); indices = ByteBuffer. allocateDirect( nTris * 3 * Short.SIZE / 8 ). order( ByteOrder.nativeOrder() ). asShortBuffer(); sweep = 1f; updateTriangles(); }
public ColorBlock( float width, float height, int color ) { super( TextureCache.createSolid( color ) ); scale.set( width, height ); origin.set( 0, 0 ); }
public ColorBlock( float width, float height, int color ) { super( TextureCache.createSolid( color ) ); scale.set( width, height ); origin.set( 0, 0 ); }
@Override protected void createChildren() { bg = new Image( TextureCache.createSolid( 0xFFcc0000 ) ); bg.scale.y = HEIGHT; add( bg ); level = new Image( TextureCache.createSolid( 0xFF00cc00 ) ); level.scale.y = HEIGHT; add( level ); }
public ColorBlock( float width, float height, int color ) { super( TextureCache.createSolid( color ) ); scale.set( width, height ); origin.set( 0, 0 ); }
public CheckedCell( int pos ) { super( TextureCache.createSolid( 0xFF55AAFF ) ); origin.set( 0.5f ); point( DungeonTilemap.tileToWorld( pos ).offset( DungeonTilemap.SIZE / 2, DungeonTilemap.SIZE / 2 ) ); alpha = 0.8f; }
public CheckedCell( int pos ) { super( TextureCache.createSolid( 0xFF55AAFF ) ); origin.set( 0.5f ); point( DungeonTilemap.tileToWorld( pos ).offset( DungeonTilemap.SIZE / 2, DungeonTilemap.SIZE / 2 ) ); alpha = 0.8f; }
public CheckedCell( int pos ) { super( TextureCache.createSolid( 0xFF55AAFF ) ); origin.set( 0.5f ); point( DungeonTilemap.tileToWorld( pos ).offset( DungeonTilemap.SIZE / 2, DungeonTilemap.SIZE / 2 ) ); alpha = 0.8f; }
if (item != null) { bg.texture( TextureCache.createSolid( item.isEquipped( Dungeon.hero ) ? EQUIPPED : NORMAL ) ); if (item.cursed && item.cursedKnown) { bg.ra = +0.3f;
if (item != null) { bg.texture( TextureCache.createSolid( item.isEquipped( Dungeon.hero ) ? EQUIPPED : NORMAL ) ); if (item.cursed && item.cursedKnown) { bg.ra = +0.3f;
if (item != null) { bg.texture( TextureCache.createSolid( item.isEquipped( Dungeon.hero ) ? EQUIPPED : NORMAL ) );