]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/simplewindow.cpp
Add decorations for things which should be exported from the library
[libs/gui.git] / source / graphics / simplewindow.cpp
1 #include "simplewindow.h"
2
3 namespace Msp {
4 namespace Graphics {
5
6 SimpleWindow::SimpleWindow(unsigned w, unsigned h, bool fs):
7         Window(dpy, w, h, fs)
8 { }
9
10 void SimpleWindow::tick()
11 {
12         dpy.tick();
13 }
14
15
16 SimpleGLWindow::SimpleGLWindow(unsigned w, unsigned h, bool fs):
17         SimpleWindow(w, h, fs),
18         gl_ctx(*this)
19 { }
20
21 void SimpleGLWindow::swap_buffers()
22 {
23         gl_ctx.swap_buffers();
24 }
25
26 } // namespace Graphics
27 } // namespace Msp