1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>gtkglextmm: gdkmm/gl/drawable.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
<h1>gdkmm/gl/drawable.h</h1><a href="drawable_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span>
00002 <span class="comment">// Generated by gtkmmproc -- DO NOT MODIFY!</span>
00003 <span class="preprocessor">#ifndef _GDKMM_GL_DRAWABLE_H</span>
00004 <span class="preprocessor"></span><span class="preprocessor">#define _GDKMM_GL_DRAWABLE_H</span>
00005 <span class="preprocessor"></span>
00006 <span class="preprocessor">#include <glibmm.h></span>
00007
00008 <span class="comment">// -*- C++ -*-</span>
00009 <span class="comment">/* gdkglextmm - C++ Wrapper for GdkGLExt</span>
00010 <span class="comment"> * Copyright (C) 2002-2003 Naofumi Yasufuku</span>
00011 <span class="comment"> *</span>
00012 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00013 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
00014 <span class="comment"> * License as published by the Free Software Foundation; either</span>
00015 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
00016 <span class="comment"> *</span>
00017 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
00018 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00019 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
00020 <span class="comment"> * Lesser General Public License for more details.</span>
00021 <span class="comment"> *</span>
00022 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
00023 <span class="comment"> * License along with this library; if not, write to the Free Software</span>
00024 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.</span>
00025 <span class="comment"> */</span>
00026
00027 <span class="preprocessor">#include <glibmm/interface.h></span>
00028
00029 <span class="preprocessor">#include <<a class="code" href="gdkglext_2gdkmm_2gl_2defs_8h.html">gdkmm/gl/defs.h</a>></span>
00030 <span class="preprocessor">#include <<a class="code" href="config_8h.html">gdkmm/gl/config.h</a>></span>
00031 <span class="preprocessor">#include <<a class="code" href="context_8h.html">gdkmm/gl/context.h</a>></span>
00032
00033 <span class="preprocessor">#include <GL/gl.h></span>
00034
00035
00036 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
00037 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_GdkGLDrawable GdkGLDrawable;
00038 <span class="keyword">typedef</span> <span class="keyword">struct </span>_GdkGLDrawableClass GdkGLDrawableClass;
00039 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span>
00040
00041
00042 <span class="keyword">namespace </span>Gdk
00043 {
00044
00045 <span class="keyword">namespace </span>GL
00046 { <span class="keyword">class </span>Drawable_Class; } <span class="comment">// namespace GL</span>
00047
00048 } <span class="comment">// namespace Gdk</span>
00049 <span class="keyword">namespace </span><a class="code" href="classGdk.html">Gdk</a>
00050 {
00051 <span class="keyword">namespace </span><a class="code" href="classGL.html">GL</a>
00052 {
00053
00054 <span class="keyword">class </span>Context;
00055
<a name="l00065"></a><a class="code" href="classGdk_1_1GL_1_1Drawable.html">00065</a> <span class="keyword">class </span><a class="code" href="classGdk_1_1GL_1_1Drawable.html">Drawable</a> : <span class="keyword">public</span> Glib::Interface
00066 {
00067
00068 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
00069 <span class="preprocessor"></span>
00070 <span class="keyword">public</span>:
00071 <span class="keyword">typedef</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html">Drawable</a> CppObjectType;
00072 <span class="keyword">typedef</span> Drawable_Class CppClassType;
00073 <span class="keyword">typedef</span> GdkGLDrawable BaseObjectType;
00074 <span class="keyword">typedef</span> GdkGLDrawableClass BaseClassType;
00075
00076 <span class="keyword">private</span>:
00077 <span class="keyword">friend</span> <span class="keyword">class </span>Drawable_Class;
00078 <span class="keyword">static</span> CppClassType drawable_class_;
00079
00080 <span class="comment">// noncopyable</span>
00081 <a class="code" href="classGdk_1_1GL_1_1Drawable.html">Drawable</a>(<span class="keyword">const</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html">Drawable</a>&);
00082 <a class="code" href="classGdk_1_1GL_1_1Drawable.html">Drawable</a>& operator=(<span class="keyword">const</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html">Drawable</a>&);
00083
00084 <span class="keyword">protected</span>:
00085 <a class="code" href="classGdk_1_1GL_1_1Drawable.html">Drawable</a>(); <span class="comment">// you must derive from this class</span>
00086 <span class="keyword">explicit</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html">Drawable</a>(GdkGLDrawable* castitem);
00087
00088 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span>
00089
00090 <span class="keyword">public</span>:
00091 <span class="keyword">virtual</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a0">~Drawable</a>();
00092
00093 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e0">add_interface</a>(GType gtype_implementer);
00094
00095 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
00096 <span class="preprocessor"></span> <span class="keyword">static</span> GType get_type() G_GNUC_CONST;
00097 <span class="keyword">static</span> GType get_base_type() G_GNUC_CONST;
00098 <span class="preprocessor">#endif</span>
00099 <span class="preprocessor"></span>
<a name="l00101"></a><a class="code" href="classGdk_1_1GL_1_1Drawable.html#a1">00101</a> GdkGLDrawable* <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a1">gobj</a>() { <span class="keywordflow">return</span> reinterpret_cast<GdkGLDrawable*>(gobject_); }
00102
<a name="l00104"></a><a class="code" href="classGdk_1_1GL_1_1Drawable.html#a2">00104</a> <span class="keyword">const</span> GdkGLDrawable* <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a1">gobj</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> reinterpret_cast<GdkGLDrawable*>(gobject_); }
00105
00106 <span class="keyword">private</span>:
00107
00108
00109 <span class="keyword">public</span>:
00110
00111
00116 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a3">make_current</a>(<span class="keyword">const</span> Glib::RefPtr<Context>& glcontext);
00117
00118
00123 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a4">is_double_buffered</a>() <span class="keyword">const</span>;
00124
00125
00128 <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a5">swap_buffers</a>();
00129
00130
00133 <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a6">wait_gl</a>();
00134
00135
00138 <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a7">wait_gdk</a>();
00139
00140
00145 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a8">gl_begin</a>(<span class="keyword">const</span> Glib::RefPtr<Context>& glcontext);
00146
00147
00150 <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a9">gl_end</a>();
00151
00152
00156 Glib::RefPtr<Config> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a10">get_gl_config</a>();
00157
00161 Glib::RefPtr<const Config> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a10">get_gl_config</a>() <span class="keyword">const</span>;
00162
00163
00169 <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#a12">get_size</a>(<span class="keywordtype">int</span>& width, <span class="keywordtype">int</span>& height);
00170
00171
00175 <span class="keyword">static</span> Glib::RefPtr<Drawable> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e1">get_current</a>();
00176
00177 <span class="keyword">public</span>:
00178
00179
00186 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e2">draw_cube</a>(<span class="keywordtype">bool</span> solid, <span class="keywordtype">double</span> size);
00187
00188
00199 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e3">draw_sphere</a>(<span class="keywordtype">bool</span> solid, <span class="keywordtype">double</span> radius, <span class="keywordtype">int</span> slices, <span class="keywordtype">int</span> stacks);
00200
00201
00212 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e4">draw_cone</a>(<span class="keywordtype">bool</span> solid, <span class="keywordtype">double</span> base, <span class="keywordtype">double</span> height, <span class="keywordtype">int</span> slices, <span class="keywordtype">int</span> stacks);
00213
00214
00223 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e5">draw_torus</a>(<span class="keywordtype">bool</span> solid, <span class="keywordtype">double</span> inner_radius, <span class="keywordtype">double</span> outer_radius, <span class="keywordtype">int</span> nsides, <span class="keywordtype">int</span> rings);
00224
00225
00230 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e6">draw_tetrahedron</a>(<span class="keywordtype">bool</span> solid);
00231
00232
00237 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e7">draw_octahedron</a>(<span class="keywordtype">bool</span> solid);
00238
00239
00244 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e8">draw_dodecahedron</a>(<span class="keywordtype">bool</span> solid);
00245
00246
00252 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e9">draw_icosahedron</a>(<span class="keywordtype">bool</span> solid);
00253
00254
00261 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGdk_1_1GL_1_1Drawable.html#e10">draw_teapot</a>(<span class="keywordtype">bool</span> solid, <span class="keywordtype">double</span> scale);
00262
00263
00264 <span class="keyword">public</span>:
00265
00266 <span class="keyword">public</span>:
00267 <span class="comment">//C++ methods used to invoke GTK+ virtual functions:</span>
00268
00269 <span class="keyword">protected</span>:
00270 <span class="comment">//GTK+ Virtual Functions (override these to change behaviour):</span>
00271
00272 <span class="comment">//Default Signal Handlers::</span>
00273
00274
00275 };
00276
00289 } <span class="comment">// namespace GL</span>
00290 } <span class="comment">// namespace Gdk</span>
00291
00292
00293 <span class="keyword">namespace </span>Glib
00294 {
00295
00297 Glib::RefPtr<Gdk::GL::Drawable> wrap(GdkGLDrawable* object, <span class="keywordtype">bool</span> take_copy = <span class="keyword">false</span>);
00298
00299 } <span class="comment">// namespace Glib</span>
00300
00301 <span class="preprocessor">#endif </span><span class="comment">/* _GDKMM_GL_DRAWABLE_H */</span>
00302
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 20 22:46:32 2003 for gtkglextmm by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.4 </small></address>
</body>
</html>
|