mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
26 lines
770 B
C
26 lines
770 B
C
#ifndef __GF_GRAPHIC_H__
|
|
#define __GF_GRAPHIC_H__
|
|
|
|
#include <gf_pre.h>
|
|
#include <gf_macro.h>
|
|
|
|
/* Type */
|
|
|
|
/* Engine */
|
|
#include <gf_type/draw.h>
|
|
|
|
/* Standard */
|
|
#include <gf_type/texture.h>
|
|
|
|
GF_EXPORT void gf_graphic_clear(gf_draw_t* draw);
|
|
|
|
GF_EXPORT void gf_graphic_begin_2d(gf_draw_t* draw);
|
|
GF_EXPORT void gf_graphic_end_2d(gf_draw_t* draw);
|
|
|
|
GF_EXPORT void gf_graphic_draw_texture_2d(gf_draw_t* draw, float x, float y, float w, float h, gf_texture_t* texture, float r, float g, float b, float a);
|
|
GF_EXPORT void gf_graphic_fill_rect(gf_draw_t* draw, float x, float y, float w, float h, float r, float g, float b, float a);
|
|
|
|
GF_EXPORT void gf_graphic_text(gf_draw_t* draw, float x, float y, float size, const char* text, float r, float g, float b, float a);
|
|
|
|
#endif
|