Skip to content

djoezeke/GLFWTem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

◎ A Base Project Setup for GLFW/OpenGL

GLFW TEMPLATE

C++ Rendering/Graphics project template with GLFW, Dear ImGUI, and OpenGL 4.1.

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 GLFW 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++ GLFW project template with GLFW, Dear ImGUI, and OpenGL 4.1. This repository is a template OpenGL project configured using CMake. It supports cross-platform builds, and provides a good starting point to begin OpenGL 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 GLFW, OpenGL 4.1, GLM, GLAD, Dear ImGui, and stb_image.
  • 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.

🚀 Getting Started

  1. Install Git and CMake. Use your system's package manager if available.

☑️ Prerequisites

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

📚 Libraries

Library Purpose Details
GLFW Window/Input Cross-platform window and input management
OpenGL Graphics API Hardware-accelerated rendering
ImGui Graphical User Interface Immediate Mode Graphical User Interface
GLM OpenGL Math Library OpenGL Mathematics (vectors, matrices, etc.)
Glad OpenGL Loader OpenGL function loaders
Stb Image Image Loading Header-only image loading library

🧑‍💻 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/GLFWTem
  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

We would like to express our gratitude to the following projects and individuals whose work made this project possible:

  • GLFW – for providing a robust, cross-platform OpenGL framework.
  • OpenGL – for the graphics API.
  • Dear ImGui – for the immediate mode GUI library (if used).
  • The open-source community for their invaluable libraries, tutorials, and support.
  • Special thanks to all contributors, testers, and users who provided feedback and suggestions.

If you feel your work should be acknowledged here, please open an issue or pull request.

References

More Reading

📃 License

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

Star History Chart

About

GLFWTem - A Starter Template for OpenGL Projects with Cmake Pre-Configured.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published