代码::blocks无法从 sdl 库中找到SDL_FreeTexture命令

Code::blocks does not find the SDL_FreeTexture command from the sdl library

本文关键字:SDL FreeTexture 命令 blocks sdl 代码      更新时间:2023-10-16

我正在尝试制作一个siple "PickStick"游戏来学习带有c ++的sdl2。一切正常,我可以创建窗口、加载纹理、创建渲染等......但是当我尝试使用该命令sdl_FreeTexture("the texture name here");编译器/代码::blocks在库和输出中根本找不到它

错误:"SDL_FreeTexture"未在此范围内声明

请改用这个: SDL_DestroyTexture("the texture name here");