C# Class CSharpGL.ZeroIndexBuffer

Wraps glDrawArrays(uint mode, int first, int count).
Inheritance: IndexBuffer
Show file Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Methods

Method Description
Bind ( ) : void

总共有多少个元素?

How many vertexes are there in total?

need to do nothing.

MapBuffer ( MapBufferAccess access, bool bind = true ) : IntPtr

Start to read/write buffer.

This will returns IntPtr.Zero as this buffer allocates no data in memory.

MapBufferRange ( int offset, int length, MapBufferRangeAccess access, bool bind = true ) : IntPtr

Start to read/write buffer.

This will returns IntPtr.Zero as this buffer allocates no data in memory.

Render ( RenderEventArgs arg ) : void

ToString ( ) : string

Unbind ( ) : void

need to do nothing.

UnmapBuffer ( bool unbind = true ) : bool

Stop reading/writing buffer.

need to do nothing.

Private Methods

Method Description
ZeroIndexBuffer ( DrawMode mode, int firstVertex, int vertexCount, int primCount = 1 ) : System

Wraps glDrawArrays(uint mode, int first, int count).

Method Details

Bind() public method

总共有多少个元素?

How many vertexes are there in total?

need to do nothing.
public Bind ( ) : void
return void

MapBuffer() public method

Start to read/write buffer.

This will returns IntPtr.Zero as this buffer allocates no data in memory.

public MapBuffer ( MapBufferAccess access, bool bind = true ) : IntPtr
access MapBufferAccess
bind bool
return System.IntPtr

MapBufferRange() public method

Start to read/write buffer.

This will returns IntPtr.Zero as this buffer allocates no data in memory.

public MapBufferRange ( int offset, int length, MapBufferRangeAccess access, bool bind = true ) : IntPtr
offset int
length int
access MapBufferRangeAccess
bind bool
return System.IntPtr

Render() public method

public Render ( RenderEventArgs arg ) : void
arg RenderEventArgs
return void

ToString() public method

public ToString ( ) : string
return string

Unbind() public method

need to do nothing.
public Unbind ( ) : void
return void

UnmapBuffer() public method

Stop reading/writing buffer.

need to do nothing.

public UnmapBuffer ( bool unbind = true ) : bool
unbind bool
return bool