Files
player/Project/Src/MyWin/MyWinCore/mywin_pic.h
2025-06-27 00:32:57 +08:00

29 lines
547 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef MYWIN_PIC_H__
#define MYWIN_PIC_H__
#include "mywin_inc.h"
//根据名称获取图片
WIN_PicStruct *WIN_GetPic(const char *name);
//根据名称获取图片,去除图片的透明度信息
WIN_PicStruct *WIN_GetPicNoAlpha(const char *name);
//判断pic是否在另一个pic内
int WIN_PicInsidePic(WIN_PicStruct *base,WIN_PicStruct *child);
//图像是否存在
int WIN_GetPicLive(WIN_PicStruct *pic);
//安全地绘制pic,返回0没有pic图像
int WIN_DrawPic(WIN_PicStruct *pic,int x,int y,int xsize,int ysize);
#endif