lite-xl/src/renwindow.h

23 lines
612 B
C
Raw Normal View History

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;
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);
RenSurface renwin_get_surface(RenWindow *ren);
2021-04-29 14:15:24 +02:00