Mercurial > sdl-ios-xcode
diff include/SDL_video.h @ 1678:90bf530ced8e SDL-1.3
SDL_SetVideoMode() compiles now...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 14 Jun 2006 06:14:26 +0000 |
parents | e136f3ffdc1b |
children | 80a5e6a4e1e2 |
line wrap: on
line diff
--- a/include/SDL_video.h Tue Jun 13 04:37:45 2006 +0000 +++ b/include/SDL_video.h Wed Jun 14 06:14:26 2006 +0000 @@ -767,7 +767,7 @@ /** * \fn SDL_TextureID SDL_CreateTextureFromSurface(Uint32 format, int access, SDL_Surface *surface) * - * \brief Create a texture from an existing surface + * \brief Create a texture from an existing surface. * * \param format The format of the texture, or 0 to pick an appropriate format * \param access One of the enumerated values in SDL_TextureAccess @@ -804,6 +804,20 @@ int *w, int *h); /** + * \fn int SDL_QueryTexturePixels(SDL_TextureID textureID, void **pixels, int pitch) + * + * \brief Query the pixels of a texture, if the texture does not need to be locked for pixel access. + * + * \param texture A texture to be queried, which was created with SDL_TextureAccess_Local + * \param pixels A pointer filled with a pointer to the pixels for the texture + * \param pitch A pointer filled in with the pitch of the pixel data + * + * \return 0 on success, or -1 if the texture is not valid, or must be locked for pixel access. + */ +extern DECLSPEC int SDLCALL SDL_QueryTexturePixels(SDL_TextureID textureID, + void **pixels, int *pitch); + +/** * \fn int SDL_SetTexturePalette(SDL_TextureID textureID, SDL_Color * colors, int firstcolor, int ncolors) * * \brief Update an indexed texture with a color palette