28 #ifndef __MATERIALMANAGER_H__
29 #define __MATERIALMANAGER_H__
104 virtual Technique* handleSchemeNotFound(
unsigned short schemeIndex,
105 const String& schemeName,
Material* originalMaterial,
unsigned short lodIndex,
174 void initialise(
void);
208 void setDefaultAnisotropy(
unsigned int maxAniso);
210 unsigned int getDefaultAnisotropy()
const;
247 virtual unsigned short _getSchemeIndex(
const String& name);
251 virtual const String& _getSchemeName(
unsigned short index);
255 virtual unsigned short _getActiveSchemeIndex(
void)
const;
260 virtual const String& getActiveScheme(
void)
const;
265 virtual void setActiveScheme(
const String& schemeName);
280 virtual Technique* _arbitrateMissingTechniqueForActiveScheme(
Listener on any general material events.
String mActiveSchemeName
Current material scheme.
#define OGRE_THREAD_POINTER(T, var)
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Template class for creating single-instance global classes.
static String AUTODETECT_RESOURCE_GROUP_NAME
Special resource group name which causes resource group to be automatically determined based on searc...
bool mDefaultCompareEnabled
map< String, ListenerList >::type ListenerMap
Class encapsulates rendering properties of an object.
Interface describing a manual resource loader.
FilterOptions mDefaultMipFilter
Default Texture filtering - mipmapping.
map< String, unsigned short >::type SchemeMap
Scheme name -> index. Never shrinks! Should be pretty static anyway.
Class representing an approach to rendering this particular Material.
MaterialPtr mDefaultSettings
Default settings.
FilterOptions mDefaultMinFilter
Default Texture filtering - minification.
Abstract class defining the interface all renderable objects must implement.
Class for managing Material settings for Ogre.
Class for serializing Materials to / from a .material script.
unsigned short mActiveSchemeIndex
Current material scheme.
FilterOptions mDefaultCompare
Default Texture filtering - comparison.
unsigned int mDefaultMaxAniso
Default Texture anisotropy.
FilterOptions mDefaultMagFilter
Default Texture filtering - magnification.
Abstract class representing a loadable resource (e.g.
unsigned long long int ResourceHandle
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
virtual ~Listener()
Virtual destructor needed as class has virtual methods.
Defines a generic resource handler.
static String DEFAULT_SCHEME_NAME
Default material scheme.
list< Listener * >::type ListenerList
The list of per-scheme (and general) material listeners.
SchemeMap mSchemes
List of material schemes.
FilterOptions
Filtering options for textures / mipmaps.
CompareFunction mDefaultCompareFunction
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
virtual MaterialPtr getDefaultSettings(void) const
Returns a pointer to the default Material settings.
TextureFilterOptions
High-level filtering options providing shortcuts to settings the minification, magnification and mip ...