51 int slice_height,
double x,
double y,
double w,
uint32_t gapi_create_image(const char *path, uint32_t *width, uint32_t *height)
int32_t gapi_draw_image(uint32_t handle, double x, double y, double width, double height)
int32_t gapi_draw_image_part(uint32_t handle, uint32_t slice_x, uint32_t slice_y, uint32_t slice_width, uint32_t slice_height, double x, double y, double width, double height)
gmImage gm_image_open(const char *path)
Loads an image from a file path.
Definition image.h:20
void gm_image_draw_part(gmImage i, int slice_x, int slice_y, int slice_width, int slice_height, double x, double y, double w, double h)
Draws a part of an image at the specified position and size.
Definition image.h:50
void gm_image_draw(gmImage i, double x, double y, double w, double h)
Draws an entire image at the specified position and size.
Definition image.h:34
Structure representing an image with handle and dimensions.
Definition image.h:9
uint32_t width
Definition image.h:11
uint32_t handle
Definition image.h:10
uint32_t height
Definition image.h:12