MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / GLSetObjectLabel

Function GLSetObjectLabel

deps/LLGL/sources/Renderer/OpenGL/GLObjectUtils.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#endif // /GL_KHR_debug
32
33void GLSetObjectLabel(GLenum identifier, GLuint name, const char* label)
34{
35 #ifdef GL_KHR_debug
36 if (HasExtension(GLExt::KHR_debug))
37 {
38 if (label != nullptr)
39 glObjectLabel(identifier, name, GetCroppedLength(label), label);
40 else
41 glObjectLabel(identifier, name, 0, nullptr);
42 }
43 #endif // /GL_KHR_debug
44}
45
46void GLSetObjectLabelSubscript(GLenum identifier, GLuint name, const char* label, const char* subscript)
47{

Callers 10

GLSetObjectLabelIndexedFunction · 0.85
SetNameMethod · 0.85
SetNameMethod · 0.85
SetNameMethod · 0.85
SetNameMethod · 0.85
SetNameMethod · 0.85
SetNameMethod · 0.85
SetNameMethod · 0.85
SetNameMethod · 0.85

Calls 2

GetCroppedLengthFunction · 0.85
HasExtensionFunction · 0.50

Tested by

no test coverage detected