|
Size: 4441
Comment: update content - table sections
|
Size: 4437
Comment: temp
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 16: | Line 16: |
| ||<bgcolor="#EDEDED"-3>''Application data associated with the surface''|| | ||<:bgcolor="#EDEDED"-3>''Application data associated with the surface''|| |
| Line 18: | Line 18: |
| ||<bgcolor="#EDEDED"-3>''Information needed for surfaces requiring locks''|| | ||<:bgcolor="#EDEDED"-3>''Information needed for surfaces requiring locks''|| |
| Line 21: | Line 21: |
| ||<bgcolor="#EDEDED"-3>''Clipping information''|| | ||<:bgcolor="#EDEDED"-3>''Clipping information''|| |
| Line 23: | Line 23: |
| ||<bgcolor="#EDEDED"-3>''Info for fast blit mapping to other surfaces''|| ||[[SDL_BlitMap]]*||'''map'''||private (struct)|| ||<bgcolor="#EDEDED"-3>''Format version, bumped at every change to invalidate blit maps''|| |
||<:bgcolor="#EDEDED"-3>''Info for fast blit mapping to other surfaces''|| ||<style="color: #808080;">SDL_!BlitMap*||<style="color: #808080;">'''map'''||<style="color: #808080;">Internal (struct)|| ||<:bgcolor="#EDEDED"-3>''Format version, bumped at every change to invalidate blit maps''|| |
| Line 27: | Line 27: |
| ||<bgcolor="#EDEDED"-3>''Reference count -- used when freeing surface''|| | ||<:bgcolor="#EDEDED"-3>''Reference count -- used when freeing surface''|| |
| Line 58: | Line 58: |
| .[[SDL_BlitMap]] <<Color2(green,should this be removed since there's no page?)>> |
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 |
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 |
||
clip_rect |
read-only |
|
Info for fast blit mapping to other surfaces |
||
SDL_BlitMap* |
map |
Internal (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 OR'd together:
SDL_PREALLOC |
surface uses preallocated memory |
SDL_RLEACCEL |
surface is RLE encoded |
green
The following Evaluates to true if the surface needs to be locked before access.
#define SDL_MUSTLOCK(S) (((S)->flags & SDL_RLEACCEL) != 0)
green
*
An SDL_Surface represents an area of graphical memory that can be drawn to. The video framebuffer is returned as an SDL_Surface by SDL_SetVideoMode() and SDL_GetVideoSurface().
green
*
Related Structures
