Comments (6)
附上代码
#include "PainterEngine/PainterEngineHelper.h"
int main() {
PX_Initialize((char*)"First PainterEngine Project", 800, 600);
while (PX_Loop()) {
;
}
}
from painterengine.
VS2019 禁用了fopen 标准库函数,该函数在PainterEngineHelper中引用,请在 项目->属性->C/C++->预处理器->预处理器定义中添加_CRT_SECURE_NO_WARNINGS或者修改该函数为fopen_s
PainterEngine/PainterEngineHelper.h 已更新该宏
PainterEngine 核心部分为纯C语言开发.cpp引用代码可以自行增加该宏
from painterengine.
1>c:\users\ziyht\desktop\workspace\painterengine\space old driver\space old driver\sod_runtime.h(7): fatal error C1083: 无法打开包括文件: “../../../PainterEngine/platform/windows/Platform_Windows_D2D.h”: No such file or directory
1> SOD_Game.c
1>c:\users\ziyht\desktop\workspace\painterengine\space old driver\space old driver\sod_runtime.h(7): fatal error C1083: 无法打开包括文件: “../../../PainterEngine/platform/windows/Platform_Windows_D2D.h”: No such file or directory
1> MatrixEffect_ui.c
1>c1 : fatal error C1083: 无法打开源文件: “....\PainterEngine\Effect\MatrixEffect_ui.c”: No such file or directory
1> 正在生成代码...
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
编译 space old dirver 报的错,查看了一下,确实没有相关文件,.h 和 .c 均没有
from painterengine.
没有安装Direct2D
可以考虑vcpkg
from painterengine.
该错误是因为没有配置正确的路径导致的,可以依据情况修改对应include到正确的位置,这些代码在painterengine里都可以找到
from painterengine.
目前新版本已修正该问题
from painterengine.
Related Issues (20)
- 在windows上使用MingW编译出错`unknown type name '__in'` HOT 1
- 此项目底层依赖OpenGL? HOT 1
- 渐变色,网格渐变 HOT 1
- 基于 PainterEngine Public 的 live 2d 编辑器编译失败 HOT 2
- 编译 linux 平台失败 HOT 1
- 或许是个bug HOT 1
- https://www.painterengine.com 无法访问此网站 HOT 1
- painterengine.com->can't reach this page HOT 1
- 拼写错误 HOT 1
- 内存池的调试检查在多线程下引发异常 HOT 1
- there is no px_audio.c in platform/linux/ directory HOT 2
- 我在docker linux gcc环境下make,make报错 HOT 1
- 变量名拼写错误? HOT 1
- Web输入shift+2和小键盘返回错误的字符串
- 有机会提供winform范例吗? HOT 1
- windows平台的编译目标设置错误
- 既然是跨平台的,能不能支持下 macOS 呢? HOT 1
- 如何让PainterEngine使用平台相关的2D渲染器? HOT 1
- Translate much of the untranslated Chinese documentations and PainterEngine Make application into English. HOT 4
- 官网好像挂了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from painterengine.