Detailed Description

Represents a family of shaders. Globally cached to minimise memory usage.

Public Member Functions

Shader GetShader (string extraName)
 Gets a particular variant of this shader. More...
 

Static Public Member Functions

static ShaderSet Get (string name)
 Gets a shader set by name. More...
 

Public Attributes

bool UsesLighting
 True if this set uses lighting. More...
 
string Name
 The name of this shader set. More...
 

Static Public Attributes

static Dictionary< string,
ShaderSet
GlobalCache
 The cache of shader sets. More...
 

Properties

static ShaderSet Standard [get]
 The standard shader set. More...
 
static ShaderSet StandardLit [get]
 The standard shader set (lit). More...
 
Shader Normal [get]
 Gets the normal purpose shader. More...
 
Shader Extruded [get]
 Gets the extrusion shader. More...
 
Shader Isolated [get]
 Gets the isolation shader. More...
 

Private Member Functions

 ShaderSet (string name)
 Creates the shader set for the given family name. More...
 

Private Attributes

Shader CachedNormal
 The normal use shader. More...
 
Shader CachedExtruded
 The extruded shader. More...
 
Shader CachedIsolated
 The default isolation shader. More...
 

Static Private Attributes

static ShaderSet CachedStandard
 The standard shader set. Use Standard instead. More...
 
static ShaderSet CachedStandardLit
 The standard lit shader set. Use StandardLit instead. More...
 

Constructor & Destructor Documentation

PowerUI.ShaderSet.ShaderSet ( string  name)
inlineprivate

Creates the shader set for the given family name.

Member Function Documentation

static ShaderSet PowerUI.ShaderSet.Get ( string  name)
inlinestatic

Gets a shader set by name.

Shader PowerUI.ShaderSet.GetShader ( string  extraName)
inline

Gets a particular variant of this shader.

Member Data Documentation

Shader PowerUI.ShaderSet.CachedExtruded
private

The extruded shader.

Shader PowerUI.ShaderSet.CachedIsolated
private

The default isolation shader.

Shader PowerUI.ShaderSet.CachedNormal
private

The normal use shader.

ShaderSet PowerUI.ShaderSet.CachedStandard
staticprivate

The standard shader set. Use Standard instead.

ShaderSet PowerUI.ShaderSet.CachedStandardLit
staticprivate

The standard lit shader set. Use StandardLit instead.

Dictionary<string,ShaderSet> PowerUI.ShaderSet.GlobalCache
static

The cache of shader sets.

string PowerUI.ShaderSet.Name

The name of this shader set.

bool PowerUI.ShaderSet.UsesLighting

True if this set uses lighting.

Property Documentation

Shader PowerUI.ShaderSet.Extruded
get

Gets the extrusion shader.

Shader PowerUI.ShaderSet.Isolated
get

Gets the isolation shader.

Shader PowerUI.ShaderSet.Normal
get

Gets the normal purpose shader.

ShaderSet PowerUI.ShaderSet.Standard
staticget

The standard shader set.

ShaderSet PowerUI.ShaderSet.StandardLit
staticget

The standard shader set (lit).