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 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
|
<!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/config.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/config.h</h1><a href="config_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_CONFIG_H</span>
00004 <span class="preprocessor"></span><span class="preprocessor">#define _GDKMM_GL_CONFIG_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 <<a class="code" href="gdkglext_2gdkmm_2gl_2defs_8h.html">gdkmm/gl/defs.h</a>></span>
00028
00029 <span class="preprocessor">#ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00030 <span class="preprocessor"></span><span class="preprocessor">#include <gdkmm/screen.h></span>
00031 <span class="preprocessor">#endif // GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00032 <span class="preprocessor"></span><span class="preprocessor">#include <gdkmm/visual.h></span>
00033 <span class="preprocessor">#include <gdkmm/colormap.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>_GdkGLConfig GdkGLConfig;
00038 <span class="keyword">typedef</span> <span class="keyword">struct </span>_GdkGLConfigClass GdkGLConfigClass;
00039 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span>
00040
00041
<a name="l00042"></a><a class="code" href="namespaceGdk.html">00042</a> <span class="keyword">namespace </span>Gdk
00043 {
00044
<a name="l00045"></a><a class="code" href="namespaceGdk_1_1GL.html">00045</a> <span class="keyword">namespace </span>GL
00046 { <span class="keyword">class </span>Config_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
<a name="l00067"></a><a class="code" href="group__gdkmm__glEnums.html#a35">00067</a> <span class="keyword">enum</span> <a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a>
00068 {
00069 <a class="code" href="group__gdkmm__glEnums.html#a35a0">MODE_RGB</a> = 0,
00070 <a class="code" href="group__gdkmm__glEnums.html#a35a1">MODE_RGBA</a> = 0,
00071 <a class="code" href="group__gdkmm__glEnums.html#a35a2">MODE_INDEX</a> = 1 << 0,
00072 <a class="code" href="group__gdkmm__glEnums.html#a35a3">MODE_SINGLE</a> = 0,
00073 <a class="code" href="group__gdkmm__glEnums.html#a35a4">MODE_DOUBLE</a> = 1 << 1,
00074 <a class="code" href="group__gdkmm__glEnums.html#a35a5">MODE_STEREO</a> = 1 << 2,
00075 <a class="code" href="group__gdkmm__glEnums.html#a35a6">MODE_ALPHA</a> = 1 << 3,
00076 <a class="code" href="group__gdkmm__glEnums.html#a35a7">MODE_DEPTH</a> = 1 << 4,
00077 <a class="code" href="group__gdkmm__glEnums.html#a35a8">MODE_STENCIL</a> = 1 << 5,
00078 <a class="code" href="group__gdkmm__glEnums.html#a35a9">MODE_ACCUM</a> = 1 << 6,
00079 <a class="code" href="group__gdkmm__glEnums.html#a35a10">MODE_MULTISAMPLE</a> = 1 << 7
00080 };
00081
<a name="l00083"></a><a class="code" href="group__gdkmm__glEnums.html#a0">00083</a> <span class="keyword">inline</span> <a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a> <a class="code" href="group__gdkmm__glEnums.html#a0">operator|</a>(ConfigMode lhs, ConfigMode rhs)
00084 { <span class="keywordflow">return</span> static_cast<ConfigMode>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00085
<a name="l00087"></a><a class="code" href="group__gdkmm__glEnums.html#a1">00087</a> <span class="keyword">inline</span> <a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a> <a class="code" href="group__gdkmm__glEnums.html#a1">operator&</a>(ConfigMode lhs, ConfigMode rhs)
00088 { <span class="keywordflow">return</span> static_cast<ConfigMode>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00089
<a name="l00091"></a><a class="code" href="group__gdkmm__glEnums.html#a2">00091</a> <span class="keyword">inline</span> <a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a> <a class="code" href="group__gdkmm__glEnums.html#a2">operator^</a>(ConfigMode lhs, ConfigMode rhs)
00092 { <span class="keywordflow">return</span> static_cast<ConfigMode>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00093
<a name="l00095"></a><a class="code" href="group__gdkmm__glEnums.html#a3">00095</a> <span class="keyword">inline</span> <a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a> <a class="code" href="group__gdkmm__glEnums.html#a3">operator~</a>(ConfigMode flags)
00096 { <span class="keywordflow">return</span> static_cast<ConfigMode>(~static_cast<unsigned>(flags)); }
00097
<a name="l00099"></a><a class="code" href="group__gdkmm__glEnums.html#a4">00099</a> <span class="keyword">inline</span> <a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a>& <a class="code" href="group__gdkmm__glEnums.html#a4">operator|=</a>(ConfigMode& lhs, ConfigMode rhs)
00100 { <span class="keywordflow">return</span> (lhs = static_cast<ConfigMode>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00101
<a name="l00103"></a><a class="code" href="group__gdkmm__glEnums.html#a5">00103</a> <span class="keyword">inline</span> <a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a>& <a class="code" href="group__gdkmm__glEnums.html#a5">operator&=</a>(ConfigMode& lhs, ConfigMode rhs)
00104 { <span class="keywordflow">return</span> (lhs = static_cast<ConfigMode>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00105
<a name="l00107"></a><a class="code" href="group__gdkmm__glEnums.html#a6">00107</a> <span class="keyword">inline</span> <a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a>& <a class="code" href="group__gdkmm__glEnums.html#a6">operator^=</a>(ConfigMode& lhs, ConfigMode rhs)
00108 { <span class="keywordflow">return</span> (lhs = static_cast<ConfigMode>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00109
00110 } <span class="comment">// namespace GL</span>
00111
00112 } <span class="comment">// namespace Gdk</span>
00113
00114
00115 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
00116 <span class="preprocessor"></span><span class="keyword">namespace </span>Glib
00117 {
00118
00119 <span class="keyword">template</span> <>
00120 <span class="keyword">class </span>Value<Gdk::<a class="code" href="classGL.html">GL</a>::<a class="code" href="group__gdkmm__glEnums.html#a35">ConfigMode</a>> : <span class="keyword">public</span> <a class="code" href="classGlib.html">Glib</a>::Value_Flags<Gdk::GL::ConfigMode>
00121 {
00122 <span class="keyword">public</span>:
00123 <span class="keyword">static</span> GType value_type() G_GNUC_CONST;
00124 };
00125
00126 } <span class="comment">// namespace Glib</span>
00127 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span>
00128
00129
00130 <span class="keyword">namespace </span><a class="code" href="classGdk.html">Gdk</a>
00131 {
00132
00133 <span class="keyword">namespace </span><a class="code" href="classGL.html">GL</a>
00134 {
00135
00136
<a name="l00143"></a><a class="code" href="classGdk_1_1GL_1_1Config.html">00143</a> <span class="keyword">class </span><a class="code" href="classGdk_1_1GL_1_1Config.html">Config</a> : <span class="keyword">public</span> <a class="code" href="classGlib.html">Glib</a>::Object
00144 {
00145
00146 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
00147 <span class="preprocessor"></span>
00148 <span class="keyword">public</span>:
00149 <span class="keyword">typedef</span> <a class="code" href="classGdk_1_1GL_1_1Config.html">Config</a> CppObjectType;
00150 <span class="keyword">typedef</span> Config_Class CppClassType;
00151 <span class="keyword">typedef</span> GdkGLConfig BaseObjectType;
00152 <span class="keyword">typedef</span> GdkGLConfigClass BaseClassType;
00153
00154 <span class="keyword">private</span>: <span class="keyword">friend</span> <span class="keyword">class </span>Config_Class;
00155 <span class="keyword">static</span> CppClassType config_class_;
00156
00157 <span class="keyword">private</span>:
00158 <span class="comment">// noncopyable</span>
00159 <a class="code" href="classGdk_1_1GL_1_1Config.html#b0">Config</a>(<span class="keyword">const</span> <a class="code" href="classGdk_1_1GL_1_1Config.html">Config</a>&);
00160 <a class="code" href="classGdk_1_1GL_1_1Config.html">Config</a>& operator=(<span class="keyword">const</span> <a class="code" href="classGdk_1_1GL_1_1Config.html">Config</a>&);
00161
00162 <span class="keyword">protected</span>:
00163 <span class="keyword">explicit</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#b0">Config</a>(<span class="keyword">const</span> Glib::ConstructParams& construct_params);
00164 <span class="keyword">explicit</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#b0">Config</a>(GdkGLConfig* castitem);
00165
00166 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span>
00167
00168 <span class="keyword">public</span>:
00169 <span class="keyword">virtual</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a0">~Config</a>();
00170
00171 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
00172 <span class="preprocessor"></span> <span class="keyword">static</span> GType get_type() G_GNUC_CONST;
00173 <span class="keyword">static</span> GType get_base_type() G_GNUC_CONST;
00174 <span class="preprocessor">#endif</span>
00175 <span class="preprocessor"></span>
<a name="l00177"></a><a class="code" href="classGdk_1_1GL_1_1Config.html#a1">00177</a> GdkGLConfig* <a class="code" href="classGdk_1_1GL_1_1Config.html#a1">gobj</a>() { <span class="keywordflow">return</span> reinterpret_cast<GdkGLConfig*>(gobject_); }
00178
<a name="l00180"></a><a class="code" href="classGdk_1_1GL_1_1Config.html#a2">00180</a> <span class="keyword">const</span> GdkGLConfig* <a class="code" href="classGdk_1_1GL_1_1Config.html#a1">gobj</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> reinterpret_cast<GdkGLConfig*>(gobject_); }
00181
00182 GdkGLConfig* <a class="code" href="classGdk_1_1GL_1_1Config.html#a3">gobj_copy</a>();
00183
00184 <span class="keyword">private</span>:
00185
00186
00187 <span class="keyword">protected</span>:
00188
00189 <span class="keyword">explicit</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#b0">Config</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>* attrib_list);
00190 <span class="preprocessor">#ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00191 <span class="preprocessor"></span> <a class="code" href="classGdk_1_1GL_1_1Config.html#b0">Config</a>(<span class="keyword">const</span> Glib::RefPtr<const Gdk::Screen>& screen,
00192 <span class="keyword">const</span> <span class="keywordtype">int</span>* attrib_list);
00193 <span class="preprocessor">#endif // GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00194 <span class="preprocessor"></span> <span class="keyword">explicit</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#b0">Config</a>(ConfigMode mode);
00195 <span class="preprocessor">#ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00196 <span class="preprocessor"></span> <a class="code" href="classGdk_1_1GL_1_1Config.html#b0">Config</a>(<span class="keyword">const</span> Glib::RefPtr<const Gdk::Screen>& screen,
00197 ConfigMode mode);
00198 <span class="preprocessor">#endif // GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00199 <span class="preprocessor"></span>
00200 <span class="keyword">public</span>:
00201
00210 <span class="keyword">static</span> Glib::RefPtr<Config> <a class="code" href="classGdk_1_1GL_1_1Config.html#e0">create</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>* attrib_list);
00211
00212 <span class="preprocessor">#ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00213 <span class="preprocessor"></span> <span class="keyword">static</span> Glib::RefPtr<Config> <a class="code" href="classGdk_1_1GL_1_1Config.html#e0">create</a>(<span class="keyword">const</span> Glib::RefPtr<const Gdk::Screen>& screen,
00214 <span class="keyword">const</span> <span class="keywordtype">int</span>* attrib_list);
00215 <span class="preprocessor">#endif // GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00216 <span class="preprocessor"></span>
00224 <span class="keyword">static</span> Glib::RefPtr<Config> <a class="code" href="classGdk_1_1GL_1_1Config.html#e0">create</a>(ConfigMode mode);
00225
00226 <span class="preprocessor">#ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00227 <span class="preprocessor"></span> <span class="keyword">static</span> Glib::RefPtr<Config> <a class="code" href="classGdk_1_1GL_1_1Config.html#e0">create</a>(<span class="keyword">const</span> Glib::RefPtr<const Gdk::Screen>& screen,
00228 ConfigMode mode);
00229 <span class="preprocessor">#endif // GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00230 <span class="preprocessor"></span>
00231 <span class="keyword">public</span>:
00232
00233 <span class="preprocessor">#ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00234 <span class="preprocessor"></span>
00238 Glib::RefPtr<Gdk::Screen> <a class="code" href="classGdk_1_1GL_1_1Config.html#a4">get_screen</a>();
00239
00243 Glib::RefPtr<const Gdk::Screen> <a class="code" href="classGdk_1_1GL_1_1Config.html#a4">get_screen</a>() <span class="keyword">const</span>;
00244
00245 <span class="preprocessor">#endif // GDKGLEXTMM_MULTIHEAD_SUPPORT</span>
00246 <span class="preprocessor"></span>
00247
00253 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a6">get_attrib</a>(<span class="keywordtype">int</span> attribute, <span class="keywordtype">int</span>& value) <span class="keyword">const</span>;
00254
00255
00260 Glib::RefPtr<Gdk::Colormap> <a class="code" href="classGdk_1_1GL_1_1Config.html#a7">get_colormap</a>();
00261
00266 Glib::RefPtr<const Gdk::Colormap> <a class="code" href="classGdk_1_1GL_1_1Config.html#a7">get_colormap</a>() <span class="keyword">const</span>;
00267
00268
00273 Glib::RefPtr<Gdk::Visual> <a class="code" href="classGdk_1_1GL_1_1Config.html#a9">get_visual</a>();
00274
00279 Glib::RefPtr<const Gdk::Visual> <a class="code" href="classGdk_1_1GL_1_1Config.html#a9">get_visual</a>() <span class="keyword">const</span>;
00280
00281
00285 <span class="keywordtype">int</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a11">get_depth</a>() <span class="keyword">const</span>;
00286
00287
00295 <span class="keywordtype">int</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a12">get_layer_plane</a>() <span class="keyword">const</span>;
00296
00297
00301 <span class="keywordtype">int</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a13">get_n_aux_buffers</a>() <span class="keyword">const</span>;
00302
00303
00307 <span class="keywordtype">int</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a14">get_n_sample_buffers</a>() <span class="keyword">const</span>;
00308
00309
00314 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a15">is_rgba</a>() <span class="keyword">const</span>;
00315
00316
00321 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a16">is_double_buffered</a>() <span class="keyword">const</span>;
00322
00323
00327 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a17">is_stereo</a>() <span class="keyword">const</span>;
00328
00329
00333 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a18">has_alpha</a>() <span class="keyword">const</span>;
00334
00335
00339 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a19">has_depth_buffer</a>() <span class="keyword">const</span>;
00340
00341
00345 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a20">has_stencil_buffer</a>() <span class="keyword">const</span>;
00346
00347
00352 <span class="keywordtype">bool</span> <a class="code" href="classGdk_1_1GL_1_1Config.html#a21">has_accum_buffer</a>() <span class="keyword">const</span>;
00353
00354
00355 <span class="keyword">public</span>:
00356
00357 <span class="keyword">public</span>:
00358 <span class="comment">//C++ methods used to invoke GTK+ virtual functions:</span>
00359
00360 <span class="keyword">protected</span>:
00361 <span class="comment">//GTK+ Virtual Functions (override these to change behaviour):</span>
00362
00363 <span class="comment">//Default Signal Handlers::</span>
00364
00365
00366 };
00367
00368 } <span class="comment">// namespace GL</span>
00369 } <span class="comment">// namespace Gdk</span>
00370
00371
<a name="l00372"></a><a class="code" href="namespaceGlib.html">00372</a> <span class="keyword">namespace </span><a class="code" href="classGlib.html">Glib</a>
00373 {
00375 Glib::RefPtr<Gdk::GL::Config> wrap(GdkGLConfig* object, <span class="keywordtype">bool</span> take_copy = <span class="keyword">false</span>);
00376 }
00377
00378
00379 <span class="preprocessor">#endif </span><span class="comment">/* _GDKMM_GL_CONFIG_H */</span>
00380
</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>
|