本文整理匯總了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;
}