/AliOS-Things-master/components/SDL2/src/gfx/Test/ |
A D | TestGfxPrimitives.c | 2806 SDL_Surface *screen; in main() local 2883 TestPixel(screen); in main() 2892 TestHline(screen); in main() 2901 TestVline(screen); in main() 2919 TestBox(screen); in main() 2928 TestBoxTwo(screen); in main() 2937 TestLine(screen); in main() 2946 TestAALine(screen); in main() 3009 TestArc(screen); in main() 3018 TestPie(screen); in main() [all …]
|
A D | TestGfxTexture.c | 52 screen->w*screen->format->BytesPerPixel); in ClearScreen() 53 pixels += screen->pitch; in ClearScreen() 55 SDL_UnlockSurface(screen); in ClearScreen() 61 void Draw(SDL_Surface *screen) in Draw() argument 111 polygon_y[0]= screen->h; in Draw() 128 ClearScreen(screen); in Draw() 143 SDL_Flip(screen); in Draw() 154 SDL_Surface *screen; in main() local 230 if ( screen == NULL ) { in main() 238 screen->w, screen->h, screen->format->BitsPerPixel); in main() [all …]
|
A D | TestRotozoom.c | 78 screen->w*screen->format->BytesPerPixel); in ClearScreen() 103 ClearScreen(screen); in RotatePicture() 172 SDL_Flip(screen); in RotatePicture() 183 ClearScreen(screen); in RotatePicture() 213 SDL_Flip(screen); in RotatePicture() 261 SDL_Flip(screen); in ZoomPicture() 305 SDL_Flip(screen); in RotatePicture90Degrees() 350 SDL_Flip(screen); in CustomTest() 445 SDL_Flip(screen); in AccuracyTest1() 504 SDL_Flip(screen); in AccuracyTest2() [all …]
|
A D | TestGfxBlit.c | 59 memset(pixels, gray1, screen->w*screen->format->BytesPerPixel); in ClearScreen() 61 memset(pixels, gray2, screen->w*screen->format->BytesPerPixel); in ClearScreen() 63 pixels += screen->pitch; in ClearScreen() 65 SDL_UnlockSurface(screen); in ClearScreen() 70 void Draw(SDL_Surface *screen) in Draw() argument 143 ClearScreen(screen); in Draw() 190 SDL_Flip(screen); in Draw() 201 SDL_Surface *screen; in main() local 277 if ( screen == NULL ) { in main() 285 screen->w, screen->h, screen->format->BitsPerPixel); in main() [all …]
|
A D | TestFramerate.c | 53 for ( i=0; i<screen->h; ++i ) { in ClearScreen() 55 screen->w*screen->format->BytesPerPixel); in ClearScreen() 56 pixels += screen->pitch; in ClearScreen() 58 SDL_UnlockSurface(screen); in ClearScreen() 62 void Draw(SDL_Surface *screen) in Draw() argument 73 x=screen->w/2; in Draw() 74 y=screen->h/2; in Draw() 103 ClearScreen(screen); in Draw() 125 SDL_Flip(screen); in Draw() 137 SDL_Surface *screen; in main() local [all …]
|
A D | TestShrink.c | 43 pixels = (Uint8 *)screen->pixels; in ClearScreen() 44 for ( i=0; i<screen->h; ++i ) { in ClearScreen() 46 screen->w*screen->format->BytesPerPixel); in ClearScreen() 47 pixels += screen->pitch; in ClearScreen() 49 SDL_UnlockSurface(screen); in ClearScreen() 65 ClearScreen(screen); in ShrinkPicture() 79 SDL_Flip(screen); in ShrinkPicture() 257 SDL_Surface *screen; in main() local 356 if ( screen == NULL ) { in main() 364 screen->w, screen->h, screen->format->BitsPerPixel); in main() [all …]
|
A D | TestFonts.c | 46 void ClearScreen(SDL_Surface *screen) in ClearScreen() argument 54 pixels = (Uint8 *)screen->pixels; in ClearScreen() 55 for ( i=0; i<screen->h; ++i ) { in ClearScreen() 57 screen->w*screen->format->BytesPerPixel); in ClearScreen() 58 pixels += screen->pitch; in ClearScreen() 60 SDL_UnlockSurface(screen); in ClearScreen() 167 void Draw(SDL_Surface *screen) in Draw() argument 175 ClearScreen(screen); in Draw() 296 SDL_Flip(screen); in Draw() 304 SDL_Surface *screen; in main() local [all …]
|
A D | LaplaceRelaxation.c | 57 void ClearScreen(SDL_Surface *screen) in ClearScreen() argument 63 pixels = (Uint8 *)screen->pixels; in ClearScreen() 64 for ( i=0; i<screen->h; ++i ) { in ClearScreen() 66 screen->w*screen->format->BytesPerPixel); in ClearScreen() 67 pixels += screen->pitch; in ClearScreen() 69 SDL_UnlockSurface(screen); in ClearScreen() 310 SDL_Flip(screen); in Draw() 334 SDL_Surface *screen; in main() local 396 if ( screen == NULL ) { in main() 404 screen->w, screen->h, screen->format->BitsPerPixel); in main() [all …]
|
A D | TestABGR.c | 48 SDL_Surface *screen; in main() local 99 if ( (screen=SDL_SetVideoMode(WIDTH, HEIGHT, video_bpp, videoflags)) == NULL ) { in main() 105 SDL_SetAlpha(screen, SDL_SRCALPHA, 0); in main() 198 stringRGBA (screen, WIDTH/2-4*strlen(message),HEIGHT-12,message,255,255,255,255); in main()
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testgesture.c | 68 if ( (x < 0) || (x >= screen->w) || (y < 0) || (y >= screen->h) ) { in setpix() 72 pixmem32 = (Uint32 *) screen->pixels + y * screen->pitch / BPP + x; in setpix() 120 drawKnob(SDL_Surface *screen, const Knob *k) in drawKnob() argument 122 drawCircle(screen, k->p.x * screen->w, k->p.y * screen->h, k->r * screen->w, 0xFFFFFF); in drawKnob() 123 drawCircle(screen, (k->p.x + k->r / 2 * SDL_cosf(k->ang)) * screen->w, in drawKnob() 124 (k->p.y + k->r / 2 * SDL_sinf(k->ang)) * screen->h, k->r / 4 * screen->w, 0); in drawKnob() 133 if (!screen) { in DrawScreen() 137 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 75, 75, 75)); in DrawScreen() 157 drawCircle(screen, x * screen->w, y * screen->h, 5, col); in DrawScreen() 159 drawCircle(screen, x * screen->w, y * screen->h, -10, col); in DrawScreen() [all …]
|
A D | testgamecontroller.c | 65 SDL_Renderer *screen = NULL; variable 125 SDL_RenderClear(screen); in loop() 126 SDL_RenderCopy(screen, background, NULL, NULL); in loop() 204 SDL_RenderPresent(screen); in loop() 297 screen = SDL_CreateRenderer(window, -1, 0); in main() 298 if (screen == NULL) { in main() 305 SDL_RenderClear(screen); in main() 306 SDL_RenderPresent(screen); in main() 316 SDL_DestroyRenderer(screen); in main() 335 SDL_DestroyRenderer(screen); in main() [all …]
|
A D | testjoystick.c | 36 static SDL_Renderer *screen = NULL; variable 106 SDL_SetRenderDrawColor(screen, 0x0, 0x0, 0x0, SDL_ALPHA_OPAQUE); in loop() 107 SDL_RenderClear(screen); in loop() 229 DrawRect(screen, x, y, 16, 16); in loop() 251 DrawRect(screen, x, y, 8, 8); in loop() 255 SDL_RenderPresent(screen); in loop() 287 screen = SDL_CreateRenderer(window, -1, 0); in main() 288 if (screen == NULL) { in main() 295 SDL_RenderClear(screen); in main() 296 SDL_RenderPresent(screen); in main() [all …]
|
A D | controllermap.c | 363 SDL_Renderer *screen = NULL; in WatchJoystick() local 372 screen = SDL_CreateRenderer(window, -1, 0); in WatchJoystick() 373 if (screen == NULL) { in WatchJoystick() 378 background = LoadTexture(screen, "controllermap.bmp", SDL_FALSE); in WatchJoystick() 379 button = LoadTexture(screen, "button.bmp", SDL_TRUE); in WatchJoystick() 380 axis = LoadTexture(screen, "axis.bmp", SDL_TRUE); in WatchJoystick() 384 SDL_RenderSetLogicalSize(screen, SCREEN_WIDTH, SCREEN_HEIGHT); in WatchJoystick() 444 SDL_RenderClear(screen); in WatchJoystick() 445 SDL_RenderCopy(screen, background, NULL, NULL); in WatchJoystick() 449 SDL_RenderPresent(screen); in WatchJoystick() [all …]
|
/AliOS-Things-master/components/SDL2/src/video/x11/ |
A D | SDL_x11modes.c | 66 depth = DefaultDepth(display, screen); in get_visualinfo() 365 int screen, i, n; in X11_InitModes_XRandR() local 368 for (screen = 0; screen < screencount; screen++) { in X11_InitModes_XRandR() 468 displaydata->screen = screen; in X11_InitModes_XRandR() 591 int snum, screen, screencount = 0; in X11_InitModes() local 677 screen = 0; in X11_InitModes() 679 screen = snum; in X11_InitModes() 712 mode.w = xinerama[screen].width; in X11_InitModes() 737 displaydata->screen = 0; in X11_InitModes() 742 else displaydata->screen = screen; in X11_InitModes() [all …]
|
A D | SDL_x11opengles.c | 61 X11_GLES_GetVisual(_THIS, Display * display, int screen) in X11_GLES_GetVisual() argument 79 vi_in.screen = screen; in X11_GLES_GetVisual() 84 vi_in.screen = screen; in X11_GLES_GetVisual()
|
A D | SDL_x11opengl.c | 338 const int screen = DefaultScreen(display); in X11_GL_InitExtensions() local 347 vinfo = X11_GL_GetVisual(_this, display, screen); in X11_GL_InitExtensions() 365 X11_XCreateColormap(display, RootWindow(display, screen), in X11_GL_InitExtensions() 367 w = X11_XCreateWindow(display, RootWindow(display, screen), 0, 0, in X11_GL_InitExtensions() 385 extensions = glXQueryExtensionsStringFunc(display, screen); in X11_GL_InitExtensions() 598 X11_GL_GetVisual(_THIS, Display * display, int screen) in X11_GL_GetVisual() argument 611 vinfo = _this->gl_data->glXChooseVisual(display, screen, attribs); in X11_GL_GetVisual() 615 vinfo = _this->gl_data->glXChooseVisual(display, screen, attribs); in X11_GL_GetVisual() 676 int screen = in X11_GL_CreateContext() local 677 ((SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata)->screen; in X11_GL_CreateContext() [all …]
|
A D | SDL_x11window.c | 378 int screen = displaydata->screen; in X11_CreateWindow() local 426 vinfo = X11_GLES_GetVisual(_this, display, screen); in X11_CreateWindow() 431 vinfo = X11_GL_GetVisual(_this, display, screen); in X11_CreateWindow() 540 SetWindowBordered(display, screen, w, in X11_CreateWindow() 1350 const int screen = displaydata->screen; in X11_BeginWindowFullscreenLegacy() local 1351 Window root = RootWindow(display, screen); in X11_BeginWindowFullscreenLegacy() 1395 X11_XF86VidModeLockModeSwitch(display, screen, True); in X11_BeginWindowFullscreenLegacy() 1426 const int screen = displaydata->screen; in X11_EndWindowFullscreenLegacy() local 1427 Window root = RootWindow(display, screen); in X11_EndWindowFullscreenLegacy() 1452 SetWindowBordered(display, screen, data->xwindow, in X11_EndWindowFullscreenLegacy() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/extras/ |
A D | webp_to_sdl.c | 38 SDL_Surface* screen = NULL; in WebpToSDL() local 54 screen = SDL_SetVideoMode(input->width, input->height, 32, SDL_SWSURFACE); in WebpToSDL() 55 if (screen == NULL) { in WebpToSDL() 94 if (SDL_BlitSurface(surface, NULL, screen, NULL) || in WebpToSDL() 95 SDL_Flip(screen)) { in WebpToSDL() 103 SDL_FreeSurface(screen); in WebpToSDL()
|
/AliOS-Things-master/components/SDL2/src/video/directfb/ |
A D | SDL_DirectFB_modes.c | 177 IDirectFBScreen *screen; in DirectFB_InitModes() local 181 [i], &screen)); in DirectFB_InitModes() 184 SDL_DFB_CHECKERR(screen->EnumDisplayLayers(screen, &EnumLayersCallback, in DirectFB_InitModes() 186 screen->GetSize(screen, &tcw[i], &tch[i]); in DirectFB_InitModes() 188 screen->Release(screen); in DirectFB_InitModes()
|
/AliOS-Things-master/components/SDL2/src/video/uikit/ |
A D | SDL_uikitmetalview.m | 84 /* Set the scale to the natural scale factor of the screen - then 86 * dimensions of the screen rather than the dimensions in points 89 if ([data.uiwindow.screen respondsToSelector:@selector(nativeScale)]) { 90 scale = data.uiwindow.screen.nativeScale; 92 scale = data.uiwindow.screen.scale;
|
A D | SDL_uikitopengles.m | 142 CGRect frame = UIKit_ComputeViewFrame(window, data.uiwindow.screen); 170 /* Set the scale to the natural scale factor of the screen - the 172 * dimensions of the screen rather than the dimensions in points. */ 173 if ([data.uiwindow.screen respondsToSelector:@selector(nativeScale)]) { 174 scale = data.uiwindow.screen.nativeScale; 176 scale = data.uiwindow.screen.scale; 233 /* Some iOS system functionality (such as Dictation on the on-screen
|
A D | SDL_uikitvideo.m | 198 UIKit_ComputeViewFrame(SDL_Window *window, UIScreen *screen) 201 CGRect frame = screen.bounds; 204 * The uiwindow bounds may be smaller than the screen bounds when Split View 215 frame = screen.applicationFrame; 222 * device to portrait, and turning it back on will result in the screen 231 BOOL fullscreen = CGRectEqualToRect(screen.bounds, frame); 234 * than the screen (iPad Split View, for example). */
|
/AliOS-Things-master/components/SDL2/src/video/haiku/ |
A D | SDL_bmodes.cc | 218 static void _AddDisplay(BScreen *screen) { in _AddDisplay() argument 223 screen->GetMode(bmode); in _AddDisplay() 239 BScreen screen; in HAIKU_InitModes() local 243 _AddDisplay(&screen); in HAIKU_InitModes()
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/gregbook/ |
A D | rpng-x.c | 440 int screen, pad; in rpng_x_create_window() local 455 screen = DefaultScreen(display); in rpng_x_create_window() 456 depth = DisplayPlanes(display, screen); in rpng_x_create_window() 457 root = RootWindow(display, screen); in rpng_x_create_window() 472 XMatchVisualInfo(display, screen, depth, in rpng_x_create_window() 483 visual_info.screen = screen; in rpng_x_create_window() 505 XMatchVisualInfo(display, screen, depth, TrueColor, &visual_info); in rpng_x_create_window()
|
/AliOS-Things-master/components/SDL2/docs/ |
A D | README-ios.md | 66 Window and display mode sizes in SDL are in "screen coordinates" (or "points", 68 created on an iPhone 6 will have a size in screen coordinates of 375 x 667, 70 size their content based on screen coordinates / points rather than pixels, 74 By default SDL will not use the full pixel density of the screen on 79 will still be in "screen coordinates" rather than pixels, but the window will 83 the size in pixels of the drawable screen framebuffer. 86 sizes in screen coordinates. When doing 2D rendering with OpenGL ES, an 87 orthographic projection matrix using the size in screen coordinates 172 Finally, if your application completely redraws the screen each frame, you may find significant per… 177 - The drawable Framebuffer Object must be bound while rendering to the screen and when SDL_GL_SwapW… [all …]
|