本文整理汇总了Java中org.andengine.opengl.texture.bitmap.BitmapTextureFormat.getPixelFormat方法的典型用法代码示例。如果您正苦于以下问题:Java BitmapTextureFormat.getPixelFormat方法的具体用法?Java BitmapTextureFormat.getPixelFormat怎么用?Java BitmapTextureFormat.getPixelFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.andengine.opengl.texture.bitmap.BitmapTextureFormat
的用法示例。
在下文中一共展示了BitmapTextureFormat.getPixelFormat方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BitmapTextureAtlas
import org.andengine.opengl.texture.bitmap.BitmapTextureFormat; //导入方法依赖的package包/类
/**
* @param pBitmapTextureFormat use {@link BitmapTextureFormat#RGBA_8888} or {@link BitmapTextureFormat#RGBA_4444} for a {@link BitmapTextureAtlas} with transparency and {@link BitmapTextureFormat#RGB_565} for a {@link BitmapTextureAtlas} without transparency.
* @param pTextureOptions the (quality) settings of this {@link BitmapTextureAtlas}.
* @param pTextureAtlasStateListener to be informed when this {@link BitmapTextureAtlas} is loaded, unloaded or a {@link ITextureAtlasSource} failed to load.
*/
public BitmapTextureAtlas(final TextureManager pTextureManager, final int pWidth, final int pHeight, final BitmapTextureFormat pBitmapTextureFormat, final TextureOptions pTextureOptions, final ITextureAtlasStateListener<IBitmapTextureAtlasSource> pTextureAtlasStateListener) throws IllegalArgumentException {
super(pTextureManager, pWidth, pHeight, pBitmapTextureFormat.getPixelFormat(), pTextureOptions, pTextureAtlasStateListener);
this.mBitmapTextureFormat = pBitmapTextureFormat;
}
示例2: BitmapTextureAtlas
import org.andengine.opengl.texture.bitmap.BitmapTextureFormat; //导入方法依赖的package包/类
/**
* @param pBitmapTextureFormat use {@link BitmapTextureFormat#RGBA_8888} or {@link BitmapTextureFormat#RGBA_4444} for a {@link org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas} with transparency and {@link BitmapTextureFormat#RGB_565} for a {@link org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas} without transparency.
* @param pTextureOptions the (quality) settings of this {@link org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas}.
* @param pTextureAtlasStateListener to be informed when this {@link org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas} is loaded, unloaded or a {@link ITextureAtlasSource} failed to load.
*/
public BitmapTextureAtlas(final TextureManager pTextureManager, final int pWidth, final int pHeight, final BitmapTextureFormat pBitmapTextureFormat, final TextureOptions pTextureOptions, final ITextureAtlasStateListener<IBitmapTextureAtlasSource> pTextureAtlasStateListener) throws IllegalArgumentException {
super(pTextureManager, pWidth, pHeight, pBitmapTextureFormat.getPixelFormat(), pTextureOptions, pTextureAtlasStateListener);
this.mBitmapTextureFormat = pBitmapTextureFormat;
}