lite-xl/src/renwindow.h

23 lines
612 B
C

#include <SDL.h>
#include "renderer.h"
struct RenWindow {
SDL_Window *window;
#ifdef LITE_USE_SDL_RENDERER
SDL_Renderer *renderer;
SDL_Texture *texture;
RenSurface rensurface;
#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);