Giter Club home page Giter Club logo

Comments (6)

yuxiaoyuan0406 avatar yuxiaoyuan0406 commented on August 22, 2024

附上代码

#include "PainterEngine/PainterEngineHelper.h"

int main() {
	PX_Initialize((char*)"First PainterEngine Project", 800, 600);
	while (PX_Loop()) {
		;
	}
}

from painterengine.

matrixcascade avatar matrixcascade commented on August 22, 2024

VS2019 禁用了fopen 标准库函数,该函数在PainterEngineHelper中引用,请在 项目->属性->C/C++->预处理器->预处理器定义中添加_CRT_SECURE_NO_WARNINGS或者修改该函数为fopen_s

PainterEngine/PainterEngineHelper.h 已更新该宏

PainterEngine 核心部分为纯C语言开发.cpp引用代码可以自行增加该宏

from painterengine.

ziyht avatar ziyht commented on August 22, 2024

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.

neko-para avatar neko-para commented on August 22, 2024

没有安装Direct2D
可以考虑vcpkg

from painterengine.

matrixcascade avatar matrixcascade commented on August 22, 2024

该错误是因为没有配置正确的路径导致的,可以依据情况修改对应include到正确的位置,这些代码在painterengine里都可以找到

from painterengine.

matrixcascade avatar matrixcascade commented on August 22, 2024

目前新版本已修正该问题

from painterengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.