Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 2.66 KB

README-CN.md

File metadata and controls

82 lines (51 loc) · 2.66 KB

OpenGL Template

English | 中文

Build Status Linux Windows OSX

一个没有其他外部依赖的OpenGL程序模板。起因是在不同平台重复配置相关依赖项过于繁琐,故使用CMake创建了一个多平台可用的模板,并对部分常用功能进行了封装。同时实现了简单的将图片、shader等资源嵌入可执行程序的功能。

具体使用可以参考./example目录下的相关例子。

编译

Windows(Mingw)

git submodule update --init
mkdir build
cd build
cmake .. -G "MinGW Makefiles"
make

Windows(Visual Studio 2017及以上)

  1. 选择菜单文件->打开->CMake,选择项目根目录的CMakeLists.txt,等待文件索引完成。

  2. 选择菜单CMake->全部生成

Linux

git submodule update --init
mkdir build
cd build
cmake ..
make

OSX

git submodule update --init
mkdir build
cd build
cmake ..
make

github action编译可以通过,但由于没有相关设备,未经过实机测试。 (Update: 经测试可以正常运行)

第三方库

  1. assimp: The official Open-Asset-Importer-Library Repository.

  2. bin2c: A very simple utility for converting a binary file to a c source file.

  3. glew-cmake: GLEW is a cross-platform open-source C/C++ extension loading library.

  4. glfw: A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input.

  5. glm: GLM is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specifications.

  6. imgui: ImGui is a bloat-free graphical user interface library for C++.

  7. mango: A multi-platform low-level development framework for graphics programmers.

相关文档

  1. Quaternion proof

  2. What are the different texture maps for

截图

Shade

Normal Visualization

Guided filter

Imgui