67 lines
1.7 KiB
C
67 lines
1.7 KiB
C
#define GINT_NEED_VRAM
|
|
#include <gint/display.h>
|
|
#include <gint/keyboard.h>
|
|
|
|
#include <gintctl/gint.h>
|
|
#include <gintctl/util.h>
|
|
|
|
/* gintctl_gint_bopti(): Test image rendering */
|
|
void gintctl_gint_bopti(void)
|
|
{
|
|
#ifdef FXCG50
|
|
extern image_t img_swift;
|
|
extern image_t img_swords;
|
|
extern image_t img_potion_17x22, img_potion_18x22, img_potion_21x22;
|
|
extern image_t img_applejack_31x27, img_applejack_36x25;
|
|
int key = 0, x, y;
|
|
|
|
while(key != KEY_EXIT)
|
|
{
|
|
dclear(C_WHITE);
|
|
row_title("Image rendering");
|
|
|
|
x=51, y=25;
|
|
dtext(x, y, "E.E", C_BLACK, C_NONE);
|
|
dtext(x+35, y, "E.O", C_BLACK, C_NONE);
|
|
dtext(x+70, y, "O.E", C_BLACK, C_NONE);
|
|
dtext(x+105, y, "O.O", C_BLACK, C_NONE);
|
|
|
|
x=52, y=40;
|
|
dtext(10, y+6, "OxE", C_BLACK, C_NONE);
|
|
dimage(x, y, &img_potion_17x22);
|
|
dimage(x+35, y+1, &img_potion_17x22);
|
|
dimage(x+71, y, &img_potion_17x22);
|
|
dimage(x+106, y+1, &img_potion_17x22);
|
|
|
|
x=52, y=67;
|
|
dtext(10, y+6, "ExE", C_BLACK, C_NONE);
|
|
dimage(x, y, &img_potion_18x22);
|
|
dimage(x+35, y+1, &img_potion_18x22);
|
|
dimage(x+71, y, &img_potion_18x22);
|
|
dimage(x+106, y+1, &img_potion_18x22);
|
|
|
|
x=44, y=95;
|
|
dtext(10, y+9, "OxO", C_BLACK, C_NONE);
|
|
dimage(x, y, &img_applejack_31x27);
|
|
dimage(x+35, y+1, &img_applejack_31x27);
|
|
dimage(x+71, y, &img_applejack_31x27);
|
|
dimage(x+106, y+1, &img_applejack_31x27);
|
|
|
|
x=40, y=127;
|
|
dtext(10, y+9, "ExO", C_BLACK, C_NONE);
|
|
dimage(x, y, &img_applejack_36x25);
|
|
dimage(x+35, y+1, &img_applejack_36x25);
|
|
dimage(x+71, y, &img_applejack_36x25);
|
|
dimage(x+106, y+1, &img_applejack_36x25);
|
|
|
|
dimage(190, 35, &img_swords);
|
|
|
|
dtext(67, 210, "Some images by Pix3M (deviantart.com/pix3m)",
|
|
C_BLACK, C_NONE);
|
|
dupdate();
|
|
|
|
key = getkey().key;
|
|
}
|
|
#endif
|
|
}
|