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

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.

主站蜘蛛池模板: 东乡| 全州县| 彰化县| 康马县| 咸宁市| 安福县| 沙河市| 万年县| 博乐市| 洪泽县| 泸州市| 南和县| 分宜县| 中山市| 遂平县| 天柱县| 清水河县| 科技| 延津县| 文山县| 吴忠市| 西吉县| 砚山县| 益阳市| 射洪县| 蒙阴县| 宜兴市| 和龙市| 泉州市| 隆子县| 志丹县| 巴南区| 襄樊市| 新巴尔虎左旗| 社旗县| 原平市| 都江堰市| 周口市| 会泽县| 海宁市| 蒲城县|