C# Class Afterglow.Graphics.SlimDXFactory

SlimDX specific implementation of the api factory to provide all implementations of the abstract class or interfaces needed to use an api.
Inheritance: IApiFactory
Show file Open project: Christof/afterglow

Public Methods

Method Description
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.

Method Details

CreateMatrixParameter() public method

Creates a matrix effect parameter for the given semantic.
public CreateMatrixParameter ( string semanticName ) : SemanticEffectParameter
semanticName string Name of the semantic.
return SemanticEffectParameter

CreateObjectRenderer() public method

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.
return IObjectRenderer

CreateRenderWindow() public method

Creates a new render window.
public CreateRenderWindow ( Control control ) : IRenderWindow
control System.Windows.Forms.Control The control in which the content will be rendered.
return IRenderWindow

CreateTexture() public method

Creates a new texture from the given file.
public CreateTexture ( string filename ) : ITexture
filename string The filename.
return ITexture

CreateTextureParameter() public method

Creates a texture effect parameter.
public CreateTextureParameter ( string semanticName, ITexture texture ) : SemanticEffectParameter
semanticName string Name of the semantic.
texture ITexture The texture.
return SemanticEffectParameter

GetBufferService() public method

Gets a buffer service to create buffer bindings.
public GetBufferService ( ) : IBufferService
return IBufferService

GetEffectCompiler() public method

Gets the effect compiler.
public GetEffectCompiler ( ) : IEffectCompiler
return IEffectCompiler