Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-02-26 20:03:50
Size: 3230
Editor: SheenaSmith
Comment: question added
Revision 3 as of 2010-07-25 23:37:32
Size: 3305
Editor: SheenaSmith
Comment: update formatting
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
||Uint32||'''flags'''||internal, read-only; see [[#Remarks|Remarks]] for details|| ||<style="color: #808080;">Uint32||<style="color: #808080;">'''flags'''||<style="color: #808080;">internal, read-only; see [[#Remarks|Remarks]] for details||

DRAFT

SDL_Surface

A structure that contains a collection of pixels used in software blitting.

Data Fields

Uint32

flags

internal, read-only; see Remarks for details

SDL_PixelFormat*

format

read-only

int

w, h

read-only

int

pitch

read-only

void*

pixels

read-write

Application data associated with the surface

void*

userdata

read-write

Information needed for surfaces requiring locks

int

locked

read-only

void*

lock_data

read-only

Clipping information

SDL_Rect

clip_rect

read-only

Info for fast blit mapping to other surfaces

SDL_BlitMap*

map

private (struct)

Format version, bumped at every change to invalidate blit maps

unsigned int Uint?

format_version

private

Reference count -- used when freeing surface

int

refcount

read-mostly

green

Code Examples

You can add your code example here

Remarks

This structure should be treated as read-only, except for pixels, which, if not NULL, contains the raw pixel data for the surface.

The currently supported flags for SDL_Surface are:
or
flags may be 0 or any of the following:

SDL_PREALLOC

surface uses preallocated memory

SDL_RLEACCEL

surface is RLE encoded

Evaluates to true if the surface needs to be locked before access.

  • #define SDL_MUSTLOCK(S) (((S)->flags & SDL_RLEACCEL) != 0)


CategoryStruct

None: SDL_Surface (last edited 2017-07-14 21:51:36 by PhilippWiesemann)

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