~ubuntu-branches/ubuntu/gutsy/gtkglext/gutsy

« back to all changes in this revision

Viewing changes to gtk/gtkglwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2004-04-03 17:43:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040403174317-d5gb2d2gftaligp8
Tags: upstream-1.0.6
ImportĀ upstreamĀ versionĀ 1.0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GtkGLExt - OpenGL Extension to GTK+
 
2
 * Copyright (C) 2002-2004  Naofumi Yasufuku
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
17
 */
 
18
 
 
19
#ifndef __GTK_GL_WIDGET_H__
 
20
#define __GTK_GL_WIDGET_H__
 
21
 
 
22
#include <gdk/gdk.h>
 
23
 
 
24
#include <gdk/gdkgl.h>
 
25
 
 
26
#include <gtk/gtkwidget.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
gboolean      gtk_widget_set_gl_capability (GtkWidget    *widget,
 
31
                                            GdkGLConfig  *glconfig,
 
32
                                            GdkGLContext *share_list,
 
33
                                            gboolean      direct,
 
34
                                            int           render_type);
 
35
 
 
36
gboolean      gtk_widget_is_gl_capable     (GtkWidget    *widget);
 
37
 
 
38
 
 
39
GdkGLConfig  *gtk_widget_get_gl_config     (GtkWidget    *widget);
 
40
 
 
41
GdkGLContext *gtk_widget_create_gl_context (GtkWidget    *widget,
 
42
                                            GdkGLContext *share_list,
 
43
                                            gboolean      direct,
 
44
                                            int           render_type);
 
45
 
 
46
GdkGLContext *gtk_widget_get_gl_context    (GtkWidget    *widget);
 
47
 
 
48
GdkGLWindow  *gtk_widget_get_gl_window     (GtkWidget    *widget);
 
49
 
 
50
#define       gtk_widget_get_gl_drawable(widget)        \
 
51
  GDK_GL_DRAWABLE (gtk_widget_get_gl_window (widget))
 
52
 
 
53
G_END_DECLS
 
54
 
 
55
#endif /* __GTK_GL_WIDGET_H__ */