|
Size: 596
Comment: format update
|
← Revision 8 as of 2014-12-12 00:33:33 ⇥
Size: 653
Comment: Per wiki feedback, added remark regarding what happens if users pass NULL
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 11: | Line 11: |
| void SDL_DestroyTexture(SDL_TextureID textureID) | void SDL_DestroyTexture(SDL_Texture* texture) |
| Line 15: | Line 15: |
| ||'''textureID'''||the texture to destroy|| | ||'''texture'''||the texture to destroy|| |
| Line 23: | Line 23: |
| ''You can add useful comments here'' | Passing NULL or an otherwise invalid texture will set the SDL error message to "Invalid texture". |
| Line 30: | Line 30: |
| [[CategoryAPI]], [[CategoryVideo]] | [[CategoryAPI]], [[CategoryRender]] |
SDL_DestroyTexture
Use this function to destroy the specified texture.
Syntax
void SDL_DestroyTexture(SDL_Texture* texture)
Function Parameters
texture |
the texture to destroy |
Code Examples
You can add your code example here
Remarks
Passing NULL or an otherwise invalid texture will set the SDL error message to "Invalid texture".
