本文整理汇总了Java中com.badlogic.gdx.graphics.PixmapIO.readCIM方法的典型用法代码示例。如果您正苦于以下问题:Java PixmapIO.readCIM方法的具体用法?Java PixmapIO.readCIM怎么用?Java PixmapIO.readCIM使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.gdx.graphics.PixmapIO
的用法示例。
在下文中一共展示了PixmapIO.readCIM方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: prepare
import com.badlogic.gdx.graphics.PixmapIO; //导入方法依赖的package包/类
@Override
public void prepare () {
if (isPrepared) throw new GdxRuntimeException("Already prepared");
if (pixmap == null) {
if (file.extension().equals("cim"))
pixmap = PixmapIO.readCIM(file);
else
pixmap = ensurePot(new Pixmap(file));
width = pixmap.getWidth();
height = pixmap.getHeight();
if (format == null) format = pixmap.getFormat();
}
applyFilter( pixmap );
isPrepared = true;
}
示例2: prepare
import com.badlogic.gdx.graphics.PixmapIO; //导入方法依赖的package包/类
public void prepare()
{
if (this.isPrepared)
throw new GdxRuntimeException("Already prepared");
if (this.pixmap == null)
if (!this.file.extension().equals("cim"))
break label96;
label96: for (this.pixmap = PixmapIO.readCIM(this.file); ; this.pixmap = ensurePot(new Pixmap(this.file)))
{
this.width = this.pixmap.getWidth();
this.height = this.pixmap.getHeight();
if (this.format == null)
this.format = this.pixmap.getFormat();
this.isPrepared = true;
return;
}
}
示例3: prepare
import com.badlogic.gdx.graphics.PixmapIO; //导入方法依赖的package包/类
@Override
public void prepare () {
if (isPrepared) throw new GdxRuntimeException("Already prepared");
if (pixmap == null) {
if (file.extension().equals("cim"))
pixmap = PixmapIO.readCIM(file);
else
pixmap = ensurePot(new Pixmap(file));
width = pixmap.getWidth();
height = pixmap.getHeight();
if (format == null) format = pixmap.getFormat();
}
isPrepared = true;
}
示例4: loadAsync
import com.badlogic.gdx.graphics.PixmapIO; //导入方法依赖的package包/类
public void loadAsync(AssetManager paramAssetManager, String paramString, TextureLoader.TextureParameter paramTextureParameter)
{
if ((paramTextureParameter == null) || ((paramTextureParameter != null) && (paramTextureParameter.textureData == null)))
{
this.texture = null;
boolean bool = false;
Pixmap.Format localFormat = null;
if (paramTextureParameter != null)
{
localFormat = paramTextureParameter.format;
bool = paramTextureParameter.genMipMaps;
this.texture = paramTextureParameter.texture;
}
FileHandle localFileHandle = resolve(paramString);
if (!paramString.contains(".etc1"))
{
if (paramString.contains(".cim"));
for (Pixmap localPixmap = PixmapIO.readCIM(localFileHandle); ; localPixmap = new Pixmap(localFileHandle))
{
this.data = new FileTextureData(localFileHandle, localPixmap, localFormat, bool);
return;
}
}
this.data = new ETC1TextureData(localFileHandle, bool);
return;
}
this.data = paramTextureParameter.textureData;
if (!this.data.isPrepared())
this.data.prepare();
this.texture = paramTextureParameter.texture;
}