MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / programInfoLog

Function programInfoLog

pj_scene3D/widgets/src/gl/program.cpp:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41template <typename Functions>
42std::string programInfoLog(Functions& functions, GLuint program) {
43 GLint log_length = 0;
44 functions.glGetProgramiv(program, GL_INFO_LOG_LENGTH, &log_length);
45 if (log_length <= 1) {
46 return {};
47 }
48
49 std::string log(static_cast<std::size_t>(log_length), '\0');
50 GLsizei written = 0;
51 functions.glGetProgramInfoLog(program, log_length, &written, log.data());
52 if (written > 0) {
53 log.resize(static_cast<std::size_t>(written));
54 }
55 return trimNullTerminator(std::move(log));
56}
57
58template <typename Functions>
59GLuint compileShader(

Callers 2

fromSourcesMethod · 0.85
fromComputeSourceMethod · 0.85

Calls 3

trimNullTerminatorFunction · 0.85
dataMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected