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
파일 보기 프로젝트 열기: mono-soc-2011/axiom 1 사용 예제들

공개 메소드들

메소드 설명
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