C# Класс 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.
Наследование: Axiom.Core.Resource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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)

Защищенные методы

Метод Описание
GetAlternateName ( string textureName ) : string
load ( ) : void
unload ( ) : void

Описание методов

CreateAsMaterial() публичный Метод

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
Результат Axiom.Graphics.Material

GetAlternateName() защищенный Метод

protected GetAlternateName ( string textureName ) : string
textureName string
Результат string

Quake3Shader() публичный Метод

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
Результат System

load() защищенный Метод

protected load ( ) : void
Результат void

unload() защищенный Метод

protected unload ( ) : void
Результат void