diff src/video/SDL_blit.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 4da1ee79c9af
line wrap: on
line diff
--- a/src/video/SDL_blit.h	Sun May 21 17:27:13 2006 +0000
+++ b/src/video/SDL_blit.h	Sun May 28 13:04:16 2006 +0000
@@ -27,54 +27,57 @@
 #include "SDL_endian.h"
 
 /* The structure passed to the low level blit functions */
-typedef struct {
-	Uint8 *s_pixels;
-	int s_width;
-	int s_height;
-	int s_skip;
-	Uint8 *d_pixels;
-	int d_width;
-	int d_height;
-	int d_skip;
-	void *aux_data;
-	SDL_PixelFormat *src;
-	Uint8 *table;
-	SDL_PixelFormat *dst;
+typedef struct
+{
+    Uint8 *s_pixels;
+    int s_width;
+    int s_height;
+    int s_skip;
+    Uint8 *d_pixels;
+    int d_width;
+    int d_height;
+    int d_skip;
+    void *aux_data;
+    SDL_PixelFormat *src;
+    Uint8 *table;
+    SDL_PixelFormat *dst;
 } SDL_BlitInfo;
 
 /* The type definition for the low level blit functions */
-typedef void (*SDL_loblit)(SDL_BlitInfo *info);
+typedef void (*SDL_loblit) (SDL_BlitInfo * info);
 
 /* This is the private info structure for software accelerated blits */
-struct private_swaccel {
-	SDL_loblit blit;
-	void *aux_data;
+struct private_swaccel
+{
+    SDL_loblit blit;
+    void *aux_data;
 };
 
 /* Blit mapping definition */
-typedef struct SDL_BlitMap {
-	SDL_Surface *dst;
-	int identity;
-	Uint8 *table;
-	SDL_blit hw_blit;
-	SDL_blit sw_blit;
-	struct private_hwaccel *hw_data;
-	struct private_swaccel *sw_data;
+typedef struct SDL_BlitMap
+{
+    SDL_Surface *dst;
+    int identity;
+    Uint8 *table;
+    SDL_blit hw_blit;
+    SDL_blit sw_blit;
+    struct private_hwaccel *hw_data;
+    struct private_swaccel *sw_data;
 
-	/* the version count matches the destination; mismatch indicates
-	   an invalid mapping */
-        unsigned int format_version;
+    /* the version count matches the destination; mismatch indicates
+       an invalid mapping */
+    unsigned int format_version;
 } SDL_BlitMap;
 
 
 /* Functions found in SDL_blit.c */
-extern int SDL_CalculateBlit(SDL_Surface *surface);
+extern int SDL_CalculateBlit (SDL_Surface * surface);
 
 /* Functions found in SDL_blit_{0,1,N,A}.c */
-extern SDL_loblit SDL_CalculateBlit0(SDL_Surface *surface, int complex);
-extern SDL_loblit SDL_CalculateBlit1(SDL_Surface *surface, int complex);
-extern SDL_loblit SDL_CalculateBlitN(SDL_Surface *surface, int complex);
-extern SDL_loblit SDL_CalculateAlphaBlit(SDL_Surface *surface, int complex);
+extern SDL_loblit SDL_CalculateBlit0 (SDL_Surface * surface, int complex);
+extern SDL_loblit SDL_CalculateBlit1 (SDL_Surface * surface, int complex);
+extern SDL_loblit SDL_CalculateBlitN (SDL_Surface * surface, int complex);
+extern SDL_loblit SDL_CalculateAlphaBlit (SDL_Surface * surface, int complex);
 
 /*
  * Useful macros for blitting routines
@@ -520,3 +523,4 @@
 #endif
 
 #endif /* _SDL_blit_h */
+/* vi: set ts=4 sw=4 expandtab: */