#include <OgreQuake3Shader.h>
Inheritance diagram for Ogre::Quake3Shader:
Public Methods | |
Quake3Shader (String name) | |
Default constructor - used by Quake3ShaderManager (do not call directly). More... | |
~Quake3Shader () | |
virtual void | load (void) |
Generic load - called by Quake3ShaderManager. More... | |
virtual void | unload (void) |
Generic unload - called by Quake3ShaderManager. More... | |
Material * | createAsMaterial (SceneManager *sm, int lightmapNumber) |
Creates this shader as an OGRE material. More... | |
virtual size_t | getSize (void) |
Retrieves info about the size of the resource. More... | |
void | touch (void) |
'Touches' the resource to indicate it has been used. More... | |
time_t | getLastAccess (void) const |
Gets the last time the resource was 'touched'. More... | |
const String & | getName (void) const |
Gets resource name. More... | |
bool | isLoaded (void) const |
Returns true if the Resource has been loaded, false otherwise. More... | |
virtual void | destroy () |
A method to make the resource delete itself. More... | |
Public Attributes | |
unsigned int | flags |
int | numPasses |
Pass | pass [6] |
bool | farbox |
String | farboxName |
bool | skyDome |
Real | cloudHeight |
DeformFunc | deformFunc |
Real | deformParams [5] |
ManualCullingMode | cullMode |
bool | fog |
ColourValue | fogColour |
Real | fogDistance |
Protected Methods | |
String | getAlternateName (String texName) |
Protected Attributes | |
String | mName |
bool | mIsLoaded |
time_t | mLastAccess |
size_t | mSize |
This is a temporary holding area since shaders are actually converted into Material objects for use in the engine proper. However, because we have to read in shader definitions en masse (because they are stored in shared .shader files) without knowing which will actually be used, we store their definitions here temporarily since their instantiations as Materials would use precious resources because of the automatic loading of textures etc.
|
Default constructor - used by Quake3ShaderManager (do not call directly).
|
|
|
|
Creates this shader as an OGRE material. Creates a new material based on this shaders settings. Registers it with the SceneManager passed in. Material name shader::lightmap. |
|
A method to make the resource delete itself.
|
|
|
|
Gets the last time the resource was 'touched'.
|
|
Gets resource name.
Reimplemented in Ogre::Material. |
|
Retrieves info about the size of the resource.
|
|
Returns true if the Resource has been loaded, false otherwise.
|
|
Generic load - called by Quake3ShaderManager.
Implements Ogre::Resource. |
|
'Touches' the resource to indicate it has been used.
|
|
Generic unload - called by Quake3ShaderManager.
Reimplemented from Ogre::Resource. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © 2002 by The OGRE Team