Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个简单的窗口游戏,我想要一个标准的系统光标而不是 SDL 的黑色光标。如果没有手动创建光标,这可能吗?
据我所知,这是不可能的。由于 SDL 适用于所有主要平台,即使是那些没有默认光标的平台,SDL 创建者决定始终使用自定义光标。绘制默认系统光标应该不会那么难 - 只需加载 .cur 文件并将其绘制为位图。
在 SDL_CreateCursor 的帮助下,您可以显示 4 种类型的默认 SDL 光标。SDL 文档提供了以下信息:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_CreateCursor