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