官术网_书友最值得收藏!

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:

  1. Open glad.c and find the following #include:

    #include <glad/glad.h>

  2. Replace the include path with the relative path of glad.h:

    #include "glad.h"

  3. Similarly, open glad.h and find the following #include:

    #include <KHR/khrplatform.h>

  4. 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.

主站蜘蛛池模板: 丘北县| 临沭县| 连南| 新干县| 蓬溪县| 怀仁县| 保定市| 巨鹿县| 玛多县| 裕民县| 格尔木市| 虞城县| 霞浦县| 聊城市| 乌拉特后旗| 丹寨县| 卢氏县| 陵水| 辰溪县| 溧水县| 定襄县| 永川市| 融水| 杭锦旗| 昭觉县| 北川| 嘉荫县| 湄潭县| 五家渠市| 屏东市| 昌江| 新平| 东明县| 邛崃市| 清水县| 廉江市| 新津县| 淮滨县| 东阿县| 宜兴市| 建平县|