mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-05-10 02:19:46 +08:00
feat(gui): 迁移图形界面库从SDL3到IUP
- 移除SDL3依赖,引入IUP图形界面库 - 更新Makefile以支持IUP编译配置 - 重构GUI模块,移除SDL相关代码 - 更新全局变量和类型定义,移除SDL依赖 - 添加IUP头文件到项目库目录 - 删除手动帧率控制(SDL_Delay),依赖IUP事件循环 - 更新编译脚本和文档说明
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
/** \file
|
||||
* \brief Binding of iupwebbrowser to Lua.
|
||||
*
|
||||
* See Copyright Notice in "iup.h"
|
||||
*/
|
||||
|
||||
#ifndef __IUPLUAWEB_H
|
||||
#define __IUPLUAWEB_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
|
||||
/** @cond DOXYGEN_SHOULD_IGNORE_THIS */
|
||||
#ifndef IUPLUAWEB_API
|
||||
#ifdef IUPLUAWEB_BUILD_LIBRARY
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#define IUPLUAWEB_API EMSCRIPTEN_KEEPALIVE
|
||||
#elif WIN32
|
||||
#define IUPLUAWEB_API __declspec(dllexport)
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define IUPLUAWEB_API __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#define IUPLUAWEB_API
|
||||
#endif
|
||||
#else
|
||||
#define IUPLUAWEB_API
|
||||
#endif /* IUPLUAWEB_BUILD_LIBRARY */
|
||||
#endif /* IUPLUAWEB_API */
|
||||
/** @endcond DOXYGEN_SHOULD_IGNORE_THIS */
|
||||
#endif /* DOXYGEN_SHOULD_IGNORE_THIS */
|
||||
|
||||
|
||||
IUPLUAWEB_API int iupweblua_open (lua_State * L);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user