#include <graph.h>
main()
{
HBITMAP hbmp_base, hbmp_square, hbmp_squaremask;
//hbmp_base = gl_loadbitmap("c:\\windows\\雲.bmp");
hbmp_base = gl_loadbitmap("c:\\windows\\シャボン.bmp");
hbmp_square = gl_loadbitmap("square.bmp");
hbmp_squaremask = gl_loadbitmap("square_bw.bmp");
if(hbmp_base == NULL || hbmp_square == NULL || hbmp_squaremask == NULL){
printf("ビットマップファイルが見つかりません.\n");
exit(0);
}
gl_openwin(-1, -1, 256, 256, 0);
gl_drawbitmap(hbmp_base, 0, 0, 256, 256, 0, 0);
gl_maskdrawbitmap(hbmp_square, hbmp_squaremask, 128-32, 128-32, 64, 64, 0, 0);
}
|