当前位置: 首页>>代码示例>>Java>>正文


Java TextureCache.contains方法代码示例

本文整理汇总了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);
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:18,代码来源:Halo.java

示例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 );
}
 
开发者ID:mango-tree,项目名称:UNIST-pixel-dungeon,代码行数:17,代码来源:Halo.java

示例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 );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:18,代码来源:Halo.java

示例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 );
}
 
开发者ID:ConsideredHamster,项目名称:YetAnotherPixelDungeon,代码行数:19,代码来源:Halo.java

示例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);
}
 
开发者ID:skynet67,项目名称:pixel-dungeon-rebirth,代码行数:18,代码来源:Halo.java

示例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 );
}
 
开发者ID:00-Evan,项目名称:shattered-pixel-dungeon,代码行数:17,代码来源:Halo.java

示例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 );
}
 
开发者ID:NYRDS,项目名称:pixel-dungeon-remix,代码行数:17,代码来源:Halo.java

示例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 );
}
 
开发者ID:00-Evan,项目名称:shattered-pixel-dungeon-gdx,代码行数:15,代码来源:Halo.java


注:本文中的com.watabou.gltextures.TextureCache.contains方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。