English | 中文
一个没有其他外部依赖的OpenGL程序模板。起因是在不同平台重复配置相关依赖项过于繁琐,故使用CMake创建了一个多平台可用的模板,并对部分常用功能进行了封装。同时实现了简单的将图片、shader等资源嵌入可执行程序的功能。
具体使用可以参考./example
目录下的相关例子。
git submodule update --init
mkdir build
cd build
cmake .. -G "MinGW Makefiles"
make
-
选择菜单
文件
->打开
->CMake
,选择项目根目录的CMakeLists.txt,等待文件索引完成。 -
选择菜单
CMake
->全部生成
git submodule update --init
mkdir build
cd build
cmake ..
make
git submodule update --init
mkdir build
cd build
cmake ..
make
github action编译可以通过,但由于没有相关设备,未经过实机测试。 (Update: 经测试可以正常运行)
-
assimp: The official Open-Asset-Importer-Library Repository.
-
bin2c: A very simple utility for converting a binary file to a c source file.
-
glew-cmake: GLEW is a cross-platform open-source C/C++ extension loading library.
-
glfw: A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input.
-
glm: GLM is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specifications.
-
imgui: ImGui is a bloat-free graphical user interface library for C++.
-
mango: A multi-platform low-level development framework for graphics programmers.