PyOpenGL -- The Python OpenGL Binding
文章推薦指數: 80 %
PyOpenGL is the most common cross platform Python binding to OpenGL and related APIs. The binding is created using the standard ctypes library, ... AboutPyOpenGL PyOpenGListhemostcommoncrossplatformPython bindingtoOpenGLandrelated APIs.Thebindingiscreatedusingthestandardctypeslibrary,andis providedunderanextremelyliberalBSD-styleOpen-Sourcelicense. PyOpenGLSupports OpenGLv1.1to4.4 GLES1to3.1(Experimental) GLU EGL,WGL,GLX GLUT,FreeGLUT GLE3(GLExtrusionLibrary) hundredsofextensionstoGL,GLES,EGL,WGLandGLX PyOpenGLisinteroperablewithalargenumberofexternalGUIlibraries forPythonincluding(butnotlimitedto): wxPython PyGame PyQt andPySide PyGTK RawXLib OSMesa RaspberryPiBCM Tkinter(ifyouhaveinstalledtheToglwidgetforTk) PyOpenGL3.xrunson: Python3.3+(3.2supportislikelytowork,butuntested) Python2.7(recommended) Python2.6(forcompatibilitywitholdersoftwareandsystems) PyPy(experimental) Sub-Packages ThePyOpenGLprojectincludesanumberofsub-projects: PyOpenGL,the"OpenGL"packagewheninstalled,providesGL,GLES1, GLES2,GLES3,GLUT,GLU,GLE,WGL,EGLandGLXsubpackages OpenGL_accelerate,acythoncodedacceleratormoduleforPyOpenGL, optional,butrecommendedwhereavailable ThecodeforOpenGL_accelerateisinthecorePyOpenGLrepository, butisdistributedasaseparatePythonpackageandinstallsas OpenGL_accelerate PyOpenGL-Demo,acollectionofsmallstand-alonedemos Younormallywanttorunthesefromthesourcedistribution,as there'snothinginstalledbythepackage OpenGLContext,ateachingand testinglibrarybuiltontopofPyOpenGL(andalotofother libraries) YoudoNOTneedOpenGLContexttousePyOpenGL DownloadingandInstallation TheeasiestwaytoinstallPyOpenGLisusingpip $pipinstallPyOpenGLPyOpenGL_accelerate Youcanalsomanuallydownloadthepackages: PyOpenGL PyOpenGL_accelerate PyOpenGLDemo OpenGLContext unpackthemintotemporarydirectories,changetothosedirectoriesandrun: pythonsetup.py Detailedinstallationinstructionsareavailable. Documentation Thedocumentationcollection providesreferencedocumentation,supportandfeedbackinformationand pointerstomorein-depthdocumentation. SourceCode YoucanworkwithlatestversionofPyOpenGLusingthebzr distributedsourcecodecontroltoolontheLaunchPad code-hostingplatform: bzrbranchlp:pyopenglbzrbranchlp:pyopengl-demobzrbranchlp:openglcontext Contributionsandpatchesareverywelcome. Youcaneither requestamergeviaLaunchPadorsendapatch-setviaemailusing"bzr send"[email protected]. Support BugsandgeneralquestionsarebestreportedandansweredonthePyOpenGL mailinglist. Thelistisfairlylow-traffic. OtherLibraries Therearequiteafew3D-relatedlibrariesavailableforusewith Python,manyofthemeitherbasedon,orextensiblewithPyOpenGL. PyOpenGL'sauthorcollectspointerstothemonhis site. ThereisanothercommonlyusedbindingofOpenGLfor PythonwhichispartofthePyglet gamedevelopmentenvironment.
延伸文章資訊
- 1PyOpenGL · PyPI
Standard OpenGL bindings for Python. ... GLU (normally available on any OpenGL-capable machine). ...
- 2PyOpenGL:是一個呼叫OpenGL的2D/3D的python圖形庫
PyOpenGL:是一個呼叫OpenGL的2D/3D的python圖形庫. 3.1.2 程式碼 #匯入OpenGL的庫,一般常規匯入下面三個模組 #調出gl函式 from OpenGL.GL i...
- 3Python安裝設定OpenGL環境的全過程記錄 - IT145.com
下載與自己Python版本合適的,執行命令:pip install XXX.whl 即可正常使用pyopengl環境。 測試環境程式碼. from OpenGL.GL import * from...
- 4PyOpenGl的基本使用- 码迷-wjz - 博客园
Python 旗下,影响较大的三维库有pyOpenGl / VT. ... 我第一次接触OpenGL 的GL / GLU / GLUT 的时候,一下就被这些长得像孪生兄弟的库名字给整懵圈 ...
- 5一篇就够的超良心pyOpenGL入门教程,不香喷我! - CSDN博客
OpenGL (python版本)OpenGL是用于渲染2D、3D矢量图形的扩语言、跨平台的应用程序编程接口。这个接口由近350个不同的函数调用组成,用来从简单的图形 ...