Browse Source

Doc++

pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
38ef891682
  1. 8
      doc/snippets/MagnumGL.cpp
  2. 4
      src/Magnum/Platform/Sdl2Application.h

8
doc/snippets/MagnumGL.cpp

@ -808,10 +808,12 @@ GL::DebugOutput::setEnabled(
GL::DebugOutput::Source::Api, GL::DebugOutput::Type::Other, {131185}, false); GL::DebugOutput::Source::Api, GL::DebugOutput::Type::Other, {131185}, false);
{ {
GL::DebugGroup group{GL::DebugGroup::Source::Application, 42, "Scene rendering"}; GL::DebugGroup group{GL::DebugGroup::Source::Application, 42,
"Scene rendering"};
GL::DebugMessage::insert(GL::DebugMessage::Source::Application, GL::DebugMessage::Type::Marker, GL::DebugMessage::insert(GL::DebugMessage::Source::Application,
1337, GL::DebugOutput::Severity::Notification, "Rendering transparent mesh"); GL::DebugMessage::Type::Marker, 1337,
GL::DebugOutput::Severity::Notification, "Rendering a transparent mesh");
GL::Renderer::enable(GL::Renderer::Feature::Blending); GL::Renderer::enable(GL::Renderer::Feature::Blending);
mesh.draw(shader); mesh.draw(shader);

4
src/Magnum/Platform/Sdl2Application.h

@ -1063,10 +1063,10 @@ class Sdl2Application::GLConfiguration {
*/ */
Debug = SDL_GL_CONTEXT_DEBUG_FLAG, Debug = SDL_GL_CONTEXT_DEBUG_FLAG,
/** Create context with robust access */ /** Context with robust access */
RobustAccess = SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG, RobustAccess = SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG,
/** Create context with reset isolation */ /** Context with reset isolation */
ResetIsolation = SDL_GL_CONTEXT_RESET_ISOLATION_FLAG ResetIsolation = SDL_GL_CONTEXT_RESET_ISOLATION_FLAG
}; };

Loading…
Cancel
Save