2002-02-05 16:34:33 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-01-26 17:20:50 +00:00
|
|
|
// Name: wx/x11/glcanvas.h
|
2004-05-23 14:56:36 +00:00
|
|
|
// Purpose: wxGLCanvas, for using OpenGL with wxWidgets 2.0 for Motif.
|
2002-02-05 16:34:33 +00:00
|
|
|
// Uses the GLX extension.
|
|
|
|
// Author: Julian Smart and Wolfram Gloger
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1995, 1999
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart, Wolfram Gloger
|
2006-01-26 17:20:50 +00:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 16:34:33 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2004-07-25 16:36:51 +00:00
|
|
|
#ifndef _WX_GLCANVAS_H_
|
|
|
|
#define _WX_GLCANVAS_H_
|
|
|
|
|
2007-04-15 23:06:45 +00:00
|
|
|
#include "wx/unix/glx11.h"
|
2002-02-05 16:34:33 +00:00
|
|
|
|
2007-12-12 01:35:53 +00:00
|
|
|
class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
|
2002-02-05 16:34:33 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-04-10 17:38:55 +00:00
|
|
|
wxGLCanvas(wxWindow *parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const int *attribList = NULL,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxGLCanvasName,
|
|
|
|
const wxPalette& palette = wxNullPalette);
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxGLCanvasName,
|
|
|
|
const int *attribList = NULL,
|
|
|
|
const wxPalette& palette = wxNullPalette);
|
2006-01-26 17:20:50 +00:00
|
|
|
|
2007-04-15 23:06:45 +00:00
|
|
|
// implement wxGLCanvasX11 methods
|
|
|
|
// --------------------------------
|
2006-01-26 17:20:50 +00:00
|
|
|
|
2007-04-15 23:06:45 +00:00
|
|
|
virtual Window GetXWindow() const;
|
2006-01-26 17:20:50 +00:00
|
|
|
|
2007-04-10 17:38:55 +00:00
|
|
|
protected:
|
|
|
|
virtual int GetColourIndex(const wxColour& col);
|
2006-01-26 17:20:50 +00:00
|
|
|
|
2007-04-10 17:38:55 +00:00
|
|
|
DECLARE_CLASS(wxGLCanvas)
|
2002-02-05 16:34:33 +00:00
|
|
|
};
|
|
|
|
|
2007-04-10 17:38:55 +00:00
|
|
|
#endif // _WX_GLCANVAS_H_
|