Lines Matching refs:renderer
17 bool use_accelerator, void **window, void **renderer, void **mutex, in sdl_display_init_bottom() argument
31 *renderer = SDL_CreateRenderer(*window, -1, SDL_RENDERER_ACCELERATED); in sdl_display_init_bottom()
33 *renderer = SDL_CreateRenderer(*window, -1, SDL_RENDERER_SOFTWARE); in sdl_display_init_bottom()
36 if (*renderer == NULL) { in sdl_display_init_bottom()
48 SDL_RenderSetLogicalSize(*renderer, width, height); in sdl_display_init_bottom()
50 *texture = SDL_CreateTexture(*renderer, SDL_PIXELFORMAT_ARGB8888, in sdl_display_init_bottom()
58 *read_texture = SDL_CreateTexture(*renderer, SDL_PIXELFORMAT_ARGB8888, in sdl_display_init_bottom()
65 *background_texture = SDL_CreateTexture(*renderer, SDL_PIXELFORMAT_ARGB8888, in sdl_display_init_bottom()
97 SDL_SetRenderDrawColor(*renderer, 0, 0, 0, 0xFF); in sdl_display_init_bottom()
98 SDL_RenderClear(*renderer); in sdl_display_init_bottom()
99 SDL_RenderCopy(*renderer, *background_texture, NULL, NULL); in sdl_display_init_bottom()
100 SDL_RenderPresent(*renderer); in sdl_display_init_bottom()
106 const uint16_t y, void *renderer, void *mutex, void *texture, in sdl_display_write_bottom() argument
127 SDL_RenderClear(renderer); in sdl_display_write_bottom()
128 SDL_RenderCopy(renderer, background_texture, NULL, NULL); in sdl_display_write_bottom()
129 SDL_RenderCopy(renderer, texture, NULL, NULL); in sdl_display_write_bottom()
130 SDL_RenderPresent(renderer); in sdl_display_write_bottom()
138 void *renderer, void *buf, uint16_t pitch, in sdl_display_read_bottom() argument
155 SDL_SetRenderTarget(renderer, read_texture); in sdl_display_read_bottom()
157 SDL_RenderClear(renderer); in sdl_display_read_bottom()
158 SDL_RenderCopy(renderer, texture, NULL, NULL); in sdl_display_read_bottom()
159 SDL_RenderReadPixels(renderer, &rect, SDL_PIXELFORMAT_ARGB8888, buf, width * 4); in sdl_display_read_bottom()
161 SDL_SetRenderTarget(renderer, NULL); in sdl_display_read_bottom()
168 void sdl_display_blanking_off_bottom(void *renderer, void *texture, void *background_texture) in sdl_display_blanking_off_bottom() argument
170 SDL_RenderClear(renderer); in sdl_display_blanking_off_bottom()
171 SDL_RenderCopy(renderer, background_texture, NULL, NULL); in sdl_display_blanking_off_bottom()
172 SDL_RenderCopy(renderer, texture, NULL, NULL); in sdl_display_blanking_off_bottom()
173 SDL_RenderPresent(renderer); in sdl_display_blanking_off_bottom()
176 void sdl_display_blanking_on_bottom(void *renderer) in sdl_display_blanking_on_bottom() argument
178 SDL_RenderClear(renderer); in sdl_display_blanking_on_bottom()
179 SDL_RenderPresent(renderer); in sdl_display_blanking_on_bottom()
182 void sdl_display_cleanup_bottom(void **window, void **renderer, void **mutex, void **texture, in sdl_display_cleanup_bottom() argument
205 if (*renderer != NULL) { in sdl_display_cleanup_bottom()
206 SDL_DestroyRenderer(*renderer); in sdl_display_cleanup_bottom()
207 *renderer = NULL; in sdl_display_cleanup_bottom()