{"id":16721187,"url":"https://github.com/tsherif/xogl","last_synced_at":"2025-04-10T10:05:52.469Z","repository":{"id":71746196,"uuid":"115431954","full_name":"tsherif/xogl","owner":"tsherif","description":"Minimal OpenGL loader for X11.","archived":false,"fork":false,"pushed_at":"2018-01-03T13:51:04.000Z","size":441,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:55:11.219Z","etag":null,"topics":["3d","linux","opengl"],"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/tsherif.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}},"created_at":"2017-12-26T15:06:22.000Z","updated_at":"2023-01-04T06:49:19.000Z","dependencies_parsed_at":"2023-02-22T13:46:21.657Z","dependency_job_id":null,"html_url":"https://github.com/tsherif/xogl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsherif%2Fxogl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsherif%2Fxogl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsherif%2Fxogl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsherif%2Fxogl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsherif","download_url":"https://codeload.github.com/tsherif/xogl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198879,"owners_count":21063628,"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":["3d","linux","opengl"],"created_at":"2024-10-12T22:29:14.613Z","updated_at":"2025-04-10T10:05:52.460Z","avatar_url":"https://github.com/tsherif.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"XOGL\n====\n\nMinimal OpenGL loader for X11.\n\nXOGL consists of three functions:\n- `xogl_init()`: Initialize an OpenGL context and load OpenGL functions.\n- `xogl_swapBuffers()`: Swap front and backbuffers. Use after finished drawing.\n- `xogl_destroy()`: Destroy the OpenGL context.\n\nBasic usage:\n```C\n    Display* disp = XOpenDisplay(NULL);\n    Window win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 20, 20, 1024, 1024, 0, 0, 0);\n    XMapWindow(disp, win);\n\n    // Attempt to initialize an OpenGL 4.5 context\n    if (xogl_init(disp, win, 4, 5)) {\n        fprintf(stderr, \"Unable initialize OpenGL!\\n\");\n        return 1;\n    }\n\n    // OpenGL function calls\n\n    while(1) {\n        if (!running) {\n            break;\n        }\n\n        // OpenGL function calls\n\n        xogl_swapBuffers();\n    }\n\n    xogl_destroy();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsherif%2Fxogl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsherif%2Fxogl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsherif%2Fxogl/lists"}