File: namespaceGtk_1_1GL.html

package info (click to toggle)
gtkglextmm 1.0.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,556 kB
  • ctags: 1,882
  • sloc: sh: 8,380; cpp: 4,443; xml: 1,605; ansic: 832; makefile: 407; perl: 179
file content (224 lines) | stat: -rw-r--r-- 11,916 bytes parent folder | download
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
<!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: Gtk::GL Namespace Reference</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&nbsp;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&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
<h1>Gtk::GL Namespace Reference</h1>
<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classGtk_1_1GL_1_1DrawingArea.html">DrawingArea</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classGtk_1_1GL_1_1Widget.html">Widget</a></td></tr>

<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="namespaceGtk_1_1GL.html#a0">init_check</a> (int &amp;argc, char **&amp;argv)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="namespaceGtk_1_1GL.html#a1">init_check</a> (int *argc, char ***argv)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="namespaceGtk_1_1GL.html#a2">init</a> (int &amp;argc, char **&amp;argv)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="namespaceGtk_1_1GL.html#a3">init</a> (int *argc, char ***argv)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a3" doxytag="Gtk::GL::init" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void init </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int *&nbsp;</td>
          <td class="mdname" nowrap> <em>argc</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char ***&nbsp;</td>
          <td class="mdname" nowrap> <em>argv</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Initialize gtkglextmm library.<p>
Call this function before using any other gtkglextmm functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. <em>argc</em> and <em>argv</em> are adjusted accordingly so your own code will never see those standard arguments.<p>
This function will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call <a class="el" href="namespaceGtk_1_1GL.html#a0">Gtk::GL::init_check()</a> instead.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>argc</em>&nbsp;</td><td>Address of the <code>argc</code> parameter of your <code>main()</code> function. Changed if any arguments were handled. </td></tr>
    <tr><td valign=top><em>argv</em>&nbsp;</td><td>Address of the <code>argv</code> parameter of <code>main()</code>. Any parameters understood by <a class="el" href="namespaceGtk_1_1GL.html#a2">Gtk::GL::init()</a> are stripped before return. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="Gtk::GL::init" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void init </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>argc</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char **&amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>argv</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Initialize gtkglextmm library.<p>
Call this function before using any other gtkglextmm functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. <em>argc</em> and <em>argv</em> are adjusted accordingly so your own code will never see those standard arguments.<p>
This function will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call <a class="el" href="namespaceGtk_1_1GL.html#a0">Gtk::GL::init_check()</a> instead.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>argc</em>&nbsp;</td><td>Reference of the <code>argc</code> parameter of your <code>main()</code> function. Changed if any arguments were handled. </td></tr>
    <tr><td valign=top><em>argv</em>&nbsp;</td><td>Reference of the <code>argv</code> parameter of <code>main()</code>. Any parameters understood by <a class="el" href="namespaceGtk_1_1GL.html#a2">Gtk::GL::init()</a> are stripped before return. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="font_8cc-example.html#a4">font.cc</a>, <a class="el" href="gears_8cc-example.html#a10">gears.cc</a>, <a class="el" href="logo_8cc-example.html#a13">logo.cc</a>, <a class="el" href="pixmap-mixed_8cc-example.html#a27">pixmap-mixed.cc</a>, <a class="el" href="pixmap_8cc-example.html#a35">pixmap.cc</a>, <a class="el" href="shapes_8cc-example.html#a41">shapes.cc</a>, <a class="el" href="share-lists_8cc-example.html#a53">share-lists.cc</a>, <a class="el" href="simple-darea_8cc-example.html#a58">simple-darea.cc</a>, <a class="el" href="simple-mixed_8cc-example.html#a65">simple-mixed.cc</a>, and <a class="el" href="simple_8cc-example.html#a71">simple.cc</a>.</dl>    </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="Gtk::GL::init_check" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool init_check </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int *&nbsp;</td>
          <td class="mdname" nowrap> <em>argc</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char ***&nbsp;</td>
          <td class="mdname" nowrap> <em>argv</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Initialize gtkglextmm library.<p>
This function does the same work as <a class="el" href="namespaceGdk_1_1GL.html#a110">Gdk::GL::init()</a> with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns <code>false</code> on failure.<p>
This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>argc</em>&nbsp;</td><td>Address of the <code>argc</code> parameter of your <code>main()</code> function. Changed if any arguments were handled. </td></tr>
    <tr><td valign=top><em>argv</em>&nbsp;</td><td>Address of the <code>argv</code> parameter of <code>main()</code>. Any parameters understood by <a class="el" href="namespaceGtk_1_1GL.html#a2">Gtk::GL::init()</a> are stripped before return. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the library has been successfully initialized, <code>false</code> otherwise. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a0" doxytag="Gtk::GL::init_check" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool init_check </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>argc</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char **&amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>argv</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Initialize gtkglextmm library.<p>
This function does the same work as <a class="el" href="namespaceGdk_1_1GL.html#a110">Gdk::GL::init()</a> with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns <code>false</code> on failure.<p>
This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>argc</em>&nbsp;</td><td>Reference of the <code>argc</code> parameter of your <code>main()</code> function. Changed if any arguments were handled. </td></tr>
    <tr><td valign=top><em>argv</em>&nbsp;</td><td>Reference of the <code>argv</code> parameter of <code>main()</code>. Any parameters understood by <a class="el" href="namespaceGtk_1_1GL.html#a2">Gtk::GL::init()</a> are stripped before return. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the library has been successfully initialized, <code>false</code> otherwise. </dd></dl>
    </td>
  </tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Thu Nov 20 22:46:47 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>