MIT License

项目介绍

deccer/CMake-Glfw-OpenGL-Template 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 77 个 Star、9 次 Fork。

仓库全名
deccer/CMake-Glfw-OpenGL-Template
开源许可证
MIT License
Star 数
77
Fork 数
9
未关闭 Issue
2

README 摘要

CMake-Glfw-OpenGL-Template What is this? CMake based C++ Project template with support for glfw, glad, imgui, spdlog, tracy, stbi, cgltf This template is split into three parts Project and Project.Library and lib Project will be your actual project/game, Project.Library containing supporting functions, things you might be reusing for something else. It could also contain your graphics/game engine abstractions. This…

完整内容见 GitHub 原始 README 或本页 。

常见问题

CMake-Glfw-OpenGL-Template 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 77 个 Star。

CMake-Glfw-OpenGL-Template 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 CMake-Glfw-OpenGL-Template 的源码?

可以直接克隆仓库:git clone https://github.com/deccer/CMake-Glfw-OpenGL-Template.git,默认分支为 main;安装与运行步骤见仓库 README。

CMake-Glfw-OpenGL-Template 最近还在维护吗?

仓库最近一次更新为 2025年5月24日,当前有 2 个未关闭 Issue;Star 数为 77,可作为社区活跃度的参考。

关于

CMake based C++ Project template with support for glfw, glad, imgui, spdlog, tracy, stb-image and cgltf

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
96
价值分
48
活跃状态
活跃

语言占比

C++
CMake
GLSL

README

CMake-Glfw-OpenGL-Template

What is this?

CMake based C++ Project template with support for glfw, glad, imgui, spdlog, tracy, stbi, cgltf

This template is split into three parts

Project and Project.Library and lib

Project will be your actual project/game, Project.Library containing supporting functions, things you might be reusing for something else. It could also contain your graphics/game engine abstractions.

This template provides a basic Application base class, ready to go, including window creation via glfw, hooking up OpenGL via glad, preparing UI rendering via dear imgui, logging via spdlog and comes with profiler capabilities via tracy too. The example also loads a model with textures via cgltf and stbi.

lib contains the list of dependencies used by projects across the solution, in this case, imgui, spdlog, glm, tracy, stbi and cgltf.

The project provides a tiny example of an application which most graphics-engine/game-engine/game developers/vfx artists or perhaps even researchers write, and its always the same, some window glue, some opengl loading, some mesh rendering and texture loading, spdlog unifies logging here - as each and every project I’ve seen keeps using printf or cout or most likely some self-rolled logger which is really unnecessary.

Screenshot

For whom is this for?

  • Prototyping
  • Game Jams
  • Getting started with programming
  • Getting started with graphics programming

What do you need?

  • CMake
  • for VSCode the CMake Tools extension from Microsoft
  • a compiler of your choice (Clang, GCC, MSVC)

Make sure to run git submodule update --init --recursive upon cloning the repository to ensure that Deccer’s Cubes are included.

Assumptions

This project template assumes the following things

  • OpenGL 4.6 support (can be changed in Application.cpp:59-60)
  • Resolution >= 1920x1080 so that you can actually use the window (can be changed in Application.cpp:66-67)

What’s next?

You most likely dont want to name your program Project and or Project.Library. Use your favorite search tool and replace Project.Library with UE6.Engine and Project with UE6 :)

评论

暂无评论