Known Direct Subclasses
BitmapTexture |
(c) Zynga 2011 |
ETC1Texture |
TODO if(!SystemUtils.isAndroidVersionOrHigher(Build.VERSION_CODES.FROYO)) --> Meaningful Exception!
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc. |
PVRTexture |
[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. |
TextureAtlas<T extends ITextureAtlasSource> |
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc. |
|
Known Indirect Subclasses
|
Class Overview
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc.
Summary
Nested Classes |
enum |
Texture.PixelFormat |
|
Fields
protected
int
mHardwareTextureID
protected
boolean
mLoadedToHardware
protected
boolean
mUpdateOnHardwareNeeded
Public Constructors
Parameters
pTextureOptions
| the (quality) settings of the Texture. |
pTextureStateListener
| to be informed when this Texture is loaded, unloaded or a ITextureAtlasSource failed to load.
|
Public Methods
public
void
bind
(GL10 pGL)
public
int
getHardwareTextureID
()
public
boolean
hasTextureStateListener
()
public
boolean
isLoadedToHardware
()
public
boolean
isUpdateOnHardwareNeeded
()
public
void
loadToHardware
(GL10 pGL)
public
void
reloadToHardware
(GL10 pGL)
public
void
setLoadedToHardware
(boolean pLoadedToHardware)
public
void
setUpdateOnHardwareNeeded
(boolean pUpdateOnHardwareNeeded)
public
void
unloadFromHardware
(GL10 pGL)
Protected Methods
protected
void
applyTextureOptions
(GL10 pGL)
protected
void
bindTextureOnHardware
(GL10 pGL)
protected
void
deleteTextureOnHardware
(GL10 pGL)
protected
void
generateHardwareTextureID
(GL10 pGL)
protected
abstract
void
writeTextureToHardware
(GL10 pGL)