org.ogre4j
Interface IMaterialManager

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

public interface IMaterialManager
extends INativeObject, IResourceManager, ISingleton<IMaterialManager>


Nested Class Summary
static interface IMaterialManager.IListener
           
static interface IMaterialManager.IListenerList
           
static interface IMaterialManager.ISchemeMap
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IResourceManager
IResourceManager.IResourceCreateOrRetrieveResult, IResourceManager.IResourceHandleMap, IResourceManager.IResourceMap, IResourceManager.IResourceMapIterator
 
Method Summary
 ITechnique _arbitrateMissingTechniqueForActiveScheme(IMaterial mat, int lodIndex, IRenderable rend)
           
 int _getActiveSchemeIndex()
          Internal method - returns the active scheme index.
 int _getSchemeIndex(java.lang.String name)
          Internal method - returns index for a given material scheme name.
 java.lang.String _getSchemeName(int index)
          Internal method - returns name for a given material scheme index.
 void addListener(IMaterialManager.IListener l)
          Add a listener to handle material events.
 java.lang.String getActiveScheme()
          Returns the name of the active material scheme.
 long getDefaultAnisotropy()
           
 void getDefaultSettings(IMaterialPtr returnValue)
          Returns a pointer to the default settings.
 FilterOptions getDefaultTextureFiltering(FilterType ftype)
           
 void initialise()
          Initialises the material manager, which also triggers it to parse all available .program and .material scripts.
 void parseScript(IDataStreamPtr stream, java.lang.String groupName)
          Parse the definition of a set of resources from a script file.
 void removeListener(IMaterialManager.IListener l)
          Remove a listener handling material events.
 void setActiveScheme(java.lang.String schemeName)
          Sets the name of the active material scheme.
 void setDefaultAnisotropy(long maxAniso)
          Sets the default anisotropy level 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 setDefaultTextureFiltering(FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter)
          Sets the default texture filtering 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 setDefaultTextureFiltering(FilterType ftype, FilterOptions opts)
          Sets the default texture filtering 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 setDefaultTextureFiltering(TextureFilterOptions fo)
          Sets the default texture filtering 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.
 
Methods inherited from interface org.ogre4j.IResourceManager
_notifyResourceLoaded, _notifyResourceTouched, _notifyResourceUnloaded, create, createOrRetrieve, getByHandle, getByName, getLoadingOrder, getMemoryBudget, getMemoryUsage, getResourceIterator, getResourceType, getScriptPatterns, getVerbose, load, 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

initialise

void initialise()
Initialises the material manager, which also triggers it to parse all available .program and .material scripts.


parseScript

void parseScript(IDataStreamPtr stream,
                 java.lang.String groupName)
Description copied from interface: IResourceManager
Parse the definition of a set of resources from a script file.

Specified by:
parseScript in interface IResourceManager
Specified by:
parseScript in interface IScriptLoader

setDefaultTextureFiltering

void setDefaultTextureFiltering(TextureFilterOptions fo)
Sets the default texture filtering 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.


setDefaultTextureFiltering

void setDefaultTextureFiltering(FilterType ftype,
                                FilterOptions opts)
Sets the default texture filtering 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.


setDefaultTextureFiltering

void setDefaultTextureFiltering(FilterOptions minFilter,
                                FilterOptions magFilter,
                                FilterOptions mipFilter)
Sets the default texture filtering 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.


getDefaultTextureFiltering

FilterOptions getDefaultTextureFiltering(FilterType ftype)

setDefaultAnisotropy

void setDefaultAnisotropy(long maxAniso)
Sets the default anisotropy level 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.


getDefaultAnisotropy

long getDefaultAnisotropy()

getDefaultSettings

void getDefaultSettings(IMaterialPtr returnValue)
Returns a pointer to the default settings.


_getSchemeIndex

int _getSchemeIndex(java.lang.String name)
Internal method - returns index for a given material scheme name.


_getSchemeName

java.lang.String _getSchemeName(int index)
Internal method - returns name for a given material scheme index.


_getActiveSchemeIndex

int _getActiveSchemeIndex()
Internal method - returns the active scheme index.


getActiveScheme

java.lang.String getActiveScheme()
Returns the name of the active material scheme.


setActiveScheme

void setActiveScheme(java.lang.String schemeName)
Sets the name of the active material scheme.


addListener

void addListener(IMaterialManager.IListener l)
Add a listener to handle material events.


removeListener

void removeListener(IMaterialManager.IListener l)
Remove a listener handling material events.


_arbitrateMissingTechniqueForActiveScheme

ITechnique _arbitrateMissingTechniqueForActiveScheme(IMaterial mat,
                                                     int lodIndex,
                                                     IRenderable rend)


Copyright © 2007 netAllied GmbH. All Rights Reserved.