1 | #include <SDL.h> |
---|---|
2 | #include "renderer.h" |
3 | |
4 | struct RenWindow { |
5 | SDL_Window *window; |
6 | #ifdef LITE_USE_SDL_RENDERER |
7 | SDL_Renderer *renderer; |
8 | SDL_Texture *texture; |
9 | RenSurface rensurface; |
10 | #endif |
11 | }; |
12 | typedef struct RenWindow RenWindow; |
13 | |
14 | void renwin_init_surface(RenWindow *ren); |
15 | void renwin_clip_to_surface(RenWindow *ren); |
16 | void renwin_set_clip_rect(RenWindow *ren, RenRect rect); |
17 | void renwin_resize_surface(RenWindow *ren); |
18 | void renwin_show_window(RenWindow *ren); |
19 | void renwin_update_rects(RenWindow *ren, RenRect *rects, int count); |
20 | void renwin_free(RenWindow *ren); |
21 | RenSurface renwin_get_surface(RenWindow *ren); |
22 | |
23 |