C# Класс CSharpGL.ZeroIndexBuffer

Wraps glDrawArrays(uint mode, int first, int count).
Наследование: IndexBuffer
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

Приватные методы

Метод Описание
ZeroIndexBuffer ( DrawMode mode, int firstVertex, int vertexCount, int primCount = 1 ) : System

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

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

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

总共有多少个元素?

How many vertexes are there in total?

need to do nothing.
public Bind ( ) : void
Результат void

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

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
Результат System.IntPtr

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

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
Результат System.IntPtr

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

public Render ( RenderEventArgs arg ) : void
arg RenderEventArgs
Результат void

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

public ToString ( ) : string
Результат string

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

need to do nothing.
public Unbind ( ) : void
Результат void

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

Stop reading/writing buffer.

need to do nothing.

public UnmapBuffer ( bool unbind = true ) : bool
unbind bool
Результат bool