- 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.
推薦閱讀
- Oracle從入門到精通(第3版)
- LabVIEW入門與實戰(zhàn)開發(fā)100例
- Visual Basic程序設(shè)計教程
- 微信小程序入門指南
- Django 3.0應用開發(fā)詳解
- PHP 7從零基礎(chǔ)到項目實戰(zhàn)
- 計算機應用技能實訓教程
- Practical Predictive Analytics
- Anaconda數(shù)據(jù)科學實戰(zhàn)
- C語言從入門到精通
- HTML5與CSS3權(quán)威指南
- Spark技術(shù)內(nèi)幕:深入解析Spark內(nèi)核架構(gòu)設(shè)計與實現(xiàn)原理
- 零基礎(chǔ)學編程系列(全5冊)
- Java面試一戰(zhàn)到底(基礎(chǔ)卷)
- Visual Basic程序設(shè)計