Browse Source

Contexts: updated default window names.

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
0646a6a12e
  1. 2
      src/Contexts/AbstractXWindowContext.h
  2. 2
      src/Contexts/GlutWindowContext.h
  3. 2
      src/Contexts/GlxWindowContext.h
  4. 2
      src/Contexts/Sdl2WindowContext.h
  5. 2
      src/Contexts/XEglWindowContext.h

2
src/Contexts/AbstractXWindowContext.h

@ -58,7 +58,7 @@ class AbstractXWindowContext: public AbstractWindowContext {
* *
* Creates window with double-buffered OpenGL ES 2 context. * Creates window with double-buffered OpenGL ES 2 context.
*/ */
AbstractXWindowContext(AbstractContextHandler<Display*, VisualID, Window>* contextHandler, int& argc, char** argv, const std::string& title = "Magnum X/EGL context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600)); AbstractXWindowContext(AbstractContextHandler<Display*, VisualID, Window>* contextHandler, int& argc, char** argv, const std::string& title = "Magnum X window context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600));
/** /**
* @brief Destructor * @brief Destructor

2
src/Contexts/GlutWindowContext.h

@ -54,7 +54,7 @@ class GlutWindowContext: public AbstractWindowContext {
* *
* Creates double-buffered RGBA window with depth and stencil buffers. * Creates double-buffered RGBA window with depth and stencil buffers.
*/ */
GlutWindowContext(int& argc, char** argv, const std::string& title = "Magnum GLUT context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600)); GlutWindowContext(int& argc, char** argv, const std::string& title = "Magnum GLUT window context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600));
~GlutWindowContext(); ~GlutWindowContext();

2
src/Contexts/GlxWindowContext.h

@ -41,7 +41,7 @@ class GlxWindowContext: public AbstractXWindowContext {
* Creates window with double-buffered OpenGL 3.3 core context or * Creates window with double-buffered OpenGL 3.3 core context or
* OpenGL ES 2.0 context, if targetting OpenGL ES. * OpenGL ES 2.0 context, if targetting OpenGL ES.
*/ */
inline GlxWindowContext(int& argc, char** argv, const std::string& title = "Magnum GLX context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600)): AbstractXWindowContext(new GlxContextHandler, argc, argv, title, size) {} inline GlxWindowContext(int& argc, char** argv, const std::string& title = "Magnum GLX window context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600)): AbstractXWindowContext(new GlxContextHandler, argc, argv, title, size) {}
}; };
}} }}

2
src/Contexts/Sdl2WindowContext.h

@ -54,7 +54,7 @@ class Sdl2WindowContext: public AbstractWindowContext {
* Creates centered non-resizable window with double-buffered * Creates centered non-resizable window with double-buffered
* OpenGL 3.3 context with 24bit depth buffer. * OpenGL 3.3 context with 24bit depth buffer.
*/ */
Sdl2WindowContext(int argc, char** argv, const std::string& title = "Magnum SDL2 context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600)); Sdl2WindowContext(int argc, char** argv, const std::string& title = "Magnum SDL2 window context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600));
/** /**
* @brief Destructor * @brief Destructor

2
src/Contexts/XEglWindowContext.h

@ -40,7 +40,7 @@ class XEglWindowContext: public AbstractXWindowContext {
* *
* Creates window with double-buffered OpenGL ES 2 context. * Creates window with double-buffered OpenGL ES 2 context.
*/ */
inline XEglWindowContext(int& argc, char** argv, const std::string& title = "Magnum X/EGL context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600)): AbstractXWindowContext(new EglContextHandler, argc, argv, title, size) {} inline XEglWindowContext(int& argc, char** argv, const std::string& title = "Magnum X/EGL window context", const Math::Vector2<GLsizei>& size = Math::Vector2<GLsizei>(800, 600)): AbstractXWindowContext(new EglContextHandler, argc, argv, title, size) {}
}; };
}} }}

Loading…
Cancel
Save