|
Size: 3315
Comment: update content - w/ Sam
|
Size: 2966
Comment: update content - w/ Sam
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 16: | Line 16: |
| ||<:bgcolor="#EDEDED"-3>''Application data associated with the surface''|| | |
| Line 18: | Line 17: |
| ||<:bgcolor="#EDEDED"-3>''Information needed for surfaces requiring locks''|| ||<style="color: #808080;">int||<style="color: #808080;">'''locked'''||<style="color: #808080;">read-only|| ||<style="color: #808080;">void*||<style="color: #808080;">'''lock_data'''||<style="color: #808080;">read-only|| ||<:bgcolor="#EDEDED"-3>''Clipping information''|| |
||<style="color: #808080;">int||<style="color: #808080;">'''locked'''||<style="color: #808080;">internal|| ||<style="color: #808080;">void*||<style="color: #808080;">'''lock_data'''||<style="color: #808080;">internal|| |
| Line 23: | Line 20: |
| ||<:bgcolor="#EDEDED"-3>''Info for fast blit mapping to other surfaces''|| ||<style="color: #808080;">SDL_!BlitMap*||<style="color: #808080;">'''map'''||<style="color: #808080;">internal|| ||<:bgcolor="#EDEDED"-3>''Format version, bumped at every change to invalidate blit maps''|| ||<style="color: #808080;">int||<style="color: #808080;">'''format_version'''||<style="color: #808080;">internal|| ||<:bgcolor="#EDEDED"-3>''Used when freeing surface''|| ||int||'''refcount'''||internal reference count that can be incremented by the application|| |
||<style="color: #808080;">SDL_!BlitMap*||<style="color: #808080;">'''map'''||<style="color: #808080;">internal; info for fast blit mapping to other surfaces|| ||<style="color: #808080;">int||<style="color: #808080;">'''format_version'''||<style="color: #808080;">internal; bumped at every change to invalidate blit maps''|| ||int||'''refcount'''||reference count that can be incremented by the application|| |
DRAFT |
SDL_Surface
A structure that contains a collection of pixels used in software blitting.
Data Fields
Uint32 |
flags |
internal |
format |
the format of the pixels stored in the surface; see SDL_PixelFormat for details (read-only) |
|
int |
w, h |
the width and height in pixels (read-only) |
int |
pitch |
the length of a scanline in bytes (read-only) |
void* |
pixels |
the pointer to the actual pixel data; the surface should be locked by SDL_LockSurface() before accessing this field (read-write) |
void* |
userdata |
an arbitrary pointer you can set (read-write) |
int |
locked |
internal |
void* |
lock_data |
internal |
clip_rect |
an SDL_Rect structure used to clip blits to the surface which can be set by SDL_SetClipRect() (read-only) |
|
SDL_BlitMap* |
map |
internal; info for fast blit mapping to other surfaces |
int |
format_version |
internal; bumped at every change to invalidate blit maps |
int |
refcount |
reference count that can be incremented by the application |
Code Examples
You can add your code example here
Remarks
You can add useful comments here
Related Structures
Related Functions
