OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::Quake3Shader Class Reference

Class for recording Quake3 shaders. More...

#include <OgreQuake3Shader.h>

+ Inheritance diagram for Ogre::Quake3Shader:
+ Collaboration diagram for Ogre::Quake3Shader:

Classes

struct  Pass
 

Public Types

typedef vector< Pass >::type PassList
 

Public Member Functions

 Quake3Shader (const String &name)
 Default constructor - used by Quake3ShaderManager (do not call directly) More...
 
 ~Quake3Shader ()
 
MaterialPtr createAsMaterial (int lightmapNumber)
 Creates this shader as an OGRE material. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 

Public Attributes

Real cloudHeight
 
ManualCullingMode cullMode
 
DeformFunc deformFunc
 
Real deformParams [5]
 
bool farbox
 
String farboxName
 
unsigned int flags
 
bool fog
 
ColourValue fogColour
 
Real fogDistance
 
int numPasses
 
PassList pass
 
bool skyDome
 

Protected Member Functions

String getAlternateName (const String &texName)
 

Protected Attributes

String mName
 

Detailed Description

Class for recording Quake3 shaders.

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.

Definition at line 50 of file OgreQuake3Shader.h.

Member Typedef Documentation

Definition at line 102 of file OgreQuake3Shader.h.

Constructor & Destructor Documentation

Ogre::Quake3Shader::Quake3Shader ( const String name)

Default constructor - used by Quake3ShaderManager (do not call directly)

Ogre::Quake3Shader::~Quake3Shader ( )

Member Function Documentation

MaterialPtr Ogre::Quake3Shader::createAsMaterial ( int  lightmapNumber)

Creates this shader as an OGRE material.

Creates a new material based on this shaders settings. Material name shader::lightmap.

String Ogre::Quake3Shader::getAlternateName ( const String texName)
protected
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

Member Data Documentation

Real Ogre::Quake3Shader::cloudHeight

Definition at line 107 of file OgreQuake3Shader.h.

ManualCullingMode Ogre::Quake3Shader::cullMode

Definition at line 110 of file OgreQuake3Shader.h.

DeformFunc Ogre::Quake3Shader::deformFunc

Definition at line 108 of file OgreQuake3Shader.h.

Real Ogre::Quake3Shader::deformParams[5]

Definition at line 109 of file OgreQuake3Shader.h.

bool Ogre::Quake3Shader::farbox

Definition at line 104 of file OgreQuake3Shader.h.

String Ogre::Quake3Shader::farboxName

Definition at line 105 of file OgreQuake3Shader.h.

unsigned int Ogre::Quake3Shader::flags

Definition at line 100 of file OgreQuake3Shader.h.

bool Ogre::Quake3Shader::fog

Definition at line 112 of file OgreQuake3Shader.h.

ColourValue Ogre::Quake3Shader::fogColour

Definition at line 113 of file OgreQuake3Shader.h.

Real Ogre::Quake3Shader::fogDistance

Definition at line 114 of file OgreQuake3Shader.h.

String Ogre::Quake3Shader::mName
protected

Definition at line 54 of file OgreQuake3Shader.h.

int Ogre::Quake3Shader::numPasses

Definition at line 101 of file OgreQuake3Shader.h.

PassList Ogre::Quake3Shader::pass

Definition at line 103 of file OgreQuake3Shader.h.

bool Ogre::Quake3Shader::skyDome

Definition at line 106 of file OgreQuake3Shader.h.


The documentation for this class was generated from the following file: