gint/src/render-cg/dimage.c

24 lines
542 B
C

#define GINT_NEED_VRAM
#include <gint/display.h>
#include "bopti-asm.h"
/* dimage() - render a full image */
void dimage(int x, int y, image_t const *img)
{
bopti_render_clip(x, y, img, 0, 0, img->width, img->height);
}
/* dsubimage() - render a section of an image */
void dsubimage(int x, int y, image_t const *img, int left, int top,
int width, int height, int flags)
{
if(flags & DIMAGE_NOCLIP)
{
bopti_render_noclip(x, y, img, left, top, width, height);
}
else
{
bopti_render_clip(x, y, img, left, top, width, height);
}
}