C# Class Afterglow.Graphics.GraphicStreams.XnaBufferBinding

Binds a IXnaBuffer to the device.
Inheritance: BufferBinding
Exibir arquivo Open project: Christof/afterglow

Public Methods

Method Description
Bind ( ) : void

Binds the buffer.

XnaBufferBinding ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device, IXnaBuffer buffer ) : Microsoft.Xna.Framework.Graphics

Initializes a new instance of the XnaBufferBinding class.

Private Methods

Method Description
CreateInputElement ( int slot ) : VertexElement

Creates the vertex element using the description.

This method sets the slot for the input assembler. It must be called before the first call to Bind.

Method Details

Bind() public method

Binds the buffer.
public Bind ( ) : void
return void

XnaBufferBinding() public method

Initializes a new instance of the XnaBufferBinding class.
public XnaBufferBinding ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device, IXnaBuffer buffer ) : Microsoft.Xna.Framework.Graphics
device Microsoft.Xna.Framework.Graphics.GraphicsDevice The device.
buffer IXnaBuffer The buffer.
return Microsoft.Xna.Framework.Graphics