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:
 .[[SDL_CreateTexture]]

SDL_QueryTexture

Use this function to query the attributes of a texture.

Syntax

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

Function Parameters

textureID

a texture to be queried

format

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

access

a pointer filled in with the actual access to the texture

w

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

h

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

Remarks

You can add useful comments here


CategoryAPI, CategoryVideo

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

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