C# Класс Afterglow.Graphics.XnaFactory

SlimDX specific implementation of the api factory to provide all implementations of the abstract class or interfaces needed to use an api.
Наследование: IApiFactory
Показать файл Открыть проект

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

Метод Описание
CreateMatrixParameter ( string semanticName ) : SemanticEffectParameter

Creates a matrix effect parameter for the given semantic.

CreateObjectRenderer ( IEffect effect, BufferBinding bufferBindings ) : IObjectRenderer

Creates a new object renderer with the given effect and buffer bindings.

CreateRenderWindow ( Control control ) : IRenderWindow

Creates a new render window.

CreateTexture ( string filename ) : ITexture

Creates a new texture from the given file.

CreateTextureParameter ( string semanticName, ITexture texture ) : SemanticEffectParameter

Creates a texture effect parameter.

GetBufferService ( ) : IBufferService

Gets a buffer service to create buffer bindings.

GetEffectCompiler ( ) : IEffectCompiler

Gets the effect compiler.

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

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

Creates a matrix effect parameter for the given semantic.
public CreateMatrixParameter ( string semanticName ) : SemanticEffectParameter
semanticName string Name of the semantic.
Результат SemanticEffectParameter

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

Creates a new object renderer with the given effect and buffer bindings.
public CreateObjectRenderer ( IEffect effect, BufferBinding bufferBindings ) : IObjectRenderer
effect IEffect The effect which should be applied.
bufferBindings Afterglow.Graphics.GraphicStreams.BufferBinding The buffer bindings which contain all vertex and index data.
Результат IObjectRenderer

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

Creates a new render window.
public CreateRenderWindow ( Control control ) : IRenderWindow
control System.Windows.Forms.Control The control in which the content will be rendered.
Результат IRenderWindow

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

Creates a new texture from the given file.
public CreateTexture ( string filename ) : ITexture
filename string The filename.
Результат ITexture

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

Creates a texture effect parameter.
public CreateTextureParameter ( string semanticName, ITexture texture ) : SemanticEffectParameter
semanticName string Name of the semantic.
texture ITexture The texture.
Результат SemanticEffectParameter

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

Gets a buffer service to create buffer bindings.
public GetBufferService ( ) : IBufferService
Результат IBufferService

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

Gets the effect compiler.
public GetEffectCompiler ( ) : IEffectCompiler
Результат IEffectCompiler