mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-23 13:09:11 +00:00
Improved documentation for SDL_Surface fields
This commit is contained in:
parent
13c5d1092f
commit
e3dbd74fe7
1 changed files with 6 additions and 5 deletions
|
@ -108,11 +108,12 @@ typedef struct SDL_SurfaceData SDL_SurfaceData;
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_Surface
|
typedef struct SDL_Surface
|
||||||
{
|
{
|
||||||
SDL_SurfaceFlags flags; /**< Read-only */
|
SDL_SurfaceFlags flags; /**< The flags of the surface, read-only */
|
||||||
SDL_PixelFormat format; /**< Read-only */
|
SDL_PixelFormat format; /**< The format of the surface, read-only */
|
||||||
int w, h; /**< Read-only */
|
int w; /**< The width of the surface, read-only. */
|
||||||
int pitch; /**< Read-only */
|
int h; /**< The height of the surface, read-only. */
|
||||||
void *pixels; /**< Read-only pointer, writable pixels if non-NULL */
|
int pitch; /**< The distance in bytes between rows of pixels, read-only */
|
||||||
|
void *pixels; /**< A pointer to the pixels of the surface, the pixels are writeable if non-NULL */
|
||||||
|
|
||||||
int refcount; /**< Application reference count, used when freeing surface */
|
int refcount; /**< Application reference count, used when freeing surface */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue