cgfx

所属分类:OpenGL
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2023-08-27 16:11:18
上 传 者sh-1993
说明:  具有SDL2和OpenGL的C图形编程模板,
(C graphics programming template with SDL2 & OpenGL,)

文件列表:
CMakeLists.txt (1797, 2023-09-28)
LICENSE (1060, 2023-09-28)
extern/ (0, 2023-09-28)
extern/CMakeLists.txt (25, 2023-09-28)
extern/haikal/ (0, 2023-09-28)
meshexport.hdalc (6392, 2023-09-28)
resource/ (0, 2023-09-28)
resource/awesomeface.png (59277, 2023-09-28)
resource/cgfx.afphoto (428284, 2023-09-28)
resource/cgfx.png (13840, 2023-09-28)
resource/container.jpg (184939, 2023-09-28)
resource/lowres.jpg (62410, 2023-09-28)
resource/simple.frag (286, 2023-09-28)
resource/simple.vert (317, 2023-09-28)
resource/toylowres.jpg (56916, 2023-09-28)
resource/wall.jpg (256989, 2023-09-28)
scripts/ (0, 2023-09-28)
source/ (0, 2023-09-28)
source/core.h (407, 2023-09-28)
source/fileops.c (524, 2023-09-28)
source/fileops.h (169, 2023-09-28)
source/houModelExport.py (798, 2023-09-28)
source/main.c (8745, 2023-09-28)
source/models/ (0, 2023-09-28)
source/models/cubeIndices.txt (191, 2023-09-28)
source/models/cubeVertices.txt (983, 2023-09-28)
source/models/pigIndices.txt (93264, 2023-09-28)
source/models/pigVertices.txt (534780, 2023-09-28)
source/models/rubberIndices.txt (498984, 2023-09-28)
source/models/rubberVertices.txt (913034, 2023-09-28)
source/models/sphereIndices.txt (983, 2023-09-28)
source/models/sphereVertices.txt (2733, 2023-09-28)
source/shader.c (1134, 2023-09-28)
source/shader.h (318, 2023-09-28)
thirdparty/ (0, 2023-09-28)
thirdparty/glad/ (0, 2023-09-28)
thirdparty/glad/include/ (0, 2023-09-28)
... ...

# cgfx C graphics programming template using SDL2 & OpenGL: Compiles to Win64 MacOS Linux with `compile_commands.json` for clangd LSP support. ### Linux & Darwin Run: * `mkdir build` * `cd build` * `cmake ..` * `make` * `./cgfx` ### Win64 Run: * from `x64 Native Tools Command Prompt for VS 2019` * [Install & Integrate VCPKG](https://learn.microsoft.com/en-us/vcpkg/examples/installing-and-using-packages) * Install dependencies through VCPKG. * `scripts\build.bat -b` to build `.sln` & `compile_commands.json`. (check DCMAKE_TOOLCHAIN_FILE path) * `scripts\build.bat -cr` to compile & run exe. ### Win64 Toolchain: * [Visual Studio 2022 & MSBuild](https://visualstudio.microsoft.com/downloads/) * [Clang Power Tools VS Extension](https://marketplace.visualstudio.com/items?itemName=caphyon.ClangPowerTools) * [vcpkg](https://github.com/Microsoft/vcpkg/) * [CMake](https://cmake.org/) ### Dependencies: * [SDL2](https://www.libsdl.org/) * [CGLM](https://github.com/recp/cglm) ### Vendored: * [GLAD](https://glad.dav1d.de/) * [stb_image](https://github.com/nothings/stb) * [Clang Power Tools script](https://github.com/Caphyon/clang-power-tools/tree/master/ClangPowerTools/ClangPowerTools/Tooling/v1)

近期下载者

相关文件


收藏者