2021-04-29 14:15:24 +02:00
|
|
|
#include <SDL.h>
|
|
|
|
#include "renderer.h"
|
|
|
|
|
|
|
|
struct RenWindow {
|
|
|
|
SDL_Window *window;
|
|
|
|
#ifdef LITE_USE_SDL_RENDERER
|
|
|
|
SDL_Renderer *renderer;
|
|
|
|
SDL_Texture *texture;
|
2023-03-19 20:39:52 +01:00
|
|
|
RenSurface rensurface;
|
2021-04-29 14:15:24 +02:00
|
|
|
#endif
|
|
|
|
};
|
|
|
|
typedef struct RenWindow RenWindow;
|
|
|
|
|
|
|
|
void renwin_init_surface(RenWindow *ren);
|
|
|
|
void renwin_clip_to_surface(RenWindow *ren);
|
|
|
|
void renwin_set_clip_rect(RenWindow *ren, RenRect rect);
|
|
|
|
void renwin_resize_surface(RenWindow *ren);
|
|
|
|
void renwin_show_window(RenWindow *ren);
|
|
|
|
void renwin_update_rects(RenWindow *ren, RenRect *rects, int count);
|
|
|
|
void renwin_free(RenWindow *ren);
|
2023-03-19 20:39:52 +01:00
|
|
|
RenSurface renwin_get_surface(RenWindow *ren);
|
2021-04-29 14:15:24 +02:00
|
|
|
|