Mondschein Engine  0.3.0
visual.h
Go to the documentation of this file.
1 #ifndef WX_VISUAL_H_INCLUDED
2 #define WX_VISUAL_H_INCLUDED
3 
4 /* Mondschein Engine is a fast, powerful, and easy-to-use 3D realtime rendering engine.
5  *
6  * Copyright (C) 2009-2013 by Andreas Amereller
7  * E-Mail: andreas.amereller.dev@googlemail.com
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the Free
11  * Software Foundation; either version 3 of the License, or (at your option)
12  * any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17  * more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
24 
25 #include "wx_types.h"
26 #include "core/visual.h"
27 #include "core/context.h"
28 #include <wx/glcanvas.h>
29 
30 namespace mondschein
31 {
32  namespace display
33  {
37  class wx_Visual : virtual public Visual, virtual public renderer::Context
38  {
39  private:
40  wxGLCanvas *visual;
41  wxGLContext *wxcontext;
42 
43  public:
44  explicit wx_Visual();
45  explicit wx_Visual(const visual_attribs_t &_dsp,const renderer::context_attribs_t &_c,renderer::Renderer_p _r);
46  virtual ~wx_Visual();
47 
48  virtual void init();
49  virtual void update();
50  virtual void draw();
51  };
52  };
53 };
54 #endif // WX_VISUAL_H_INCLUDED