CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 07:16:19 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20071208114058
location: https://web.archive.org/web/20071208114058/https://wiki.python.org/moin/PyOpenGL
server-timing: captures_list;dur=0.626683, exclusion.robots;dur=0.023516, exclusion.robots.policy;dur=0.010528, esindex;dur=0.011928, cdx.remote;dur=12.539377, LoadShardBlock;dur=210.473139, PetaboxLoader3.datanode;dur=96.431721, PetaboxLoader3.resolve;dur=46.664044
x-app-server: wwwb-app216
x-ts: 302
x-tr: 255
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app216; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 17 Jul 2025 07:16:20 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Sat, 08 Dec 2007 11:40:58 GMT
x-archive-orig-server: Apache/2.0.54 (Debian GNU/Linux) mod_fastcgi/2.4.2
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 08 Dec 2007 11:40:58 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 07 May 2006 23:04:44 GMT", ; rel="prev memento"; datetime="Sat, 04 Aug 2007 05:59:24 GMT", ; rel="memento"; datetime="Sat, 08 Dec 2007 11:40:58 GMT", ; rel="next memento"; datetime="Sat, 08 Dec 2007 11:41:03 GMT", ; rel="last memento"; datetime="Mon, 21 Apr 2025 02:13:01 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_1_20071208104348_crawl102-c/52_1_20071208113655_crawl107.arc.gz
server-timing: captures_list;dur=0.609800, exclusion.robots;dur=0.023291, exclusion.robots.policy;dur=0.009900, esindex;dur=0.014588, cdx.remote;dur=37.370849, LoadShardBlock;dur=515.999079, PetaboxLoader3.resolve;dur=453.943834, PetaboxLoader3.datanode;dur=166.290967, load_resource;dur=141.619347
x-app-server: wwwb-app216
x-ts: 200
x-tr: 748
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
PyOpenGL - PythonInfo Wiki
PyOpenGL
PyOpenGL
PyOpenGL is a large Python package that wraps most (up to version 1.2) of the OpenGL API. However, it doesn't try to clean up the API and present a more Pythonic interface, so it won't save you (or, more importantly, me) from having to learn the details of OpenGL. It does abstract the API so you call glColor in place of glColor3b, glColor3d, glColor3f, glColor3i, glColor3s, ...
Here's the skeleton for a program that displays something::
import sys from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * # The display() method does all the work; it has to call the appropriate # OpenGL functions to actually display something. def display(): # Clear the color and depth buffers glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) # ... render stuff in here ... # It will go to an off-screen frame buffer. # Copy the off-screen buffer to the screen. glutSwapBuffers() glutInit(sys.argv) # Create a double-buffer RGBA window. (Single-buffering is possible. # So is creating an index-mode window.) glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH) # Create a window, setting its title glutCreateWindow('interactive') # Set the display callback. You can set other callbacks for keyboard and # mouse events. glutDisplayFunc(display) # Run the GLUT main loop until the user closes the window. glutMainLoop()
EditText (last edited 2006-11-30 21:24:08 by GeorgePaci)
DeleteCache (cached 2007-11-22 05:30:16)- Login
- Navigation
- Actions
- Your recent pages