|
70 | 70 | </dl>
|
71 | 71 | <hr>
|
72 | 72 | Methods defined here:<br>
|
73 |
| -<dl><dt><a name="GLUTContext-__init__"><strong>__init__</strong></a>(self, width=500, height=400, title='PhysVis', *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl> |
| 73 | +<dl><dt><a name="GLUTContext-__init__"><strong>__init__</strong></a>(self, width=500, height=400, title='PhysVis', *args, **kwargs)</dt><dd><tt>Parameters:<br> |
| 74 | + <br> |
| 75 | +width — width of the display (window will be this plus borders)<br> |
| 76 | +height — height of the display<br> |
| 77 | +title — title of the window</tt></dd></dl> |
74 | 78 |
|
75 | 79 | <dl><dt><a name="GLUTContext-add_idle_func"><strong>add_idle_func</strong></a>(func)</dt></dl>
|
76 | 80 |
|
|
136 | 140 |
|
137 | 141 | <dl><dt><a name="GLUTContext-determine_perspective_matrix"><strong>determine_perspective_matrix</strong></a>(self)</dt></dl>
|
138 | 142 |
|
139 |
| -<dl><dt><a name="GLUTContext-gl_version_info"><strong>gl_version_info</strong></a>(self)</dt></dl> |
| 143 | +<dl><dt><a name="GLUTContext-gl_version_info"><strong>gl_version_info</strong></a>(self)</dt><dd><tt>Get some perhaps-misleading information about the OpenGL version.</tt></dd></dl> |
140 | 144 |
|
141 | 145 | <dl><dt><a name="GLUTContext-resize2d"><strong>resize2d</strong></a>(self, width, height)</dt><dd><tt>Callback that is called when window is resized.</tt></dd></dl>
|
142 | 146 |
|
|
161 | 165 | <hr>
|
162 | 166 | Data descriptors inherited from <a href="grcontext.html#GrContext">GrContext</a>:<br>
|
163 | 167 | <dl><dt><strong>background</strong></dt>
|
| 168 | +<dd><tt>The background color of the display (defaults to black).</tt></dd> |
164 | 169 | </dl>
|
165 | 170 | <dl><dt><strong>center</strong></dt>
|
| 171 | +<dd><tt>The point that the camera looks at.</tt></dd> |
166 | 172 | </dl>
|
167 | 173 | <dl><dt><strong>foreground</strong></dt>
|
| 174 | +<dd><tt>The background color of the display (defaults to black).</tt></dd> |
168 | 175 | </dl>
|
169 | 176 | <dl><dt><strong>forward</strong></dt>
|
| 177 | +<dd><tt>The direction the camera is facing.</tt></dd> |
170 | 178 | </dl>
|
171 | 179 | <dl><dt><strong>fov</strong></dt>
|
| 180 | +<dd><tt>Field of view of the camrea in radians.</tt></dd> |
172 | 181 | </dl>
|
173 | 182 | <dl><dt><strong>range</strong></dt>
|
| 183 | +<dd><tt>It's complicated and I don't think I've done it right.</tt></dd> |
174 | 184 | </dl>
|
175 | 185 | <dl><dt><strong>scale</strong></dt>
|
| 186 | +<dd><tt>Related to range, and I don't think I've done it right.</tt></dd> |
176 | 187 | </dl>
|
177 | 188 | <dl><dt><strong>up</strong></dt>
|
| 189 | +<dd><tt>The camera will rotate about its forward axis in an attempt to make this direction up on the screen.</tt></dd> |
178 | 190 | </dl>
|
179 | 191 | <hr>
|
180 | 192 | Data and other attributes inherited from <a href="grcontext.html#GrContext">GrContext</a>:<br>
|
|
261 | 273 |
|
262 | 274 | <dl><dt><a name="GrContext-determine_perspective_matrix"><strong>determine_perspective_matrix</strong></a>(self)</dt></dl>
|
263 | 275 |
|
264 |
| -<dl><dt><a name="GrContext-gl_version_info"><strong>gl_version_info</strong></a>(self)</dt></dl> |
| 276 | +<dl><dt><a name="GrContext-gl_version_info"><strong>gl_version_info</strong></a>(self)</dt><dd><tt>Get some perhaps-misleading information about the OpenGL version.</tt></dd></dl> |
265 | 277 |
|
266 | 278 | <dl><dt><a name="GrContext-resize2d"><strong>resize2d</strong></a>(self, width, height)</dt><dd><tt>Callback that is called when window is resized.</tt></dd></dl>
|
267 | 279 |
|
|
290 | 302 | <hr>
|
291 | 303 | Data descriptors defined here:<br>
|
292 | 304 | <dl><dt><strong>background</strong></dt>
|
| 305 | +<dd><tt>The background color of the display (defaults to black).</tt></dd> |
293 | 306 | </dl>
|
294 | 307 | <dl><dt><strong>center</strong></dt>
|
| 308 | +<dd><tt>The point that the camera looks at.</tt></dd> |
295 | 309 | </dl>
|
296 | 310 | <dl><dt><strong>foreground</strong></dt>
|
| 311 | +<dd><tt>The background color of the display (defaults to black).</tt></dd> |
297 | 312 | </dl>
|
298 | 313 | <dl><dt><strong>forward</strong></dt>
|
| 314 | +<dd><tt>The direction the camera is facing.</tt></dd> |
299 | 315 | </dl>
|
300 | 316 | <dl><dt><strong>fov</strong></dt>
|
| 317 | +<dd><tt>Field of view of the camrea in radians.</tt></dd> |
301 | 318 | </dl>
|
302 | 319 | <dl><dt><strong>height</strong></dt>
|
| 320 | +<dd><tt>The height in pixels of the display.</tt></dd> |
303 | 321 | </dl>
|
304 | 322 | <dl><dt><strong>range</strong></dt>
|
| 323 | +<dd><tt>It's complicated and I don't think I've done it right.</tt></dd> |
305 | 324 | </dl>
|
306 | 325 | <dl><dt><strong>scale</strong></dt>
|
| 326 | +<dd><tt>Related to range, and I don't think I've done it right.</tt></dd> |
307 | 327 | </dl>
|
308 | 328 | <dl><dt><strong>up</strong></dt>
|
| 329 | +<dd><tt>The camera will rotate about its forward axis in an attempt to make this direction up on the screen.</tt></dd> |
309 | 330 | </dl>
|
310 | 331 | <dl><dt><strong>width</strong></dt>
|
| 332 | +<dd><tt>The width in pixels of the display.</tt></dd> |
311 | 333 | </dl>
|
312 | 334 | <hr>
|
313 | 335 | Data and other attributes defined here:<br>
|
|
0 commit comments