本文整理汇总了Java中com.watabou.gltextures.TextureCache.contains方法的典型用法代码示例。如果您正苦于以下问题:Java TextureCache.contains方法的具体用法?Java TextureCache.contains怎么用?Java TextureCache.contains使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.watabou.gltextures.TextureCache
的用法示例。
在下文中一共展示了TextureCache.contains方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Halo
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public Halo() {
super();
if (!TextureCache.contains(CACHE_KEY)) {
Bitmap bmp = Bitmap.createBitmap(RADIUS * 2, RADIUS * 2,
Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bmp);
Paint paint = new Paint();
paint.setColor(0xFFFFFFFF);
canvas.drawCircle(RADIUS, RADIUS, RADIUS * 0.75f, paint);
paint.setColor(0x88FFFFFF);
canvas.drawCircle(RADIUS, RADIUS, RADIUS, paint);
TextureCache.add(CACHE_KEY, new SmartTexture(bmp));
}
texture(CACHE_KEY);
}
示例2: Halo
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public Halo() {
super();
if (!TextureCache.contains( CACHE_KEY )) {
Bitmap bmp = Bitmap.createBitmap( RADIUS * 2, RADIUS * 2, Bitmap.Config.ARGB_8888 );
Canvas canvas = new Canvas( bmp );
Paint paint = new Paint();
paint.setColor( 0xFFFFFFFF );
canvas.drawCircle( RADIUS, RADIUS, RADIUS * 0.75f, paint );
paint.setColor( 0x88FFFFFF );
canvas.drawCircle( RADIUS, RADIUS, RADIUS, paint );
TextureCache.add( CACHE_KEY, new SmartTexture( bmp ) );
}
texture( CACHE_KEY );
}
示例3: Halo
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public Halo() {
super();
if (!TextureCache.contains( CACHE_KEY )) {
Pixmap pixmap = new Pixmap(RADIUS * 2, RADIUS * 2, Pixmap.Format.RGBA8888);
pixmap.setColor( 0xFFFFFFFF );
pixmap.fillCircle( RADIUS, RADIUS, (int) (RADIUS * 0.75f));
pixmap.setColor( 0xFFFFFF88 );
pixmap.fillCircle( RADIUS, RADIUS, RADIUS );
GdxTexture bmp = new GdxTexture(pixmap);
TextureCache.add( CACHE_KEY, new SmartTexture( bmp ) );
}
texture( CACHE_KEY );
origin.set( RADIUS );
}
示例4: Halo
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public Halo() {
super();
if (!TextureCache.contains( CACHE_KEY )) {
Bitmap bmp = Bitmap.createBitmap( RADIUS * 2, RADIUS * 2, Bitmap.Config.ARGB_8888 );
Canvas canvas = new Canvas( bmp );
Paint paint = new Paint();
paint.setColor( 0xFFFFFFFF );
canvas.drawCircle( RADIUS, RADIUS, RADIUS * 0.75f, paint );
paint.setColor( 0x88FFFFFF );
canvas.drawCircle( RADIUS, RADIUS, RADIUS, paint );
TextureCache.add( CACHE_KEY, new SmartTexture( bmp ) );
}
texture( CACHE_KEY );
origin.set( RADIUS );
}
示例5: Halo
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public Halo() {
super();
if (!TextureCache.contains(CACHE_KEY)) {
Pixmap pixmap = new Pixmap(RADIUS * 2, RADIUS * 2, Pixmap.Format.RGBA8888);
pixmap.setColor(0xFFFFFFFF);
pixmap.fillCircle(RADIUS, RADIUS, (int) (RADIUS * 0.75f));
pixmap.setColor(0xFFFFFF88);
pixmap.fillCircle(RADIUS, RADIUS, RADIUS);
Bitmap bmp = new Bitmap(pixmap);
TextureCache.add(CACHE_KEY, new SmartTexture(bmp));
}
texture(CACHE_KEY);
origin.set(RADIUS);
}
示例6: Halo
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public Halo() {
super();
if (!TextureCache.contains( CACHE_KEY )) {
Bitmap bmp = Bitmap.createBitmap( RADIUS * 2, RADIUS * 2, Bitmap.Config.ARGB_8888 );
Canvas canvas = new Canvas( bmp );
Paint paint = new Paint();
paint.setColor( 0x0AFFFFFF );
for (int i = 0; i < 50; i++) {
canvas.drawCircle(RADIUS, RADIUS, RADIUS * (i+1)/50f, paint);
}
TextureCache.add( CACHE_KEY, new SmartTexture( bmp ) );
}
texture( CACHE_KEY );
}
示例7: Halo
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public Halo() {
if (!TextureCache.contains( CACHE_KEY )) {
Bitmap bmp = Bitmap.createBitmap( RADIUS * 2, RADIUS * 2, Bitmap.Config.ARGB_8888 );
Canvas canvas = new Canvas( bmp );
Paint paint = new Paint();
paint.setColor( 0xFFFFFFFF );
canvas.drawCircle( RADIUS, RADIUS, RADIUS * 0.75f, paint );
paint.setColor( 0x88FFFFFF );
canvas.drawCircle( RADIUS, RADIUS, RADIUS, paint );
TextureCache.add( CACHE_KEY, new SmartTexture( bmp ) );
}
texture( CACHE_KEY );
origin.set( RADIUS );
}
示例8: Halo
import com.watabou.gltextures.TextureCache; //导入方法依赖的package包/类
public Halo() {
super();
if (!TextureCache.contains( CACHE_KEY )) {
Pixmap pixmap = new Pixmap(RADIUS * 2, RADIUS * 2, Pixmap.Format.RGBA8888);
pixmap.setColor( 0xFFFFFF0A );
for (int i = 0; i < 50; i++) {
pixmap.fillCircle(RADIUS, RADIUS, (int)(RADIUS * (i+1)/50f));
}
TextureCache.add( CACHE_KEY, new SmartTexture( pixmap ) );
}
texture( CACHE_KEY );
}