]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/glcanvas.h
popup activation scope and l&f
[wxWidgets.git] / include / wx / x11 / glcanvas.h
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
b73e73f9 2// Name: wx/x11/glcanvas.h
77ffb593 3// Purpose: wxGLCanvas, for using OpenGL with wxWidgets 2.0 for Motif.
83df96d6
JS
4// Uses the GLX extension.
5// Author: Julian Smart and Wolfram Gloger
6// Modified by:
7// Created: 1995, 1999
8// RCS-ID: $Id$
9// Copyright: (c) Julian Smart, Wolfram Gloger
b73e73f9 10// Licence: wxWindows licence
83df96d6
JS
11/////////////////////////////////////////////////////////////////////////////
12
db4c39a9
VZ
13#ifndef _WX_GLCANVAS_H_
14#define _WX_GLCANVAS_H_
15
498ace9e 16#include "wx/unix/glx11.h"
83df96d6 17
163b3ad7 18class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
83df96d6
JS
19{
20public:
dc3065a5
VZ
21 wxGLCanvas(wxWindow *parent,
22 wxWindowID id = wxID_ANY,
23 const int *attribList = NULL,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = 0,
27 const wxString& name = wxGLCanvasName,
28 const wxPalette& palette = wxNullPalette);
29
30 bool Create(wxWindow *parent,
31 wxWindowID id = wxID_ANY,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxString& name = wxGLCanvasName,
36 const int *attribList = NULL,
37 const wxPalette& palette = wxNullPalette);
b73e73f9 38
498ace9e
VZ
39 // implement wxGLCanvasX11 methods
40 // --------------------------------
b73e73f9 41
498ace9e 42 virtual Window GetXWindow() const;
b73e73f9 43
dc3065a5
VZ
44protected:
45 virtual int GetColourIndex(const wxColour& col);
b73e73f9 46
dc3065a5 47 DECLARE_CLASS(wxGLCanvas)
83df96d6
JS
48};
49
dc3065a5 50#endif // _WX_GLCANVAS_H_