29 lines
721 B
C
29 lines
721 B
C
#ifndef _DISPLAY_H
|
|
#define _DISPLAY_H
|
|
|
|
#include <gint/display.h>
|
|
#include "texture.h"
|
|
#include "vector2d.h"
|
|
|
|
#define COLOR_BLACK 0, 0, 0
|
|
#define COLOR_RED 255, 0, 0
|
|
#define COLOR_GREEN 0, 255, 0
|
|
#define COLOR_BLUE 0, 0, 255
|
|
#define COLOR_WHITE 255, 255, 255
|
|
|
|
#define DISPLAY_WIDTH DWIDTH
|
|
#define DISPLAY_HEIGHT DHEIGHT
|
|
#define DISPLAY_SCALE 1
|
|
|
|
typedef int display_t;
|
|
|
|
int display_init(void);
|
|
void display_exit(void);
|
|
|
|
int display_clear(void);
|
|
int display_update(void);
|
|
|
|
int display_draw_texture(texture_t *texture, const rect_t *src_rect, const rect_t *dst_rect, 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
|