C# Class Glare.Graphics.VertexArray

Inheritance: GraphicsResource
ファイルを表示 Open project: Burton-Radons/Alexandria Class Usage Examples

Public Methods

Method Description
Bind ( ProgramAttribute attribute, GraphicsBuffer buffer, int offsetInBytes, System.Text.Format format, int stride ) : void
VertexArray ( System.Program program ) : System

Protected Methods

Method Description
DisposeBase ( ) : void

Private Methods

Method Description
AllocateId ( ) : int

Get the buffer to bind this to.

Get the zero-based index of the Channel to bind to.

Get the name of the channel to bind to,

Get the offset in bytes from the start of the Buffer to the attribute of the first vertex.

Get the data format of the attribute. This must be a member of VectorFormats.

Get the number of bytes between each attribute value, or 0 to use the size of the Format.

Lock ( ) : VertexArrayLock

Method Details

Bind() public method

public Bind ( ProgramAttribute attribute, GraphicsBuffer buffer, int offsetInBytes, System.Text.Format format, int stride ) : void
attribute ProgramAttribute
buffer GraphicsBuffer
offsetInBytes int
format System.Text.Format
stride int
return void

DisposeBase() protected method

protected DisposeBase ( ) : void
return void

VertexArray() public method

public VertexArray ( System.Program program ) : System
program System.Program
return System