]> git.tdb.fi Git - libs/gui.git/blob - source/gbase/simplewindow.cpp
Add tick() method to SimpleWindow
[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, bool fs):
14         Window(dpy, w, h, fs)
15 { }
16
17 void SimpleWindow::tick()
18 {
19         dpy.tick();
20 }
21
22
23 SimpleGLWindow::SimpleGLWindow(unsigned w, unsigned h, bool fs):
24         SimpleWindow(w, h, fs),
25         gl_ctx(*this)
26 { }
27
28 void SimpleGLWindow::swap_buffers()
29 {
30         gl_ctx.swap_buffers();
31 }
32
33 } // namespace Graphics
34 } // namespace Msp