-
Notifications
You must be signed in to change notification settings - Fork 1
HelloWindow
github-actions[bot] edited this page Aug 19, 2026
·
1 revision
OpenGL 图形编程任务中最简单的一道:从零搭建一个可运行、可关闭的 OpenGL 窗口示例,考察模型对窗口/上下文初始化与资源清理的基本功。
使用 C++、GLFW 和 GLAD,以 OpenGL 4.6 为目标创建一个可运行的 Visual Studio C++ OpenGL 项目,打开一个窗口并持续渲染,直到用户关闭它。
- 窗口大小
800 x 600,标题OpenGL HelloWindow Test - 清除颜色
(0.2, 0.3, 0.8, 1.0),每帧清空窗口 - 按
Esc可关闭窗口 - 可在 MSBuild 的
Debug|x64配置下构建
完整任务定义:HelloWindow_TASK.md