]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/glcanvas.h
Use wxGetTranslation() instead of _() in the public headers.
[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
83df96d6 8// Copyright: (c) Julian Smart, Wolfram Gloger
b73e73f9 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
db4c39a9
VZ
12#ifndef _WX_GLCANVAS_H_
13#define _WX_GLCANVAS_H_
14
498ace9e 15#include "wx/unix/glx11.h"
83df96d6 16
163b3ad7 17class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
83df96d6
JS
18{
19public:
dc3065a5
VZ
20 wxGLCanvas(wxWindow *parent,
21 wxWindowID id = wxID_ANY,
22 const int *attribList = NULL,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 long style = 0,
26 const wxString& name = wxGLCanvasName,
27 const wxPalette& palette = wxNullPalette);
28
29 bool Create(wxWindow *parent,
30 wxWindowID id = wxID_ANY,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 long style = 0,
34 const wxString& name = wxGLCanvasName,
35 const int *attribList = NULL,
36 const wxPalette& palette = wxNullPalette);
b73e73f9 37
498ace9e
VZ
38 // implement wxGLCanvasX11 methods
39 // --------------------------------
b73e73f9 40
498ace9e 41 virtual Window GetXWindow() const;
b73e73f9 42
dc3065a5
VZ
43protected:
44 virtual int GetColourIndex(const wxColour& col);
b73e73f9 45
dc3065a5 46 DECLARE_CLASS(wxGLCanvas)
83df96d6
JS
47};
48
dc3065a5 49#endif // _WX_GLCANVAS_H_