Home | History | Annotate | Download | only in test

Lines Matching refs:surface

2  * Benchmarks surface-to-surface blits in various formats.
56 print_tf_state(" hardware surface available", info->hw_available);
71 static void output_surface_details(const char *name, SDL_Surface *surface)
75 if (surface == NULL)
77 printf("-WARNING- You've got a NULL surface!");
82 printf(" width : %d\n", surface->w);
83 printf(" height : %d\n", surface->h);
84 printf(" depth : %d bits per pixel\n", surface->format->BitsPerPixel);
85 printf(" pitch : %d\n", (int) surface->pitch);
86 printf(" alpha : %d\n", (int) surface->format->alpha);
87 printf(" colorkey : 0x%X\n", (unsigned int) surface->format->colorkey);
90 (int) surface->format->Rmask,
91 (int) surface->format->Rshift,
92 (int) surface->format->Rloss);
94 (int) surface->format->Gmask,
95 (int) surface->format->Gshift,
96 (int) surface->format->Gloss);
98 (int) surface->format->Bmask,
99 (int) surface->format->Bshift,
100 (int) surface->format->Bloss);
102 (int) surface->format->Amask,
103 (int) surface->format->Ashift,
104 (int) surface->format->Aloss);
108 /*append_sdl_surface_flag(surface, f, sizeof (f), SDL_SWSURFACE);*/
109 if ((surface->flags & SDL_HWSURFACE) == 0)
112 append_sdl_surface_flag(surface, f, sizeof (f), SDL_HWSURFACE);
113 append_sdl_surface_flag(surface, f, sizeof (f), SDL_ASYNCBLIT);
114 append_sdl_surface_flag(surface, f, sizeof (f), SDL_ANYFORMAT);
115 append_sdl_surface_flag(surface, f, sizeof (f), SDL_HWPALETTE);
116 append_sdl_surface_flag(surface, f, sizeof (f), SDL_DOUBLEBUF);
117 append_sdl_surface_flag(surface, f, sizeof (f), SDL_FULLSCREEN);
118 append_sdl_surface_flag(surface, f, sizeof (f), SDL_OPENGL);
119 append_sdl_surface_flag(surface, f, sizeof (f), SDL_OPENGLBLIT);
120 append_sdl_surface_flag(surface, f, sizeof (f), SDL_RESIZABLE);
121 append_sdl_surface_flag(surface, f, sizeof (f), SDL_NOFRAME);
122 append_sdl_surface_flag(surface, f, sizeof (f), SDL_HWACCEL);
123 append_sdl_surface_flag(surface, f, sizeof (f), SDL_SRCCOLORKEY);
124 append_sdl_surface_flag(surface, f, sizeof (f), SDL_RLEACCELOK);
125 append_sdl_surface_flag(surface, f, sizeof (f), SDL_RLEACCEL);
126 append_sdl_surface_flag(surface, f, sizeof (f), SDL_SRCALPHA);
127 append_sdl_surface_flag(surface, f, sizeof (f), SDL_PREALLOC);
141 output_surface_details("Source Surface", src);
142 output_surface_details("Destination Surface", dest);
293 fprintf(stderr, "dest surface creation failed: %s\n", SDL_GetError());
302 fprintf(stderr, "src surface creation failed: %s\n", SDL_GetError());