MCPcopy Create free account
hub / github.com/cginternals/globjects / printStatus

Method printStatus

source/globjects/source/Framebuffer.cpp:346–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void Framebuffer::printStatus(bool onlyErrors) const
347{
348 GLenum status = checkStatus();
349
350 if (onlyErrors && status == GL_FRAMEBUFFER_COMPLETE) return;
351
352 if (status == GL_FRAMEBUFFER_COMPLETE)
353 {
354 info() << glbinding::Meta::getString(GL_FRAMEBUFFER_COMPLETE);
355 }
356 else
357 {
358 std::stringstream ss;
359 ss.flags(std::ios::hex | std::ios::showbase);
360 ss << static_cast<unsigned int>(status);
361
362 critical() << glbinding::Meta::getString(status) << " (" << ss.str() << ")";
363 }
364}
365
366void Framebuffer::addAttachment(FramebufferAttachment * attachment)
367{

Callers

nothing calls this directly

Calls 4

infoFunction · 0.85
getStringFunction · 0.85
criticalFunction · 0.85
strMethod · 0.80

Tested by

no test coverage detected