1#include <SDL.h>
2#include "renderer.h"
3
4struct 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};
12typedef struct RenWindow RenWindow;
13
14void renwin_init_surface(RenWindow *ren);
15void renwin_clip_to_surface(RenWindow *ren);
16void renwin_set_clip_rect(RenWindow *ren, RenRect rect);
17void renwin_resize_surface(RenWindow *ren);
18void renwin_show_window(RenWindow *ren);
19void renwin_update_rects(RenWindow *ren, RenRect *rects, int count);
20void renwin_free(RenWindow *ren);
21RenSurface renwin_get_surface(RenWindow *ren);
22
23