Code::blocks 没有从 sdl 库中找到 SDL_FreeTexture 命令
Code::blocks does not find the SDL_FreeTexture command from the sdl library
我正在尝试制作一个简单的 "PickStick" 游戏来使用 C++ 学习 sdl2。一切正常我可以创建 window、加载纹理、创建渲染等...但是当我尝试使用命令 sdl_FreeTexture("the texture name here");
时 compiler/code::blocks 根本找不到它库和输出
Error : 'SDL_FreeTexture' was not declared in this scope
改用这个:
SDL_DestroyTexture("the texture name here");
我正在尝试制作一个简单的 "PickStick" 游戏来使用 C++ 学习 sdl2。一切正常我可以创建 window、加载纹理、创建渲染等...但是当我尝试使用命令 sdl_FreeTexture("the texture name here");
时 compiler/code::blocks 根本找不到它库和输出
Error : 'SDL_FreeTexture' was not declared in this scope
改用这个:
SDL_DestroyTexture("the texture name here");