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

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.

主站蜘蛛池模板: 方正县| 仪征市| 东海县| 桐乡市| 麻江县| 车险| 辉县市| 永德县| 乌兰县| 唐海县| 庐江县| 鄄城县| 连城县| 哈尔滨市| 吴江市| 怀仁县| 临沭县| 光山县| 旌德县| 南通市| 米泉市| 南溪县| 邻水| 洪江市| 华安县| 四川省| 凌源市| 叶城县| 安仁县| 南通市| 洛隆县| 玛多县| 枣庄市| 九龙城区| 乌兰县| 多伦县| 白玉县| 介休市| 蛟河市| 蒙山县| 综艺|