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

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.

主站蜘蛛池模板: 武宣县| 娱乐| 昌平区| 望都县| 天等县| 石棉县| 无为县| 三亚市| 千阳县| 松潘县| 惠水县| 和平县| 金华市| 探索| 从江县| 克拉玛依市| 蓬溪县| 平潭县| 登封市| 通许县| 喀喇| 安顺市| 红桥区| 哈密市| 开阳县| 中西区| 石城县| 平昌县| 木里| 房山区| 通河县| 盐山县| 萍乡市| 阳谷县| 永安市| 牟定县| 福泉市| 分宜县| 鸡西市| 紫阳县| 信丰县|