14#ifndef DL_DISABLE_RENDER
70 using Func = void (*)(void);
79 void Start(std::string_view json_window,
80 std::string_view json_path =
"");
167 _vecDropFile.clear();
214 _vecDropFile.push_back(std::string{ str });
240 bool _bCursorModeChange;
244 std::vector<std::string> _vecDropFile;
251 luabridge::LuaRef _funcInit{
g_lua->GetL() };
252 luabridge::LuaRef _funcRun{
g_lua->GetL() };
255 bool _start_init(
const ParamWindow& param);
260 void _get_window_size(
int& w,
int& h);
void SetWindowDirection(WindowDirection dir)
void _convert_system_to_glfw(Point &xy)
void SetFuncInit(Func func)
设置 初始化函数
void SetFullScreen(FullScreenMode mode, const Size &size={})
设置全屏
const std::vector< std::string > & GetDropFile()
返回拖入文件列表
void Start(const ParamWindow ¶m={})
创建窗口 并进入 游戏循环
void SetWindowTitle(std::string_view str)
设置窗口标题
void SetFuncRun(Func func)
设置 帧函数
SystemStep GetStep()
返回引擎运行状态
void ScreenShot(std::string_view path_name)
截屏
std::string GetClipboardString()
返回剪贴板
Size GetWindowSize()
返回窗口大小
void _convert_glfw_to_system(Point &xy)
std::string GetHardwareId()
硬件码(md5 长度32)
void SetWindowPoint(const Point &xy)
设置窗口位置
void _add_drop_file(std::string_view str)
内部调用
bool IsWindowExist()
窗口是否存在
std::string GetUsername()
返回用户名
const RenderInfo2D & GetRenderInfo2D()
返回上一帧绘图信息
void SetWindowCenter()
设置窗口居中(以工作区大小)
void SetWindowSize(const Size &size)
设置窗口大小
void ClearDropFile()
清空拖入文件列表
void lua_SetFuncInit(luabridge::LuaRef func)
void SetClipboardString(std::string_view str)
设置剪贴板
void lua_SetFuncRun(luabridge::LuaRef func)
void SetCursorMode(CursorMode mode)
设置光标模式
void SetCursorPosition(Point xy)
设置鼠标位置,不用此来实现摄像机
const RenderInfo3D & GetRenderInfo3D()
WindowDirection GetWindowDirection()
返回屏幕方向
void Start(std::string_view json_window, std::string_view json_path="")
进入 游戏循环
void ShowMessageBox(std::string_view title, std::string_view text)
系统框提示
void _set_dir(WindowDirection dir)
void Pause()
暂停程序,等待用户输入后继续(Windows:按任意键;其他平台:回车)
Size GetWorkArea()
获取桌面大小,不包含任务栏
FullScreenMode _fullScreenMode