THIS FUNCTION HAS BEEN REMOVED FROM THE API. |
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

