[UWP]将C游戏移植到UWP。 [英] [UWP]Porting C game to UWP.

查看:112
本文介绍了[UWP]将C游戏移植到UWP。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对C ++& DirectX,但不是C. 不幸的是,我想尝试使用DirectX 11将诸如Doom或Duke Nukem 3d之类的旧游戏移植到UWP。这里的问题是这两个游戏是用C语言编写的,而我不是想要
来使用像ZDoom这样的现代源端口代码,这些代码在C ++中使用类重写(ZDoom还有大量增加的功能,这些功能无法保持游戏中的香草味)。



现在我可以在UWP应用程序中使用C代码,C ++必须用于包含游戏循环,DirectX代码的源文件,并且它必须从IFrameworkView继承。  由于游戏是C,除了将C代码转换为
C ++之外,我没有看到任何其他选项。  我正在滚动代码,并且在C ++不允许的函数上返回了大量的void指针。

I have some experience with C++ & DirectX, but not C.  Unfortunately I want to try and port an old game such as Doom or Duke Nukem 3d to UWP with DirectX 11.  The problem here is that those two games are written in C and I don't want to use a modern source port's code like ZDoom which is rewritten in C++ using classes (ZDoom also has tons of added features which doesn't keep the vanilla feel to the game).

Now I could use the C code in the UWP app, C++ must be used for the source file that contains the game loop, DirectX code, and it must inherit from IFrameworkView.  Since the game is C I don't see any options other than converting the C code to C++ which could be tough.  I was scrolling through the code and there are tons of void pointers being returned on functions which C++ does not allow.

我有什么选择?  谢谢。

What are my options?  Thanks.

推荐答案

你好xMajestic12x,

Hi xMajestic12x,

我试图让熟悉这个主题的人参与进一步研究这个问题。可能会有一些时间延迟。感谢您的耐心等待。

I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.


这篇关于[UWP]将C游戏移植到UWP。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆