- 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.
推薦閱讀
- Learn Swift by Building Applications
- Learn Scala Programming
- Java虛擬機(jī)字節(jié)碼:從入門到實戰(zhàn)
- Web Application Development with MEAN
- Reactive Android Programming
- Mastering JBoss Enterprise Application Platform 7
- Nginx實戰(zhàn):基于Lua語言的配置、開發(fā)與架構(gòu)詳解
- 前端HTML+CSS修煉之道(視頻同步+直播)
- SQL Server與JSP動態(tài)網(wǎng)站開發(fā)
- Unity 2017 Mobile Game Development
- Procedural Content Generation for C++ Game Development
- IBM Cognos TM1 Developer's Certification guide
- Node.js 6.x Blueprints
- 算法超簡單:趣味游戲帶你輕松入門與實踐
- Visual FoxPro程序設(shè)計教程(第3版)