- 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.
推薦閱讀
- Git Version Control Cookbook
- 自己動手寫搜索引擎
- Learning Apex Programming
- 微服務設計原理與架構
- Mastering Kali Linux for Web Penetration Testing
- 21天學通C++(第6版)
- Mastering Apache Spark 2.x(Second Edition)
- Building RESTful Python Web Services
- Node.js全程實例
- Asynchronous Android Programming(Second Edition)
- Maker基地嘉年華:玩轉樂動魔盒學Scratch
- 單片機原理及應用技術
- 監控的藝術:云原生時代的監控框架
- Django Design Patterns and Best Practices
- Application Development with Swift