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


Java PixmapIO.readCIM方法代码示例

本文整理汇总了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;
}
 
开发者ID:Inari-Soft,项目名称:inari-firefly-libGDX,代码行数:18,代码来源:FilteredTextureData.java

示例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;
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:18,代码来源:FileTextureData.java

示例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;
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:15,代码来源:FileTextureData.java

示例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;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:32,代码来源:TextureLoader.java


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