1
/* GtkGLExt - OpenGL Extension to GTK+
2
* Copyright (C) 2002-2004 Naofumi Yasufuku
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
#ifndef __GTK_GL_WIDGET_H__
20
#define __GTK_GL_WIDGET_H__
24
#include <gdk/gdkgl.h>
26
#include <gtk/gtkwidget.h>
30
gboolean gtk_widget_set_gl_capability (GtkWidget *widget,
31
GdkGLConfig *glconfig,
32
GdkGLContext *share_list,
36
gboolean gtk_widget_is_gl_capable (GtkWidget *widget);
39
GdkGLConfig *gtk_widget_get_gl_config (GtkWidget *widget);
41
GdkGLContext *gtk_widget_create_gl_context (GtkWidget *widget,
42
GdkGLContext *share_list,
46
GdkGLContext *gtk_widget_get_gl_context (GtkWidget *widget);
48
GdkGLWindow *gtk_widget_get_gl_window (GtkWidget *widget);
50
#define gtk_widget_get_gl_drawable(widget) \
51
GDK_GL_DRAWABLE (gtk_widget_get_gl_window (widget))
55
#endif /* __GTK_GL_WIDGET_H__ */