|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITextureManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ogre4j.IResourceManager |
|---|
IResourceManager.IResourceCreateOrRetrieveResult, IResourceManager.IResourceHandleMap, IResourceManager.IResourceMap, IResourceManager.IResourceMapIterator |
| Method Summary | |
|---|---|
void |
createManual(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
TextureType texType,
long width,
long height,
int num_mips,
PixelFormat format,
int usage,
IManualResourceLoader loader,
boolean hwGammaCorrection,
long fsaa)
Create a manual texture with a depth of 1 (not loaded from a file). |
void |
createManual(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
TextureType texType,
long width,
long height,
long depth,
int num_mips,
PixelFormat format,
int usage,
IManualResourceLoader loader,
boolean hwGammaCorrection,
long fsaa)
Create a manual texture with specified width, height and depth (not loaded from a file). |
void |
createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams,
TextureType texType,
int numMipmaps,
float gamma,
boolean isAlpha,
PixelFormat desiredFormat,
boolean hwGammaCorrection)
Create a new texture, or retrieve an existing one with the same name if it already exists. |
int |
getDefaultNumMipmaps()
Gets the default number of mipmaps to be used for loaded textures. |
PixelFormat |
getNativeFormat(TextureType ttype,
PixelFormat format,
int usage)
Gets the format which will be natively used for a requested format given the constraints of the current device. |
int |
getPreferredFloatBitDepth()
gets preferred bit depth for float pixel format textures. |
int |
getPreferredIntegerBitDepth()
gets preferred bit depth for integer pixel format textures. |
boolean |
isEquivalentFormatSupported(TextureType ttype,
PixelFormat format,
int usage)
Returns whether this render system can support the texture format requested with the given usage options, or another format with no quality reduction. |
boolean |
isFormatSupported(TextureType ttype,
PixelFormat format,
int usage)
Returns whether this render system can natively support the precise texture format requested with the given usage options. |
boolean |
isHardwareFilteringSupported(TextureType ttype,
PixelFormat format,
int usage,
boolean preciseFormatOnly)
Returns whether this render system has hardware filtering supported for the texture format requested with the given usage options. |
void |
load(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
TextureType texType,
int numMipmaps,
float gamma,
boolean isAlpha,
PixelFormat desiredFormat,
boolean hwGammaCorrection)
Loads a texture from a file. |
void |
loadImage(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
IImage img,
TextureType texType,
int iNumMipmaps,
float gamma,
boolean isAlpha,
PixelFormat desiredFormat,
boolean hwGammaCorrection)
Loads a texture from an object. |
void |
loadRawData(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
IDataStreamPtr stream,
int uWidth,
int uHeight,
PixelFormat format,
TextureType texType,
int iNumMipmaps,
float gamma,
boolean hwGammaCorrection)
Loads a texture from a raw data stream. |
void |
prepare(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
TextureType texType,
int numMipmaps,
float gamma,
boolean isAlpha,
PixelFormat desiredFormat,
boolean hwGammaCorrection)
Prepares to loads a texture from a file. |
void |
setDefaultNumMipmaps(int num)
Sets the default number of mipmaps to be used for loaded textures, for when textures are loaded automatically (e.g. by class) or when 'load' is called with the default parameters by the application. |
void |
setPreferredBitDepths(int integerBits,
int floatBits,
boolean reloadTextures)
Sets preferred bit depth for integer and float pixel format. |
void |
setPreferredFloatBitDepth(int bits,
boolean reloadTextures)
Sets preferred bit depth for float pixel format textures. |
void |
setPreferredIntegerBitDepth(int bits,
boolean reloadTextures)
Sets preferred bit depth for integer pixel format textures. |
| Methods inherited from interface org.ogre4j.IResourceManager |
|---|
_notifyResourceLoaded, _notifyResourceTouched, _notifyResourceUnloaded, create, createOrRetrieve, getByHandle, getByName, getLoadingOrder, getMemoryBudget, getMemoryUsage, getResourceIterator, getResourceType, getScriptPatterns, getVerbose, load, parseScript, prepare, reloadAll, reloadUnreferencedResources, remove, remove, remove, removeAll, resourceExists, resourceExists, setMemoryBudget, setVerbose, unload, unload, unloadAll, unloadUnreferencedResources |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
void createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams,
TextureType texType,
int numMipmaps,
float gamma,
boolean isAlpha,
PixelFormat desiredFormat,
boolean hwGammaCorrection)
void prepare(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
TextureType texType,
int numMipmaps,
float gamma,
boolean isAlpha,
PixelFormat desiredFormat,
boolean hwGammaCorrection)
void load(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
TextureType texType,
int numMipmaps,
float gamma,
boolean isAlpha,
PixelFormat desiredFormat,
boolean hwGammaCorrection)
void loadImage(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
IImage img,
TextureType texType,
int iNumMipmaps,
float gamma,
boolean isAlpha,
PixelFormat desiredFormat,
boolean hwGammaCorrection)
void loadRawData(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
IDataStreamPtr stream,
int uWidth,
int uHeight,
PixelFormat format,
TextureType texType,
int iNumMipmaps,
float gamma,
boolean hwGammaCorrection)
void createManual(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
TextureType texType,
long width,
long height,
long depth,
int num_mips,
PixelFormat format,
int usage,
IManualResourceLoader loader,
boolean hwGammaCorrection,
long fsaa)
void createManual(ITexturePtr returnValue,
java.lang.String name,
java.lang.String group,
TextureType texType,
long width,
long height,
int num_mips,
PixelFormat format,
int usage,
IManualResourceLoader loader,
boolean hwGammaCorrection,
long fsaa)
void setPreferredIntegerBitDepth(int bits,
boolean reloadTextures)
int getPreferredIntegerBitDepth()
void setPreferredFloatBitDepth(int bits,
boolean reloadTextures)
int getPreferredFloatBitDepth()
void setPreferredBitDepths(int integerBits,
int floatBits,
boolean reloadTextures)
boolean isFormatSupported(TextureType ttype,
PixelFormat format,
int usage)
boolean isEquivalentFormatSupported(TextureType ttype,
PixelFormat format,
int usage)
PixelFormat getNativeFormat(TextureType ttype,
PixelFormat format,
int usage)
boolean isHardwareFilteringSupported(TextureType ttype,
PixelFormat format,
int usage,
boolean preciseFormatOnly)
void setDefaultNumMipmaps(int num)
int getDefaultNumMipmaps()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||