Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2009-12-05 21:32:01
Size: 1232
Editor: SheenaSmith
Comment: create page, add content
Revision 2 as of 2009-12-05 21:33:13
Size: 1257
Editor: SheenaSmith
Comment: related functions?
Deletions are marked like this. Additions are marked like this.
Line 38: Line 38:


Use this function to query the attributes of a texture.


int SDL_QueryTexture(SDL_TextureID textureID,
                     Uint32*       format, 
                     int*          access,
                     int*          w, 
                     int*          h)

Function Parameters


a texture to be queried


a pointer filled in with the raw format of the texture; the actual format may differ, but pixel transfers will use this format


a pointer filled in with the actual access to the texture


a pointer filled in with the width of the texture in pixels


a pointer filled in with the height of the texture in pixels

Return Value

Returns 0 on success or -1 if the texture is not valid; call SDL_GetError() for more information.

Code Examples

You can add your code example here


You can add useful comments here

CategoryAPI, CategoryVideo

None: SDL_QueryTexture (last edited 2014-09-22 17:22:05 by PhilippWiesemann)

Please include your contact information if you'd like to receive a reply.