We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您可以查看 https://github.com/AMDmi3/libSDL2pp。它是 SDL2 和相关库(SDL2_ttf、SDL2_image)的 C++11/14 绑定。看起来它也满足了您的风格要求 - 它大量使用了现代 C++ 功能,并且似乎通常提供了使用 SDL2 原语的安全且简单的方法。
You could check out https://github.com/AMDmi3/libSDL2pp. It is C++11/14 binding for SDL2 and related libraries (SDL2_ttf, SDL2_image). Seems like it also satisfies your style requirements - it makes much use of modern C++ features and seem to generally provides safe and easy way of using SDL2 primitives.
SDLmm 是 SDL 的 C++ 包装器。我不确定它最后一次更新是什么时候,而且我也不能保证所使用的 C++ 风格。
SDLmm is a C++ wrapper for SDL. I'm not sure when it was last updated though and I can't vouch for the style of C++ used either.
请原谅个人插件,但我一直在致力于这样一个库。
https://github.com/CYBORUS/cyborus-game-engine/tree /master/CGE
向全世界发布它并不是我的初衷,因此它缺乏文档。然而,如果有足够的兴趣,我会非常乐意将这个 CGE 文件夹分拆到自己的项目中。
(CGE 代表 CYBORUS 游戏引擎。它正是您所要求的。例如,它将 SDL_Surface 结构安全地保存在 CGE::Image 类中。)
Pardon the personal plug, but I've been working on just such a library.
https://github.com/CYBORUS/cyborus-game-engine/tree/master/CGE
It was not my original intent to release it to the world, so it lacks documentation. However, if there were enough interest, I would be more than happy to spin off this CGE folder into its own project.
(CGE stands for CYBORUS Game Engine. It does precisely what you are asking for. For example, it keeps SDL_Surface structs safely inside a class CGE::Image.)