{"id":29425898,"url":"https://github.com/deno-windowing/gluten","last_synced_at":"2025-10-31T00:53:48.129Z","repository":{"id":64921622,"uuid":"563375049","full_name":"deno-windowing/gluten","owner":"deno-windowing","description":"OpenGL bindings \u0026 WebGL API implementation for Deno.","archived":false,"fork":false,"pushed_at":"2024-11-04T15:45:16.000Z","size":1665,"stargazers_count":52,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-10T13:45:03.400Z","etag":null,"topics":["deno","ffi","gpu","opengl","typescript","webgl"],"latest_commit_sha":null,"homepage":"https://deno.land/x/gluten","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deno-windowing.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-08T13:38:19.000Z","updated_at":"2025-08-27T13:20:17.000Z","dependencies_parsed_at":"2024-11-04T16:39:46.061Z","dependency_job_id":null,"html_url":"https://github.com/deno-windowing/gluten","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/deno-windowing/gluten","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-windowing%2Fgluten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-windowing%2Fgluten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-windowing%2Fgluten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-windowing%2Fgluten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deno-windowing","download_url":"https://codeload.github.com/deno-windowing/gluten/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-windowing%2Fgluten/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008725,"owners_count":26084494,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["deno","ffi","gpu","opengl","typescript","webgl"],"created_at":"2025-07-12T10:27:00.848Z","updated_at":"2025-10-11T21:09:01.973Z","avatar_url":"https://github.com/deno-windowing.png","language":"TypeScript","funding_links":["https://github.com/sponsors/DjDeveloperr"],"categories":[],"sub_categories":[],"readme":"# Deno Gluten\n\n[![Tags](https://img.shields.io/github/release/deno-windowing/gluten)](https://github.com/deno-windowing/gluten/releases)\n[![Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/gluten/mod.ts)\n[![License](https://img.shields.io/github/license/deno-windowing/gluten)](https://github.com/deno-windowing/gluten/blob/master/LICENSE)\n[![Sponsor](https://img.shields.io/static/v1?label=Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86)](https://github.com/sponsors/DjDeveloperr)\n\nOpenGL bindings \u0026 WebGL API implementation for Deno.\n\nNote: WebGL API is WIP.\n\n## Usage\n\nImport native OpenGL from `/api/gl[es|es2]{version}.ts`.\n\nAll the functions map 1:1 with the C OpenGL API.\n\nExtensions are present in `/api/ext/*`.\n\nBefore using the API, make sure to create OpenGL context and load function\npointers using `load` function exported, which accepts a `getProcAddress`\ncallback ([DWM](https://github.com/deno-windowing/dwm) handles both).\n\n```ts\n// GLES2 3.2 API\nimport * as gl from \"https://deno.land/x/gluten@0.1.8/api/gles23.2.ts\";\n\n// Initialize function pointers\ngl.load(yourGetProcAddress);\n\n// ... Initialize context (for example using DWM)\n\n// Use APIs from `gl` i.e. gl.DrawElements(...)\n```\n\nFor using WebGL, `mod.ts` exports `WebGLCanvas` which handles both window and\ncontext creation.\n\nCheck [./examples](./examples/) for some usage examples.\n\nSince this module depends on unstable FFI API, you need to pass\n`--unstable-ffi`.\n\n```sh\ndeno run -A --unstable-ffi \u003cfile\u003e\n```\n\nExtensions:\n\n- [Babylon](https://www.babylonjs.com/) (Use `ext/babylon.ts` for an easy to use\n  wrapper)\n\n## Maintainers\n\n- Dj ([@DjDeveloperr](https://github.com/DjDeveloperr))\n- Dean Srebnik ([@load1n9](https://github.com/load1n9))\n\n## License\n\n[Apache-2.0](./LICENSE) licensed.\n\nCopyright 2024 © The Deno Windowing Team\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeno-windowing%2Fgluten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeno-windowing%2Fgluten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeno-windowing%2Fgluten/lists"}