{"id":20912431,"url":"https://github.com/fogleman/pg","last_synced_at":"2025-04-05T15:04:32.737Z","repository":{"id":19347483,"uuid":"22586706","full_name":"fogleman/pg","owner":"fogleman","description":"Python OpenGL Graphics Framework","archived":false,"fork":false,"pushed_at":"2023-10-03T20:52:47.000Z","size":4055,"stargazers_count":208,"open_issues_count":10,"forks_count":33,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-04-26T10:22:38.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pg.readthedocs.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fogleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-04T00:08:58.000Z","updated_at":"2024-06-18T18:43:19.473Z","dependencies_parsed_at":"2024-06-18T18:43:17.732Z","dependency_job_id":"3e219637-b275-4346-8512-ab0a9b7e0056","html_url":"https://github.com/fogleman/pg","commit_stats":{"total_commits":226,"total_committers":1,"mean_commits":226.0,"dds":0.0,"last_synced_commit":"124ea3803c788b2c98c4f3a428e5d26842a67b58"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fpg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fpg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fpg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fpg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogleman","download_url":"https://codeload.github.com/fogleman/pg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353729,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T14:27:13.448Z","updated_at":"2025-04-05T15:04:32.712Z","avatar_url":"https://github.com/fogleman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pg: The Python Graphics Framework\n\npg is a lightweight, high-level OpenGL graphics framework for Python. It is a\nwork in progress.\n\n### Tutorial\n\nA basic tutorial is available here:\n\nhttp://pg.readthedocs.org/en/latest/tutorial.html\n\n### Features\n\nMany OpenGL applications have a lot of features in common, but there's a lot of\nboilerplate involved when using OpenGL. This high-level framework lets you\nfocus on your application-specific functionality instead.\n\n* shaders\n    * compile and link\n    * attributes and uniforms\n    * built-in shaders for common use-cases\n* vertex buffers\n    * optionally interleaved\n* matrices\n    * translate, rotate, scale\n    * perspective and orthographic projections\n    * transpose, determinant, inverse\n* textures\n* geometric shapes\n    * sphere, cuboid, plane, cylinder, cone, axes\n* models\n    * .obj and .stl file formats\n* WASD movement\n    * built-in!\n* windowing and input\n    * glfw-based\n    * multiple windows\n\n### Dependencies\n\n    brew tap homebrew/versions\n    brew install glfw3\n    pip install Pillow PyOpenGL\n\n### Examples\n\nClone the repository and run main.py to see these and several other examples.\n\n#### 3D Pipes: [pipes.py](https://github.com/fogleman/pg/blob/master/examples/pipes.py)\n\n![Screenshot](http://i.imgur.com/za11AqP.png)\n\n#### Gusev Crater: [gusev.py](https://github.com/fogleman/pg/blob/master/examples/gusev.py)\n\n![Screenshot](http://i.imgur.com/fiIJKIt.png)\n\n#### OBJ and STL Models: [suzanne.py](https://github.com/fogleman/pg/blob/master/examples/suzanne.py)\n\n![Screenshot](http://i.imgur.com/Jictnlz.png)\n\n#### Constructive Solid Geometry (CSG): [csg.py](https://github.com/fogleman/pg/blob/master/examples/csg.py)\n\n![Screenshot](http://i.imgur.com/3QJFHw1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Fpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogleman%2Fpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Fpg/lists"}