Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
linuxlxs_gl2.hpp
1 //////////////////////////////
2 //
3 // File: platform/linux/linuxlxs_gl2.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Feb 3 2013
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __LINUX_LXS_GL2_HPP_
15 #define __LINUX_LXS_GL2_HPP_
16 #include <string>
17 #include "lxs/system/lxs.hpp"
18 #include "linuxlxs.hpp"
19 namespace LxS
20 {
21  namespace System
22  {
23  //!@brief Class implementing OpenGL 2.0 interfacing, used in both Linux and OSX ports
24  class LinuxLxSGL2: public LxSGL2, public LinuxLxS
25  {
26  protected:
27  //void HandleCommand(int32_t cmd);
28  //void HandleInput(AInputEvent* event);
29 
30 
31  public:
32 
33  virtual ~LinuxLxSGL2();
34  //! constructor
35  LinuxLxSGL2(const char * _title, GLint _w, GLint h);
36  //!@brief Render root window
37  virtual void DrawFrame();
38  //!@brief Setup OPENGL context using GLX API
39  virtual void Init(); // called by ctor;
40  //!@brief Destroy OpenGL context
41  virtual void Deinit(); // called by dtor;
42  };
43  }
44 }
45 #endif