THIS FUNCTION HAS BEEN REMOVED FROM THE API.
THIS PAGE WILL BE DELETED.

SDL_QueryTexturePixels

Use this function to query the pixels of a texture, if the texture does not need to be locked for pixel access.

Syntax

int SDL_QueryTexturePixels(SDL_Texture* texture,
                           void**        pixels, 
                           int*          pitch)

Function Parameters

texture

the texture to query, which was created with SDL_TEXTUREACCESS_STREAMING

pixels

a pointer filled in with a pointer to the pixels for the texture

pitch

a pointer filled in with the pitch of the pixel data

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryRender

SDL_QueryTexturePixels (last edited 2011-07-01 23:34:15 by SheenaSmith)

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