C# 和 SDL - 最终用户是否需要安装 SDL?

标签 c# installation sdl

我正在考虑是否尝试使用 SDL 作为 DirectX 的替代品,似乎我只创建 2D 游戏,但是我找不到任何地方是否需要在最终用户计算机上安装 SDL 才能玩用 C# 开发的游戏,使用 SDL 进行图形处理。

有人知道吗?

最佳答案

假设您使用的是:

SDL.NET

最终用户确实需要在其计算机上安装 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/

相关文章:

c# - BHO OnDocumentComplete 仅适用于顶部框架?

c# - 在上传的文件上添加日期戳

c# - VS2010代码分析及CA1800 : Microsoft Performance

r - 在 R 上安装 TDA 包时出错

c - SDL_MapRGB 崩溃且没有错误消息

c# - 在托管代码中使用 win32

linux - 安装 gcc 4.2.4

python - 无法使用 pip 安装 Pygame

c++ - 如何在 SDL 2 中获取并保存 BMP 屏幕截图?

haskell - 像 sdl-config 这样的配置工具如何与 cabalized 项目一起使用?