Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2009-12-05 21:33:13
Size: 1257
Editor: SheenaSmith
Comment: related functions?
Revision 3 as of 2009-12-12 07:06:57
Size: 1257
Editor: SheenaSmith
Comment: format update
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
Returns 0 on success or -1 if the texture is not valid''; call [[SDL_GetError]]() for more information''. Returns 0 on success or -1 if the texture is not valid; call [[SDL_GetError]]() for more information.
Line 35: Line 35:
You can add useful comments here ''You can add useful comments here''

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