mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-05-09 18:09:46 +08:00
8bddf6bb37
- 移除SDL3依赖,引入IUP图形界面库 - 更新Makefile以支持IUP编译配置 - 重构GUI模块,移除SDL相关代码 - 更新全局变量和类型定义,移除SDL依赖 - 添加IUP头文件到项目库目录 - 删除手动帧率控制(SDL_Delay),依赖IUP事件循环 - 更新编译脚本和文档说明
37 lines
724 B
C
37 lines
724 B
C
/** \file
|
|
* \brief Utilities using IM
|
|
*
|
|
* See Copyright Notice in "iup.h"
|
|
*/
|
|
|
|
#ifndef __IUPIM_H
|
|
#define __IUPIM_H
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
void IupImOpen(void); /* optional */
|
|
|
|
Ihandle* IupLoadImage(const char* filename);
|
|
int IupSaveImage(Ihandle* ih, const char* filename, const char* format);
|
|
|
|
Ihandle* IupLoadAnimation(const char* filename);
|
|
Ihandle* IupLoadAnimationFrames(const char** filename_list, int file_count);
|
|
|
|
#ifdef __IM_IMAGE_H
|
|
imImage* IupGetNativeHandleImage(void* handle);
|
|
void* IupGetImageNativeHandle(const imImage* image);
|
|
|
|
Ihandle* IupImageFromImImage(const imImage* image);
|
|
imImage* IupImageToImImage(Ihandle* iup_image);
|
|
#endif
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|