{"id":15467138,"url":"https://github.com/ufrshubham/raylib-project-template","last_synced_at":"2025-06-16T22:03:40.600Z","repository":{"id":217454096,"uuid":"742847351","full_name":"ufrshubham/raylib-project-template","owner":"ufrshubham","description":"A cross-platform template for C++ raylib projects using cmake","archived":false,"fork":false,"pushed_at":"2024-01-16T09:08:27.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T23:31:59.570Z","etag":null,"topics":["raylib","raylib-cmake","raylib-cpp","raylib-template"],"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/ufrshubham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["ufrshubham"],"patreon":"devkage","custom":["https://www.buymeacoffee.com/devkage"]}},"created_at":"2024-01-13T14:51:11.000Z","updated_at":"2024-01-13T15:21:09.000Z","dependencies_parsed_at":"2024-01-16T15:44:13.454Z","dependency_job_id":"d1125630-cb97-4a98-b696-6e121d626aa0","html_url":"https://github.com/ufrshubham/raylib-project-template","commit_stats":null,"previous_names":["ufrshubham/raylib-project-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufrshubham%2Fraylib-project-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufrshubham%2Fraylib-project-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufrshubham%2Fraylib-project-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufrshubham%2Fraylib-project-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ufrshubham","download_url":"https://codeload.github.com/ufrshubham/raylib-project-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246026148,"owners_count":20711591,"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":["raylib","raylib-cmake","raylib-cpp","raylib-template"],"created_at":"2024-10-02T01:20:18.720Z","updated_at":"2025-03-28T12:21:36.479Z","avatar_url":"https://github.com/ufrshubham.png","language":"C++","funding_links":["https://github.com/sponsors/ufrshubham","https://patreon.com/devkage","https://www.buymeacoffee.com/devkage"],"categories":[],"sub_categories":[],"readme":"# Raylib Project Template\n\nA cross-platform template for C++ raylib projects using cmake\n\n## How to use?\n\n### Clone\n\nThere are two ways to use this project template. You can either create a your own GitHub repo using this template (very similar to forking) or your can directly clone this repo on your local machine. Here are steps for both these ways:\n\n1. GitHub repo using template\n\n    - Make sure you are logged into your GitHub account.\n\n    - Click on the \"Use this template\" button.\n\n        ![Step2](readme-assets/use-this-template-button.png)\n\n    - Provide a name for your new repo.\n\n    - Click \"Create repositoy from template\".\n\n    - Clone your new repo recursively.\n\n    ```bash\n    git clone --recursive \u003cyour-repo-link-here\u003e\n    ```\n\n2. Local repo by direcly cloning\n\n    Step 1. Clone this repo recusrively using this command:\n\n    ```bash\n    git clone --recursive https://github.com/ufrshubham/raylib-project-template.git\n    ```\n\nNote: If you've already cloned this repo without using `--recursive` flag, just run `git submodule update --init` to update the submodules.\n\n### Code\n\n- Source files should be placed under `src` directory.\n\n- Header files should be placed under `include` directory. Header `Version.hpp` can be remove completely as it is just for demo.\n\n- Source code for Raylib is pulled as a submodule under `vendors/raylib` and is built along with your code.\n\n- Assets like images, audio and fonts can be placed under `resources` directory. If you choose to use a custom directory for this, you'll have to handle how your executable finds those assets. The demo code in `src/main.cpp` programitically changes the working directory to the path where `resources` directory is located (see the static function `modifyCurrentWorkingDirectory`).\n\n### Build\n\n- Make a directory for build in your project root.\n\n    ```bash\n    cmake -E make_directory ./build\n    ```\n\n- Go to the build directory.\n\n    ```bash\n    cd build/\n    ```\n\n- Generate project files (For debug builds, replace `Release` with `Debug`).\n\n    ```bash\n    cmake .. -DCMAKE_BUILD_TYPE=Release\n    ```\n\n- Build (For debug builds, replace `Release` with `Debug`).\n\n    ```bash\n    cmake --build . --config Release\n    ```\n\n- You should find the executables under `build/bin`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufrshubham%2Fraylib-project-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufrshubham%2Fraylib-project-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufrshubham%2Fraylib-project-template/lists"}