2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-01-26 12:20:50 -05:00
|
|
|
// Name: wx/x11/glcanvas.h
|
2004-05-23 10:56:36 -04:00
|
|
|
// Purpose: wxGLCanvas, for using OpenGL with wxWidgets 2.0 for Motif.
|
2002-02-05 11:34:33 -05: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 12:20:50 -05:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2004-07-25 12:36:51 -04:00
|
|
|
#ifndef _WX_GLCANVAS_H_
|
|
|
|
#define _WX_GLCANVAS_H_
|
|
|
|
|
2007-04-15 19:06:45 -04:00
|
|
|
#include "wx/unix/glx11.h"
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2007-12-11 20:35:53 -05:00
|
|
|
class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
public:
|
2007-04-10 13:38:55 -04: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 12:20:50 -05:00
|
|
|
|
2007-04-15 19:06:45 -04:00
|
|
|
// implement wxGLCanvasX11 methods
|
|
|
|
// --------------------------------
|
2006-01-26 12:20:50 -05:00
|
|
|
|
2007-04-15 19:06:45 -04:00
|
|
|
virtual Window GetXWindow() const;
|
2006-01-26 12:20:50 -05:00
|
|
|
|
2007-04-10 13:38:55 -04:00
|
|
|
protected:
|
|
|
|
virtual int GetColourIndex(const wxColour& col);
|
2006-01-26 12:20:50 -05:00
|
|
|
|
2007-04-10 13:38:55 -04:00
|
|
|
DECLARE_CLASS(wxGLCanvas)
|
2002-02-05 11:34:33 -05:00
|
|
|
};
|
|
|
|
|
2007-04-10 13:38:55 -04:00
|
|
|
#endif // _WX_GLCANVAS_H_
|