Skip to content

Commit

Permalink
Improved documentation for SDL_Surface fields
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 1, 2024
1 parent 13c5d10 commit e3dbd74
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions include/SDL3/SDL_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ typedef struct SDL_SurfaceData SDL_SurfaceData;
*/
typedef struct SDL_Surface
{
SDL_SurfaceFlags flags; /**< Read-only */
SDL_PixelFormat format; /**< Read-only */
int w, h; /**< Read-only */
int pitch; /**< Read-only */
void *pixels; /**< Read-only pointer, writable pixels if non-NULL */
SDL_SurfaceFlags flags; /**< The flags of the surface, read-only */
SDL_PixelFormat format; /**< The format of the surface, read-only */
int w; /**< The width of the surface, read-only. */
int h; /**< The height of the surface, read-only. */
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 */

Expand Down

0 comments on commit e3dbd74

Please sign in to comment.