C# Class Axiom.SceneManagers.Bsp.Quake3Shader

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.
Inheritance: Axiom.Core.Resource
Exibir arquivo Open project: mono-soc-2011/axiom Class Usage Examples

Public Methods

Method Description
CreateAsMaterial ( int lightmapNumber ) : Material

Creates this shader as an OGRE material.

Creates a new material based on this shaders settings and registers it with the SceneManager passed in. Material name is in the format of: shader#lightmap.

Quake3Shader ( ResourceManager parent, string name, System.UInt64 handle, string group ) : System

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

Protected Methods

Method Description
GetAlternateName ( string textureName ) : string
load ( ) : void
unload ( ) : void

Method Details

CreateAsMaterial() public method

Creates this shader as an OGRE material.
Creates a new material based on this shaders settings and registers it with the SceneManager passed in. Material name is in the format of: shader#lightmap.
public CreateAsMaterial ( int lightmapNumber ) : Material
lightmapNumber int Lightmap number
return Axiom.Graphics.Material

GetAlternateName() protected method

protected GetAlternateName ( string textureName ) : string
textureName string
return string

Quake3Shader() public method

Default constructor - used by Quake3ShaderManager (do not call directly)
public Quake3Shader ( ResourceManager parent, string name, System.UInt64 handle, string group ) : System
parent Axiom.Core.ResourceManager
name string Shader name.
handle System.UInt64
group string
return System

load() protected method

protected load ( ) : void
return void

unload() protected method

protected unload ( ) : void
return void