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

Function glMapBuffer

GTE/Graphics/GL46/GL46.cpp:3141–3160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3139}
3140
3141void* APIENTRY glMapBuffer(GLenum target, GLenum access)
3142{
3143 void* result;
3144 if (sglMapBuffer)
3145 {
3146 result = sglMapBuffer(target, access);
3147 ReportGLError("glMapBuffer");
3148 }
3149 else
3150 {
3151 ReportGLNullFunction("glMapBuffer");
3152 result = 0;
3153 }
3154
3155#if defined(GTE_ENABLE_GLTRACE)
3156 gsTrace.Call("glMapBuffer", "pointer",
3157 gsTrace.GetName(target), gsTrace.GetName(access));
3158#endif
3159 return result;
3160}
3161
3162GLboolean APIENTRY glUnmapBuffer(GLenum target)
3163{

Callers 1

MapForWriteMethod · 0.85

Calls 4

ReportGLErrorFunction · 0.85
ReportGLNullFunctionFunction · 0.85
CallMethod · 0.80
GetNameMethod · 0.80

Tested by

no test coverage detected