使用Xcode编译PainterEngine

1.访问www.painterengine.com,在左下角点击下载PainterEngine

2.解压缩PainterEngine压缩包

3.启动Xcode创建一个Command Line Tool新项目,Language选择C

4.将PainterEngine以下五个文件夹拖到项目文件夹中

5.删除platform文件夹中的平台相关文件夹

6.将platform/macos以下文件拖到项目对应文件夹中

7.Xcode project Build Setting

Search Paths Always Search User Paths (Deprecated) 设置为 Yes,Header Search Paths 添加当前项目路径.

Apple Clang - Preprocessing Preprocessor Macros 添加 宏定义GL_SILENCE_DEPRECATION

8.修改px_file.c头文件路径

#include "platform/modules/px_file.h"

现在,你可以编译运行Painterengine程序了