{"id":28917941,"url":"https://github.com/jgerrish/sdl-opengl-cpp","last_synced_at":"2026-06-30T09:31:22.847Z","repository":{"id":296751367,"uuid":"994021227","full_name":"jgerrish/sdl-opengl-cpp","owner":"jgerrish","description":"A C++ wrapper for OpenGL under SDL","archived":false,"fork":false,"pushed_at":"2025-12-12T18:49:17.000Z","size":258,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-13T01:31:34.683Z","etag":null,"topics":["cpp","graphics","opengl","sdl","sdl2"],"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/jgerrish.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-01T02:52:29.000Z","updated_at":"2025-12-12T18:49:21.000Z","dependencies_parsed_at":"2025-07-31T23:05:03.447Z","dependency_job_id":"a04ccacc-7ea8-4045-9501-1846f741350c","html_url":"https://github.com/jgerrish/sdl-opengl-cpp","commit_stats":null,"previous_names":["jgerrish/sdl-opengl-cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jgerrish/sdl-opengl-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgerrish%2Fsdl-opengl-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgerrish%2Fsdl-opengl-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgerrish%2Fsdl-opengl-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgerrish%2Fsdl-opengl-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgerrish","download_url":"https://codeload.github.com/jgerrish/sdl-opengl-cpp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgerrish%2Fsdl-opengl-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34961543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":["cpp","graphics","opengl","sdl","sdl2"],"created_at":"2025-06-22T01:02:55.680Z","updated_at":"2026-06-30T09:31:22.838Z","avatar_url":"https://github.com/jgerrish.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdl-opengl-wrapper: A C++ wrapper for OpenGL under SDL\n\n# Introduction #\n\nThis is a C++ wrapper for working with OpenGL under SDL.\n\nIt provides classes for vertex buffer objects, vertex array objects,\nshaders and programs.\n\n# Installation #\n\n## Prerequisites ##\n\nThe following build tools are required:\nCMake\n\nThe following libraries are required:\nSDL2\nspdlog\ngMock (sometimes included with your distro's gTest package)\ndoctest\nDoxygen\npkg-config\n\nOn Ubuntu, they can be installed with the following:\n\napt install cmake doctest-dev doxygen google-mock googletest libsdl2-dev libspdlog-dev pkg-config\n\ndoctest can be downloaded from GitHub:\n[doctest](https://github.com/doctest/doctest.git)\n\n\nYou also need the basic C++ toolchain.  It's the build-essential\npackage on Debian systems, Fedora and SUSE both have meta-packages or\ngroups that you can install to get C++ development.\n\nThe examples below use the Ninja build system:\n\napt install ninja-build\n\n## Compiling ##\n\n$ mkdir build\n\nFor debug builds:\n\n$ cmake -DCMAKE\\_BUILD\\_TYPE=Debug ..\n\nFor release builds:\n\n$ cmake -DCMAKE\\_BUILD\\_TYPE=Debug ..\n\nTo build it:\n\n$ cd build\n$ make\n\n\nYou can test the library with the following command:\n\n$ test/sdl-opengl-cpp-test\n\n\n\n### Windows ###\n\nTo compile for Windows systems.\n\nThis project has been tested in Visual Studio 2022 with the Desktop\ndevelopment with C++ Workload installed.\n\nYou'll also need a copy of CMake installed and vcpkg.\n\n\nInstall prerequisites with vcpkg:\n\nFor 64-bit machines:\n\nvcpkg.exe install doctest gtest[cxx17] sdl2 spdlog --triplet x64-windows\n\n\nGenerate CMake configuration\n\nOpen cmake-gui up.\n\nSelect the sdl-opengl-cpp directory as the source directory in the\n\"Where's the source code\" edit box.\n\nSelect the sdl-opengl-cpp directory as the build directory in the\n\"Where to build the binaries\" edit box.  Then append build to the\npath.  So the path should be something like:\n\nBLAHBLAHBLAH/sdl-opengl-cpp/build\n\nClick Configure.\n\nChoose the option Specify toolchain file for cross-compiling and click\nNext.\n\nSelect vcpkg.cmake in the scripts/buildsystems directory of your vcpkg\ninstall.\n\nClick Finish.\n\nClick Generate after it is done configuring.\n\nClick Open Project after it is done generating.\n\n\nIn Visual Studio\n\nRight click on the sdl-opengl-cpp-test project and click build.\nExecute it from a command prompt to test it.\n\n\n# Testing #\n\nTo run the tests, just execute the following after compiling:\n\n$ test/sdl-opengl-cpp-test\n\n## Integration Tests ##\n\nThere are now a set of separate integration tests that test\nintegrating sdl-opengl-cpp into another project.  There are currently\ntwo separate tests.\n\nOne tests compiling from a build-tree download (using CMake's\nExternalProject_Add).\n\nThe other tests compiling using the installed\nsdl-opengl-cpp-config.cmake files.\n\nThese tests can be built separately without building the main project\nfirst.  They setup their own build directories and try to simulate as\nmuch as possible the process of another project using sdl-opengl-cpp.\n\n### Build-tree Integration Test ##\n\nTo build and run the build-tree integration test:\n\n$ cd test/integration/build-tree-integration-test\n$ mkdir -p build\n$ cd build\n$ cmake -DCMAKE\\_BUILD\\_TYPE=Debug -G Ninja ..\n$ ninja\n$ ./sdl-opengl-cpp-build-tree-integration-test\n\nThe process return code should be 0.  To test under bash:\n\n$ echo $?\n\n### Install Integration Test ##\n\nTo build and run the install integration test:\n\n$ cd test/integration/install-integration-test\n$ mkdir -p build\n$ cd build\n$ cmake e -DCMAKE\\_BUILD\\_TYPE=Debug -G Ninja ..\n$ ninja\n$ ./install/bin/sdl-opengl-cpp-install-integration-test\n\nThe process return code should be 0.  To test under bash:\n\n$ echo $?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgerrish%2Fsdl-opengl-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgerrish%2Fsdl-opengl-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgerrish%2Fsdl-opengl-cpp/lists"}