cost 405 ms
找到 SDL2 Image IMG_Init 方法源,但运行时出现 linker 错误 - SDL2 Image IMG_Init method source found but linker error when running

您好,我终于设法通过下载库并将它们附加到 prefix_path 来编译我的 CMakeLists.txt,但是关于 sdl2_image 库似乎存在一些问题。 #include 工作 - vscode 也给了我自动完成功能,我可以检查 sdl2_image 的来源,但是在构建它时我收到这个 li ...

SDL2 C 点击图片 - SDL2 C click on picture

我知道为什么这在这里不起作用,但我只想问是否有办法以某种方式从 void 或 int function 获得高度宽度 w 或 y position。 或者只是如何重新创建它以在精确图片上单击鼠标。 我知道我可以用 main 中的图像来完成这一切,但这只是一个菜单,所以我不想有一个 900 行的 ma ...

SDL2_image 渲染 - 只有在打印源 SDL_Rect 的属性时才能正确渲染图像 - SDL2_image rendering - Images render properly only when source SDL_Rect's properties are printed

我的 C++/SDL2 程序使用Sprites class 和 std::map 指向SDL_Texture的指针和用于加载和渲染图像的成员函数,但是当程序运行时,加载的图像都没有出现在 Z05B1C74CBD962FBF24274 中。 我发现 Sprites 实例被赋予了指向渲染器的正确指针,并 ...

将 SDL2/SD2_image 与 CMake 静态链接 - Linking SDL2/SD2_image statically with CMake

我正在尝试将 SDL2 作为库添加到我的项目中。 我想静态链接它。 我是 c++ 的新手。 1 - 为什么 SDL 网站建议尽可能动态链接? 我了解动态库的好处。 但是,假设用户已经安装了您需要的所有库并准备好在他们的系统中使用 go,这是 IMO 的一个很大的假设。 对我来说,动态链接听起来是个 ...

使用带有 LibZip 的 SDL_image 和 SDL_RWops 将 png 从 zip 加载到表面上,但不会识别 png - Using SDL_image and SDL_RWops with LibZip to load pngs from a zip onto a surface, but won't recognize png

相关代码: 我已经用调试器转储了矢量 rwbuffer 的内容,它是一个有效的 png,但 IMG_Load_RW 仍然给我一个错误“不支持的图像格式”。 我已经安装了 libpng 并且 IMG_Init 似乎工作正常,所以 SDL_image 库必须工作。 显然 libzip 给了我正确的数据 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM