Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/gtk/gtkglwidget.h
2 views
1
/* Copyright 2006 Guillaume Duhamel
2
Copyright 2006 Fabien Coulon
3
4
This file is part of Yabause.
5
6
Yabause is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
11
Yabause is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with Yabause; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef YUI_GL_H
22
#define YUI_GL_H
23
24
#include <gtk/gtk.h>
25
26
#ifdef HAVE_LIBGTKGLEXT
27
#include <GL/gl.h>
28
#include <gtk/gtkgl.h>
29
#endif
30
31
G_BEGIN_DECLS
32
33
#define YUI_GL_TYPE (yui_gl_get_type ())
34
#define YUI_GL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YUI_GL_TYPE, YuiGl))
35
#define YUI_GL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YUI_GL_TYPE, YuiGlClass))
36
#define IS_YUI_GL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YUI_GL_TYPE))
37
#define IS_YUI_GL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YUI_GL_TYPE))
38
39
typedef struct _YuiGl YuiGl;
40
typedef struct _YuiGlClass YuiGlClass;
41
42
struct _YuiGl
43
{
44
GtkDrawingArea hbox;
45
46
guint * pixels;
47
gint pixels_width;
48
gint pixels_height;
49
gint pixels_rowstride;
50
gint is_init;
51
};
52
53
struct _YuiGlClass
54
{
55
GtkDrawingAreaClass parent_class;
56
};
57
58
GType yui_gl_get_type (void);
59
GtkWidget * yui_gl_new (void);
60
61
void yui_gl_draw (YuiGl *);
62
void yui_gl_draw_pause (YuiGl *);
63
void yui_gl_dump_screen (YuiGl *);
64
65
G_END_DECLS
66
67
#endif
68
69