MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / Initialize

Method Initialize

GTE/Graphics/GL46/GL46Buffer.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void GL46Buffer::Initialize()
54{
55 glBindBuffer(mType, mGLHandle);
56
57 // Access the buffer.
58 auto buffer = GetBuffer();
59
60 // Create and initialize a buffer.
61 glBufferData(mType, buffer->GetNumBytes(), buffer->GetData(), mUsage);
62
63 glBindBuffer(mType, 0);
64}
65
66bool GL46Buffer::Update()
67{

Callers

nothing calls this directly

Calls 4

glBindBufferFunction · 0.85
glBufferDataFunction · 0.85
GetNumBytesMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected