#ifndef _LEXSDL_renderer_H_ #define _LEXSDL_renderer_H_ /* "Constants" */ #define LEXSDL_RENDERERINITFLAGS SDL_RENDERER_PRESENTVSYNC /* Creation */ extern SDL_Renderer* LEXSDL_CreateRenderer(uint32_t flags); /* Getters and Setters */ extern void LEXSDL_GetBackgroundColor(uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a); extern void LEXSDL_GetDrawColor(uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a); extern SDL_Renderer* LEXSDL_GetRenderer(void); extern void LEXSDL_SetRenderer(SDL_Renderer *renderer); /* Manipulation */ extern void LEXSDL_SetBackgroundColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a); extern void LEXSDL_SetDrawColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a); /* Rendering */ extern int LEXSDL_NewFrame(void); extern void LEXSDL_ShowFrame(void); #endif