]> git.tdb.fi Git - libs/gui.git/blob - source/gbase/simplewindow.cpp
aa34c04cfa046eec2bceb92df1e1070a9f8ae6b1
[libs/gui.git] / source / gbase / simplewindow.cpp
1 /* $Id$
2
3 This file is part of libmspgbase
4 Copyright © 2008  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "simplewindow.h"
9
10 namespace Msp {
11 namespace Graphics {
12
13 SimpleWindow::SimpleWindow(unsigned w, unsigned h):
14         Window(dpy, w, h)
15 { }
16
17
18 SimpleGLWindow::SimpleGLWindow(unsigned w, unsigned h):
19         SimpleWindow(w, h),
20         gl_ctx(*this)
21 { }
22
23 void SimpleGLWindow::swap_buffers()
24 {
25         gl_ctx.swap_buffers();
26 }
27
28 } // namespace Graphics
29 } // namespace Msp