我正在考虑是否尝试使用 SDL 作为 DirectX 的替代品,似乎我只创建 2D 游戏,但是我找不到任何地方是否需要在最终用户计算机上安装 SDL 才能玩用 C# 开发的游戏,使用 SDL 进行图形处理。
有人知道吗?
最佳答案
假设您使用的是:
最终用户确实需要在其计算机上安装 SDL 库/二进制文件,但是,他们不需要自己手动安装 SDL。您可以自己分发 SDL 二进制文件作为您自己的游戏安装程序的一部分。
SDL 本身(不是 SDL.NET)的许可证甚至允许您将 SDL 源代码“静态”链接到您自己的源代码中。来自 SDL Licensing FAQ :
Q: What license does SDL use?
A: SDL is freely available under the GNU LGPL license, and may be used in both free and commercial applications.Q: Can I use SDL in a commercial application?
A: Yes! If you link dynamically (via .dll's, .so's or using other dynamic linking devices) then you do not need to do anything. If you link statically (include the SDL source inside your project when you compile) you have to provide some way for your customer to relink your application with a custom version of SDL. The details are available at: http://www.libsdl.org/license.php
The absolute newbies guide to SDL.NET将为您提供所需库的列表,包括来自 SDL.NET(.NET“包装器”)和 SDL 本身的库。
关于C# 和 SDL - 最终用户是否需要安装 SDL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1581966/