28 #ifndef __MATERIALMANAGER_H__
29 #define __MATERIALMANAGER_H__
103 virtual Technique* handleSchemeNotFound(
unsigned short schemeIndex,
104 const String& schemeName,
Material* originalMaterial,
unsigned short lodIndex,
156 void initialise(
void);
190 void setDefaultAnisotropy(
unsigned int maxAniso);
192 unsigned int getDefaultAnisotropy()
const;
229 virtual unsigned short _getSchemeIndex(
const String& name);
233 virtual const String& _getSchemeName(
unsigned short index);
237 virtual unsigned short _getActiveSchemeIndex(
void)
const;
242 virtual const String& getActiveScheme(
void)
const;
247 virtual void setActiveScheme(
const String& schemeName);
262 virtual Technique* _arbitrateMissingTechniqueForActiveScheme(
Listener on any general material events.
String mActiveSchemeName
Current material scheme.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Template class for creating single-instance global classes.
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.
#define OGRE_THREAD_POINTER(T, var)
Class for managing Material settings for Ogre.
Class for serializing Materials to / from a .material script.
std::map< String, ListenerList > ListenerMap
unsigned short mActiveSchemeIndex
Current material scheme.
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.
Specialisation of SharedPtr to allow SharedPtr to be assigned to MaterialPtr.
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.
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 ...