~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to library/canvas/src/mdc_canvas_view_glx.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _MDC_CANVAS_VIEW_GLX_H_
 
2
#define _MDC_CANVAS_VIEW_GLX_H_
 
3
 
 
4
#include "mdc_canvas_view_opengl.h"
 
5
#include "mdc_canvas_view.h"
 
6
 
 
7
#include <X11/Xlib.h>
 
8
 
 
9
#include <GL/gl.h>
 
10
#include <GL/glx.h>
 
11
#include <GL/glxext.h>
 
12
 
 
13
namespace mdc {
 
14
std::string detect_opengl_version();
 
15
  
 
16
 
 
17
class GLXCanvasView : public OpenGLCanvasView 
 
18
{
 
19
public:
 
20
  GLXCanvasView(Display *dpy, Window win, Visual *visual, int width, int height);
 
21
  virtual ~GLXCanvasView();
 
22
 
 
23
  virtual bool initialize();
 
24
 
 
25
  virtual void make_current();
 
26
  virtual void remove_current();
 
27
  virtual void swap_buffers();
 
28
 
 
29
  virtual void update_view_size(int, int);
 
30
 
 
31
  
 
32
protected:
 
33
  GLXContext _glxcontext;
 
34
  Display *_display;
 
35
  Window _window;
 
36
  
 
37
  Visual *_visual;
 
38
};
 
39
 
 
40
};
 
41
 
 
42
#endif /* _MDC_CANVAS_VIEW_GLX_H_ */