33 lines
798 B
C
33 lines
798 B
C
#ifndef DISPLAY_H
|
|
#define DISPLAY_H
|
|
|
|
#include <SDL3/SDL_render.h>
|
|
#include "asset_manager.h"
|
|
#include "texture.h"
|
|
#include "vector2d.h"
|
|
|
|
#define C_BLACK 0, 0, 0
|
|
#define C_RED 255, 0, 0
|
|
#define C_GREEN 0, 255, 0
|
|
#define C_BLUE 0, 0, 255
|
|
#define C_WHITE 255, 255, 255
|
|
|
|
#define DISPLAY_WIDTH 720
|
|
#define DISPLAY_HEIGHT 480
|
|
|
|
//#define DRIVERS NULL
|
|
#define DRIVERS "vulkan,gpu,software"
|
|
|
|
extern SDL_Window *window;
|
|
extern SDL_Renderer *renderer;
|
|
|
|
int display_init(void);
|
|
void display_exit(void);
|
|
|
|
int display_clear(void);
|
|
int display_update(void);
|
|
|
|
int display_draw_texture(texture_t *texture, const frect_t *src_frect, const frect_t *dst_frect, bool flip);
|
|
int display_draw_frect(const frect_t *frect, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
|
|
|
|
#endif // DISPLAY_H
|