本文整理汇总了Java中com.watabou.gltextures.TextureCache.createSolid方法的典型用法代码示例。如果您正苦于以下问题:Java TextureCache.createSolid方法的具体用法?Java TextureCache.createSolid怎么用?Java TextureCache.createSolid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.watabou.gltextures.TextureCache
的用法示例。
在下文中一共展示了TextureCache.createSolid方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CheckedCell
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
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;
}
示例2: createChildren
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
@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 );
}
示例3: CheckedCell
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
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;
}
示例4: createChildren
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
@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);
}
示例5: CheckedCell
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
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;
}
示例6: createChildren
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
@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 );
}
示例7: PseudoPixel
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public PseudoPixel() {
super(TextureCache.createSolid(0xFFFFFFFF));
}
示例8: ColorBlock
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public ColorBlock(float width, float height, int color) {
super(TextureCache.createSolid(color));
scale.set(width, height);
origin.set(0, 0);
}
示例9: PseudoPixel
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public PseudoPixel() {
super( TextureCache.createSolid( 0xFFFFFFFF ) );
}
示例10: ColorBlock
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public ColorBlock( float width, float height, int color ) {
super( TextureCache.createSolid( color ) );
scale.set( width, height );
origin.set( 0, 0 );
}
示例11: PseudoPixel
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public PseudoPixel() {
super(TextureCache.createSolid(0xFFFFFFFF));
}
示例12: ColorBlock
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public ColorBlock(float width, float height, int color) {
super(TextureCache.createSolid(color));
scale.set(width, height);
origin.set(0, 0);
}
示例13: CheckedCell
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
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;
}