public abstract class

PVRTexture

extends Texture
java.lang.Object
   ↳ org.anddev.andengine.opengl.texture.Texture
     ↳ org.anddev.andengine.opengl.texture.compressed.pvr.PVRTexture
Known Direct Subclasses

Class Overview

[16:32:42] Ricardo Quesada: "quick tip for PVR + NPOT + RGBA4444 textures: Don't forget to pack the bytes: glPixelStorei(GL_UNPACK_ALIGNMENT,1);" (c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

See Also
  • https://github.com/cocos2d/cocos2d-iphone/blob/develop/cocos2d/CCTexturePVR.m

Summary

Nested Classes
enum PVRTexture.PVRTextureFormat  
class PVRTexture.PVRTextureHeader  
Constants
int FLAG_ALPHA
int FLAG_BUMPMAP
int FLAG_CUBEMAP
int FLAG_FALSEMIPCOL
int FLAG_MIPMAP
int FLAG_TILING
int FLAG_TWIDDLE
int FLAG_VERTICALFLIP
int FLAG_VOLUME
[Expand]
Inherited Fields
From class org.anddev.andengine.opengl.texture.Texture
Public Constructors
PVRTexture(PVRTexture.PVRTextureFormat pPVRTextureFormat)
PVRTexture(PVRTexture.PVRTextureFormat pPVRTextureFormat, ITexture.ITextureStateListener pTextureStateListener)
PVRTexture(PVRTexture.PVRTextureFormat pPVRTextureFormat, TextureOptions pTextureOptions)
PVRTexture(PVRTexture.PVRTextureFormat pPVRTextureFormat, TextureOptions pTextureOptions, ITexture.ITextureStateListener pTextureStateListener)
Public Methods
int getHeight()
PVRTexture.PVRTextureHeader getPVRTextureHeader()
int getWidth()
Protected Methods
void generateHardwareTextureID(GL10 pGL)
InputStream getInputStream()
ByteBuffer getPVRDataBuffer()
abstract InputStream onGetInputStream()
void writeTextureToHardware(GL10 pGL)
[Expand]
Inherited Methods
From class org.anddev.andengine.opengl.texture.Texture
From class java.lang.Object
From interface org.anddev.andengine.opengl.texture.ITexture

Constants

public static final int FLAG_ALPHA

Constant Value: 32768 (0x00008000)

public static final int FLAG_BUMPMAP

Constant Value: 1024 (0x00000400)

public static final int FLAG_CUBEMAP

Constant Value: 4096 (0x00001000)

public static final int FLAG_FALSEMIPCOL

Constant Value: 8192 (0x00002000)

public static final int FLAG_MIPMAP

Constant Value: 256 (0x00000100)

public static final int FLAG_TILING

Constant Value: 2048 (0x00000800)

public static final int FLAG_TWIDDLE

Constant Value: 512 (0x00000200)

public static final int FLAG_VERTICALFLIP

Constant Value: 65536 (0x00010000)

public static final int FLAG_VOLUME

Constant Value: 16384 (0x00004000)

Public Constructors

public PVRTexture (PVRTexture.PVRTextureFormat pPVRTextureFormat)

public PVRTexture (PVRTexture.PVRTextureFormat pPVRTextureFormat, ITexture.ITextureStateListener pTextureStateListener)

public PVRTexture (PVRTexture.PVRTextureFormat pPVRTextureFormat, TextureOptions pTextureOptions)

public PVRTexture (PVRTexture.PVRTextureFormat pPVRTextureFormat, TextureOptions pTextureOptions, ITexture.ITextureStateListener pTextureStateListener)

Public Methods

public int getHeight ()

public PVRTexture.PVRTextureHeader getPVRTextureHeader ()

public int getWidth ()

Protected Methods

protected void generateHardwareTextureID (GL10 pGL)

protected InputStream getInputStream ()

Throws
IOException

protected ByteBuffer getPVRDataBuffer ()

Throws
IOException

protected abstract InputStream onGetInputStream ()

Throws
IOException

protected void writeTextureToHardware (GL10 pGL)

Throws
IOException