Back to class index
IndexBuffer[Class Summary]
indexData
indexDataBytes
numIndices
gpuIndexDataBytes
indexType
primType
indexBuffer
name
ctor
~dtor
ctor
operator=(rhs)
Create(...) (+1 overload)
Deinit()
SetIndex(n,vertexIndex)
GetIndex(n)[const]
GetPointer(n) (+1 overload)
GetOffset(n)[const]
AllocateCpuMemory()
AllocateGpuMemory()
UpdateToGpu()
HasCpuMemory()[const]
CpuSizeBytes()[const]
HasGpuMemory()[const]
GpuSizeBytes()[const]
FreeCpuMemory()
FreeGpuMemory()
CpuPtr() (+1 overload)
SetNumIndices(size)
NumIndices()[const]
NumPrimitives()[const]
UsedSizeBytes()[const]
IndexSizeBytes()[const]
SaveToFile(handle)
LoadFromFile(...)
OptimizeForVertexCaches()
CompressIndices(allow8BitIndices)
Name()[const]
NumIndicesNeededToRenderNPrimitives(...)[static]
NumPrimivivesFromNIndices(...)[static]

IndexBuffer::UpdateToGpu

Syntax

void IndexBuffer::UpdateToGpu();

Copies the CPU-side index buffer data to the GPU memory.

Work in progress:

Todo: in void IndexBuffer::UpdateToGpu():
Differentiate between GL_STREAM_DRAW and GL_DYNAMIC_DRAW.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index