{"id":20850448,"url":"https://github.com/noteed/opengl-api","last_synced_at":"2025-08-17T07:04:27.809Z","repository":{"id":996348,"uuid":"806369","full_name":"noteed/opengl-api","owner":"noteed","description":"A parser for the OpenGL spec files","archived":false,"fork":false,"pushed_at":"2012-01-24T19:16:17.000Z","size":449,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T12:33:12.275Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noteed.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}},"created_at":"2010-07-29T22:39:12.000Z","updated_at":"2020-03-25T08:07:36.000Z","dependencies_parsed_at":"2022-07-06T00:33:44.840Z","dependency_job_id":null,"html_url":"https://github.com/noteed/opengl-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/noteed/opengl-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fopengl-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fopengl-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fopengl-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fopengl-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noteed","download_url":"https://codeload.github.com/noteed/opengl-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fopengl-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270816548,"owners_count":24650831,"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-08-17T02:00:09.016Z","response_time":129,"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":[],"created_at":"2024-11-18T03:09:32.904Z","updated_at":"2025-08-17T07:04:27.781Z","avatar_url":"https://github.com/noteed.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opengl-api\n\nRepresent and parse spec files from the OpenGL [registry][].\n\n[registry]: http://www.opengl.org/registry/#specfiles\n\n## Directory layout\n\n- `spec-files` contains the `.spec` and `.tm` files provided by [opengl.org][].\n- `results` contains a modified `glext.h` file. This is a `glext.h` header\n  provided by [opengl.org][] with one line modified (the one with the last\n  update date). It is used to ensure that opengl-api still generates the same\n  results after refactoring.\n\n[opengl.org]: http://www.opengl.org/registry/#specfiles\n\n## Current state\n\n`Text.OpenGL.Spec` has code to completely parse and represent the content of\n`enumext.spec` , `gl.tm` and `gl.spec`. (Probably there is not much left to do\nto support `enum.spec`.) The representations includes comments, blank lines,\nand passthru lines.\n\nThe representations are nearly feature complete, the only missing important bit\nis the text defining the array size (in the description of function\nparameters).\n\n`Text.OpenGL.Api` has code to create higher-level data structures from the\none in `Text.OpenGL.Spec`.\n\n`Text.OpenGL.ExtHeader` is able to perfectly recreate the `glext.h` file\nfrom the spec files.\n\n`Text.OpenGL.GenChecks` is able to generate macros to call glGetError after\nevery GL commands.\n\n## To do\n\n- Offer a simplified representation of `[EnumLine]` with no comment, no blank\n  line, no passthru, maybe references already resolved, and a single number\n  format.\n- Offer a parser for `enum.spec`.\n- State in the doc that there is some doc about the spec file format at the\n  good old Haskell-OpenGL [page][]!\n\n[page]: http://www.haskell.org/HOpenGL-old/spec_explained.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoteed%2Fopengl-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoteed%2Fopengl-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoteed%2Fopengl-api/lists"}