org.ogre4j
Interface ITextureManager

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResourceAllocatedObject, IResourceManager, IScriptLoader, ISingleton<ITextureManager>
All Known Implementing Classes:
TextureManager

public interface ITextureManager
extends INativeObject, IResourceManager, ISingleton<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

createOrRetrieve

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.


prepare

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.


load

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.


loadImage

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.


loadRawData

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.


createManual

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).


createManual

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).


setPreferredIntegerBitDepth

void setPreferredIntegerBitDepth(int bits,
                                 boolean reloadTextures)
Sets preferred bit depth for integer pixel format textures.


getPreferredIntegerBitDepth

int getPreferredIntegerBitDepth()
gets preferred bit depth for integer pixel format textures.


setPreferredFloatBitDepth

void setPreferredFloatBitDepth(int bits,
                               boolean reloadTextures)
Sets preferred bit depth for float pixel format textures.


getPreferredFloatBitDepth

int getPreferredFloatBitDepth()
gets preferred bit depth for float pixel format textures.


setPreferredBitDepths

void setPreferredBitDepths(int integerBits,
                           int floatBits,
                           boolean reloadTextures)
Sets preferred bit depth for integer and float pixel format.


isFormatSupported

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.


isEquivalentFormatSupported

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.


getNativeFormat

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.


isHardwareFilteringSupported

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.


setDefaultNumMipmaps

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. If set to MIP_UNLIMITED mipmaps will be generated until the lowest possible level, 1x1x1.


getDefaultNumMipmaps

int getDefaultNumMipmaps()
Gets the default number of mipmaps to be used for loaded textures.



Copyright © 2007 netAllied GmbH. All Rights Reserved.