|
Size: 2966
Comment: update content - w/ Sam
|
Size: 3225
Comment: update content - w/ Sam
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | ||<tablewidth="100%"style="color: rgb(255, 0, 0); text-align: center;">DRAFT || |
| Line 11: | Line 12: |
| ||<style="color: #808080;">Uint32||<style="color: #808080;">'''flags'''||<style="color: #808080;">internal|| ||[[SDL_PixelFormat]]*||'''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)|| ||<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|| ||[[SDL_Rect]]||'''clip_rect'''||an [[SDL_Rect]] structure used to clip blits to the surface which can be set by [[SDL_SetClipRect]]() (read-only)|| ||<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|| |
||<style="color: rgb(128, 128, 128);">Uint32 ||<style="color: rgb(128, 128, 128);">'''flags''' ||<style="color: rgb(128, 128, 128);">internal || ||[[SDL_PixelFormat]]* ||'''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) || ||<style="color: rgb(128, 128, 128);">int ||<style="color: rgb(128, 128, 128);">'''locked''' ||<style="color: rgb(128, 128, 128);">internal || ||<style="color: rgb(128, 128, 128);">void* ||<style="color: rgb(128, 128, 128);">'''lock_data''' ||<style="color: rgb(128, 128, 128);">internal || ||[[SDL_Rect]] ||'''clip_rect''' ||an [[SDL_Rect]] structure used to clip blits to the surface which can be set by [[SDL_SetClipRect]]() (read-only) || ||<style="color: rgb(128, 128, 128);">SDL_!BlitMap* ||<style="color: rgb(128, 128, 128);">'''map''' ||<style="color: rgb(128, 128, 128);">internal; info for fast blit mapping to other surfaces || ||<style="color: rgb(128, 128, 128);">int ||<style="color: rgb(128, 128, 128);">'''format_version''' ||<style="color: rgb(128, 128, 128);">internal; bumped at every change to invalidate blit maps || ||int ||'''refcount''' ||reference count that can be incremented by the application || |
| Line 29: | Line 31: |
| Line 33: | Line 34: |
| Line 35: | Line 35: |
| .[[SDL_SDL_PixelFormat]] .[[SDL_Rect]] |
. [[SDL_SDL_PixelFormat]] . [[SDL_Rect]] |
| Line 39: | Line 39: |
| .[[SDL_BlendFillRect]] .[[SDL_BlendFillRects]] .[[SDL_BlendLine]] .[[SDL_BlendLines]] .[[SDL_BlendPoint]] .[[SDL_BlendPoints]] .[[SDL_BlendRect]] .[[SDL_BlendRects]] .[[SDL_ConvertSurface]] .[[SDL_CreateRGBSurface]] .[[SDL_CreateRGBSurfaceFrom]] .[[SDL_DrawLine]] .[[SDL_DrawLines]] .[[SDL_DrawPoint]] .[[SDL_DrawPoints]] .[[SDL_DrawRect]] .[[SDL_DrawRects]] .[[SDL_FillRect]] .[[SDL_FillRects]] .[[SDL_FreeSurface]] .[[SDL_GetClipRect]] .[[SDL_GetColorKey]] .[[SDL_GetSurfaceAlphaMod]] .[[SDL_GetSurfaceBlendMode]] .[[SDL_GetSurfaceColorMod]] .[[SDL_GetSurfaceScaleMode]] .[[SDL_LoadBMP_RW]] .[[SDL_LockSurface]] .[[SDL_LowerBlit]] .[[SDL_MUSTLOCK]] .[[SDL_SaveBMP_RW]] .[[SDL_SetClipRect]] .[[SDL_SetColorKey]] .[[SDL_SetSurfaceAlphaMod]] .[[SDL_SetSurfaceBlendMode]] .[[SDL_SetSurfaceColorMod]] .[[SDL_SetSurfacePalette]] .[[SDL_SetSurfaceRLE]] .[[SDL_SetSurfaceScaleMode]] .[[SDL_SoftStretch]] .[[SDL_UnlockSurface]] .[[SDL_UpperBlit]] |
. [[SDL_BlendFillRect]] . [[SDL_BlendFillRects]] . [[SDL_BlendLine]] . [[SDL_BlendLines]] . [[SDL_BlendPoint]] . [[SDL_BlendPoints]] . [[SDL_BlendRect]] . [[SDL_BlendRects]] . [[SDL_ConvertSurface]] . [[SDL_CreateRGBSurface]] . [[SDL_CreateRGBSurfaceFrom]] . [[SDL_DrawLine]] . [[SDL_DrawLines]] . [[SDL_DrawPoint]] . [[SDL_DrawPoints]] . [[SDL_DrawRect]] . [[SDL_DrawRects]] . [[SDL_FillRect]] . [[SDL_FillRects]] . [[SDL_FreeSurface]] . [[SDL_GetClipRect]] . [[SDL_GetColorKey]] . [[SDL_GetSurfaceAlphaMod]] . [[SDL_GetSurfaceBlendMode]] . [[SDL_GetSurfaceColorMod]] . [[SDL_GetSurfaceScaleMode]] . [[SDL_LoadBMP_RW]] . [[SDL_LockSurface]] . [[SDL_LowerBlit]] . [[SDL_MUSTLOCK]] . [[SDL_SaveBMP_RW]] . [[SDL_SetClipRect]] . [[SDL_SetColorKey]] . [[SDL_SetSurfaceAlphaMod]] . [[SDL_SetSurfaceBlendMode]] . [[SDL_SetSurfaceColorMod]] . [[SDL_SetSurfacePalette]] . [[SDL_SetSurfaceRLE]] . [[SDL_SetSurfaceScaleMode]] . [[SDL_SoftStretch]] . [[SDL_UnlockSurface]] . [[SDL_UpperBlit]] |
| Line 83: | Line 83: |
| [[CategoryStruct]], [[CategorySurface]] | CategoryStruct, CategorySurface |
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
