- Hands-On C++ Game Animation Programming
- Gabor Szauer
- 146字
- 2021-06-30 14:45:47
Adding glad to the project
Once glad.zip is downloaded, extract its contents. Add the following files from the ZIP file to your project. The directory structure does not need to be maintained; all of these files can be placed next to each other:
- src/glad.c
- include/glad/glad.h
- include/KHR/khrplatform.h
These files will be included as normal project files—you don't have to set up include paths—but that does mean that the contents of the files need to be edited:
- Open glad.c and find the following #include:
#include <glad/glad.h>
- Replace the include path with the relative path of glad.h:
#include "glad.h"
- Similarly, open glad.h and find the following #include:
#include <KHR/khrplatform.h>
- Replace the include path with the relative path of khrplatform.h:
#include "khrplatform.h"
glad should now be added to the project and there should be no compilation errors. In the next section, you will start implementing the Win32 window.
推薦閱讀
- Learning Scala Programming
- Java系統分析與架構設計
- 深入淺出Windows API程序設計:編程基礎篇
- 游戲程序設計教程
- C++ 從入門到項目實踐(超值版)
- Java 9模塊化開發:核心原則與實踐
- Linux命令行與shell腳本編程大全(第4版)
- Hands-On Full Stack Development with Go
- Mastering Android Game Development
- Node.js開發指南
- 編寫高質量代碼:改善Objective-C程序的61個建議
- Java程序設計與項目案例教程
- Struts 2.x權威指南
- JQuery風暴:完美用戶體驗
- 零基礎學Java第2版