]> git.tdb.fi Git - libs/gl.git/blob - source/rendermode.cpp
Style update: add spaces around assignment operators
[libs/gl.git] / source / rendermode.cpp
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "rendermode.h"
9 #include "select.h"
10
11 namespace Msp {
12 namespace GL {
13
14 int render_mode(RenderMode rm)
15 {
16         int old_rm;
17         glGetIntegerv(GL_RENDER_MODE, &old_rm);
18         
19         int result = glRenderMode(rm);
20         
21         if(old_rm==SELECT)
22                 _parse_internal_select_records(result);
23         
24         return result;
25 }
26
27 } // namespace GL
28 } // namespace Msp