{"id":13466164,"url":"https://github.com/prideout/parg","last_synced_at":"2026-01-18T11:45:01.064Z","repository":{"id":143205388,"uuid":"43103984","full_name":"prideout/parg","owner":"prideout","description":"tiny C library of various graphics utilities and GL demos","archived":false,"fork":false,"pushed_at":"2019-06-22T02:39:21.000Z","size":1061,"stargazers_count":56,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T19:17:18.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/prideout.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-09-25T02:06:35.000Z","updated_at":"2024-10-10T02:47:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"518a6ae0-4c3d-4bbb-b63e-d3246e4713cc","html_url":"https://github.com/prideout/parg","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fparg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fparg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fparg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prideout%2Fparg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prideout","download_url":"https://codeload.github.com/prideout/parg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245547425,"owners_count":20633363,"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-07-31T15:00:40.159Z","updated_at":"2026-01-18T11:45:01.049Z","avatar_url":"https://github.com/prideout.png","language":"C++","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# parg\n\n[![Build Status](https://travis-ci.org/prideout/parg.svg?branch=master)](https://travis-ci.org/prideout/parg)\n\nThis is a C99 library with some basic stuff for bootstrapping a graphics engine.  Currently it is tested against OpenGL 2.1 on OS X, and WebGL 1.0 via Emscripten.\n\nThe [par](https://github.com/prideout/par) library is a required submodule, so be sure to do this after cloning the repo:\n\n```bash\n$ git submodule update --init\n```\n\nThe [API](https://github.com/prideout/parg/blob/master/include/parg.h) is divided into modules, each of which has a single C file:\n\n- **token** string-to-uint32 hashing, and a lookup table for uint32-to-string.\n- **asset** unified way of loading buffers, shaders, and textures.\n- **buffer** an untyped blob of memory that can live on the CPU or GPU.\n- **mesh** triangle meshes and utilities for procedural geometry.\n- **texture** thin wrapper around OpenGL texture objects.\n- **uniform** thin wrapper around OpenGL shader uniforms.\n- **state** thin wrapper around miscellaneous portions of the OpenGL state machine.\n- **varray** an association of buffers with vertex attributes.\n- **draw** thin wrapper around OpenGL draw calls.\n- **zcam** simple map-style camera with basic zoom \u0026 pan controls.\n\n## How to Build for macOS\n\n```bash\nbrew update\nbrew install cmake uncrustify glfw clang-format pkg-config\nmkdir build ; cd build ; cmake .. ; make -j\n```\n\nYou can then run a demo like this:\n```bash\n./trefoil\n```\n\n\n## How to Build for WebGL on macOS\n\n```bash\nbrew update\nbrew install cmake uncrustify glfw clang-format pkg-config emscripten\npython emsetup.py\nsource aliases.sh\ninitjs \u0026\u0026 build\n```\n\nYou can then run a demo like this:\n```bash\nbuild/trefoil\n[Push Esc to quit]\ncd web\npython -m SimpleHTTPServer\n[Open localhost:8000 in a web browser]\n```\n\n\nI'm currently using:\n- glfw 3.3\n- emscripten 1.36.5\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprideout%2Fparg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprideout%2Fparg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprideout%2Fparg/lists"}