2017-01-09 32 views
0

我正在嘗試製作一個siple「PickStick」遊戲來學習使用C++的sdl2。一切正常,我可以創建窗口,加載紋理,創建rendere,等等。但是當我嘗試使用命令sdl_FreeTexture("the texture name here");編譯/代碼::塊根本就沒有在圖書館和輸出Code :: blocks找不到SDL庫中的SDL_FreeTexture命令

發現錯誤: 'SDL_FreeTexture' 在此範圍

+4

而你_sure_ SDL有一個稱爲'SDL_FreeTexture'功能。我知道有['SDL_DestroyTexture'](https://wiki.libsdl.org/SDL_DestroyTexture?highlight=%28%5CbCategoryAPI%5Cb%29%7C%28SDLFunctionTemplate%29)... –

+0

很確定看看這個鏈接: http://forums.libsdl.org/viewtopic.php?t=9493&sid=31c8c5008bc96ed3a7cbb18eccb7d3aa –

+0

沒關係,我只是找到了答案 –

回答

0

用此代替未聲明: SDL_DestroyTexture("the texture name here");