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

Method MapForWrite

GTE/Graphics/GL46/GL46Resource.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void* GL46Resource::MapForWrite(GLenum target)
19{
20 glBindBuffer(target, mGLHandle);
21 GLvoid* mapped = glMapBuffer(target, GL_WRITE_ONLY);
22 glBindBuffer(target, 0);
23 return mapped;
24}
25
26void GL46Resource::Unmap(GLenum target)
27{

Callers

nothing calls this directly

Calls 2

glBindBufferFunction · 0.85
glMapBufferFunction · 0.85

Tested by

no test coverage detected