11 MODULE = SDL::PixelFormat PACKAGE = SDL::PixelFormat PREFIX = pixelformat_
15 SDL_PixelFormat -- Stores surface format information
17 typedef struct SDL_PixelFormat {
21 Uint8 Rloss, Gloss, Bloss, Aloss;
22 Uint8 Rshift, Gshift, Bshift, Ashift;
23 Uint32 Rmask, Gmask, Bmask, Amask;
31 pixelformat_palette( pixelformat )
32 SDL_PixelFormat *pixelformat
34 char* CLASS = "SDL::Palette";
36 RETVAL = pixelformat->palette;
42 pixelformat_BitsPerPixel( pixelformat )
43 SDL_PixelFormat *pixelformat
45 RETVAL = pixelformat->BitsPerPixel;
50 pixelformat_BytesPerPixel( pixelformat )
51 SDL_PixelFormat *pixelformat
53 RETVAL = pixelformat->BytesPerPixel;
58 pixelformat_Rloss( pixelformat )
59 SDL_PixelFormat *pixelformat
61 RETVAL = pixelformat->Rloss;
66 pixelformat_Bloss( pixelformat )
67 SDL_PixelFormat *pixelformat
69 RETVAL = pixelformat->Bloss;
74 pixelformat_Gloss( pixelformat )
75 SDL_PixelFormat *pixelformat
77 RETVAL = pixelformat->Gloss;
82 pixelformat_Aloss( pixelformat )
83 SDL_PixelFormat *pixelformat
85 RETVAL = pixelformat->Aloss;
90 pixelformat_Rshift( pixelformat )
91 SDL_PixelFormat *pixelformat
93 RETVAL = pixelformat->Rshift;
98 pixelformat_Bshift( pixelformat )
99 SDL_PixelFormat *pixelformat
101 RETVAL = pixelformat->Bshift;
106 pixelformat_Gshift( pixelformat )
107 SDL_PixelFormat *pixelformat
109 RETVAL = pixelformat->Gshift;
114 pixelformat_Ashift( pixelformat )
115 SDL_PixelFormat *pixelformat
117 RETVAL = pixelformat->Ashift;
122 pixelformat_Rmask( pixelformat )
123 SDL_PixelFormat *pixelformat
125 RETVAL = pixelformat->Rmask;
130 pixelformat_Bmask( pixelformat )
131 SDL_PixelFormat *pixelformat
133 RETVAL = pixelformat->Bmask;
138 pixelformat_Gmask( pixelformat )
139 SDL_PixelFormat *pixelformat
141 RETVAL = pixelformat->Gmask;
146 pixelformat_Amask( pixelformat )
147 SDL_PixelFormat *pixelformat
149 RETVAL = pixelformat->Amask;
154 pixelformat_colorkey( pixelformat )
155 SDL_PixelFormat *pixelformat
157 RETVAL = pixelformat->colorkey;
162 pixelformat_alpha( pixelformat )
163 SDL_PixelFormat *pixelformat
165 RETVAL = pixelformat->alpha;