Thanks to visit codestin.com
Credit goes to github.com

Skip to content

djoezeke/SDLTem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

███████ █████   ██    ████████ ██████   ███   ███  ██████ ██      ████  ████████ ██████
██      ██  ██  ██       ██    ██      ██ ██ ██ ██ ██  ██ ██     ██  ██    ██    ██
███████ ██  ██  ██       ██    █████   ██  ███  ██ ██████ ██     ██████    ██    ██████
     ██ ██  ██  ██       ██    ██      ██       ██ ██     ██     ██  ██    ██    ██
███████ ██████  ██████   ██    ██████  ██       ██ ██     ██████ ██  ██    ██    ██████

◎ A Base Project Setup for SDL/ImGui

SDL TEMPLATE

C++ Rendering/Graphics project template with SDL and Dear ImGUI.

license last-commit repo-top-language repo-language-count

Table of Contents

📍 Overview

This repository template should allow for a fast and hassle-free kick start of your next SDL project using CMake. Thanks to GitHub's nature of templates, you can fork this repository without inheriting its Git history.

The template starts out very basic, but might receive additional features over time:

  • Basic CMake script to build your project and link GLFW on any operating system
  • Basic GitHub Actions script for all major platforms

What is this?

C++ SDL project template with Dear ImGUI, and SDL 3. This repository is a template OpenGL project configured using CMake. It supports cross-platform builds, and provides a good starting point to begin SDL development.

For whom is this for?

  • Prototyping
  • Getting started with game programming
  • Getting started with graphics programming

👾 Features

  • Modular project structure: sources, headers, and entry points are organized in distinct folders for clarity and scalability.
  • Modern CMake build system for easy, cross-platform compilation and dependency management.
  • Out-of-the-box support for SDL3, Dear ImGui.
  • Continuous integration via GitHub Actions for automated builds and testing.
  • Example code for window creation, rendering loop, and GUI integration.
  • Easily extensible for additional libraries or custom modules.
  • Cross-platform: Windows, Linux, and macOS support.
  • Optional support for Conan for advanced dependency management.
  • Ready-to-use template for rapid prototyping, game development, or graphics research.

📁 Project Structure

🚀 Getting Started

This project leverages several modern libraries and tools to streamline development, building, and documentation.

📚 Libraries

Library Purpose Details
SDL Window/Renderer Cross-platform renderer
ImGui Graphical User Interface Immediate Mode Graphical User Interface

🧑‍💻 Compilers

Compiler Platforms Minimum Version
Clang Linux/Windows/MacOs 10
MSVC Windows Only 2019
GNU/MinGW Linux/Windows/MacOs9

🛠️ Build Tools

Cmake - Cross-platform build configuration
Make - Linux/macOS build Automation
Script

🧰 Additional Tools

  • Git – Version control and submodule/dependency management
  • Doxygen – (Optional) Generate code documentation
  • Ninja – (Optional) Faster alternative build backend for CMake
  • Conan for install packages (optional)

⚙️ Installation

Using CMake

Configuring and Building

Using Make

Configuring and Building

🤖 Usage

🧪 Testing

🔰 Contributing

Contributing Guidelines
  1. Fork the Repository: Start by forking the project repository to your github account.
  2. Clone Locally: Clone the forked repository to your local machine using a git client.
    git clone --recursive https://github.com/djoezeke/SDLTem
  3. Create a New Branch: Always work on a new branch, giving it a descriptive name.
    git checkout -b new-feature-x
  4. Make Your Changes: Develop and test your changes locally.
  5. Commit Your Changes: Commit with a clear message describing your updates.
    git commit -m 'Implemented new feature x.'
  6. Push to github: Push the changes to your forked repository.
    git push origin new-feature-x
  7. Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
  8. Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
Contributor Graph

🙌 Acknowledgments

References

More Reading

📃 License

This project is protected under the MIT License. For more details, refer to the LICENSE file.

About

SDLTem- Starter is a Template for SDL Projects with Cmake Pre-Configured.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published