{"id":25194107,"url":"https://github.com/brocbyte/brocgl","last_synced_at":"2025-11-09T10:01:51.816Z","repository":{"id":275771485,"uuid":"927139133","full_name":"brocbyte/brocgl","owner":"brocbyte","description":"Basic setup code needed to start using OpenGL on Windows.","archived":false,"fork":false,"pushed_at":"2025-02-04T13:53:31.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T14:30:40.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brocbyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-04T13:23:19.000Z","updated_at":"2025-02-04T13:53:34.000Z","dependencies_parsed_at":"2025-02-04T14:32:16.610Z","dependency_job_id":"1c08645c-4463-4c0f-ba0e-514fa9801631","html_url":"https://github.com/brocbyte/brocgl","commit_stats":null,"previous_names":["brocbyte/brocgl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brocbyte%2Fbrocgl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brocbyte%2Fbrocgl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brocbyte%2Fbrocgl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brocbyte%2Fbrocgl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brocbyte","download_url":"https://codeload.github.com/brocbyte/brocgl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190690,"owners_count":20898805,"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":"2025-02-09T23:52:27.965Z","updated_at":"2025-11-09T10:01:51.736Z","avatar_url":"https://github.com/brocbyte.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## brocgl\n\n### Intro\nbrocgl is a basic setup code needed to start using OpenGL on Windows.\n\nIt includes creating a window and a proper modern OpenGL context.\n\nUser api boils down to creating 2 functions: setup() and draw().\n\n* void setup();\nCalled once during the initialization.\n* void draw();\nCalled in a while() loop to update the screen.\n\n### Usage\n\nIn your project directory:\n\n1. `git submodule add https://github.com/brocbyte/brocgl`\n2. `cd brocgl`\n3. `setup_dev.cmd`\n4. in your source cpp file, do `#include \"win_gl.cpp\"` and implement `void setup()` and `void draw()` functions\n5. in your build process, set language version to std:c++20, add include directory brocgl\\, link with user32.lib, gdi32.lib, opengl32.lib\n\n5th step in a single `cl` call:\n\n```\ncl game.cpp /std:c++20 /I brocgl\\ user32.lib gdi32.lib opengl32.lib\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrocbyte%2Fbrocgl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrocbyte%2Fbrocgl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrocbyte%2Fbrocgl/lists"}