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

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.

主站蜘蛛池模板: 肇州县| 鹤庆县| 巴林右旗| 平陆县| 石嘴山市| 南召县| 闻喜县| 蓝山县| 大宁县| 江安县| 庆安县| 海原县| 紫金县| 卢湾区| 仁布县| 迁西县| 象州县| 新乡县| 从化市| 栖霞市| 河源市| 平舆县| 台山市| 垫江县| 丁青县| 康定县| 砚山县| 嘉黎县| 西吉县| 朝阳市| 广平县| 儋州市| 余干县| 西昌市| 米易县| 防城港市| 镇江市| 山阴县| 曲麻莱县| 灵川县| 中超|