系统
更多...
#include <dl_system.h>
系统
在文件 dl_system.h 第 67 行定义.
◆ Func
◆ CursorMode
◆ System()
◆ ~System()
◆ _add_drop_file()
| void dl::System::_add_drop_file |
( |
std::string_view | str | ) |
|
|
inline |
◆ _convert_glfw_to_system()
| void dl::System::_convert_glfw_to_system |
( |
Point & | xy | ) |
|
◆ _convert_system_to_glfw()
| void dl::System::_convert_system_to_glfw |
( |
Point & | xy | ) |
|
◆ _delete_glfw()
| void dl::System::_delete_glfw |
( |
| ) |
|
◆ _init_glfw()
| void dl::System::_init_glfw |
( |
| ) |
|
◆ _resize()
| void dl::System::_resize |
( |
| ) |
|
◆ _set_dir()
◆ ClearDropFile()
| void dl::System::ClearDropFile |
( |
| ) |
|
|
inline |
◆ Exit()
| void dl::System::Exit |
( |
| ) |
|
◆ GetClipboardString()
| std::string dl::System::GetClipboardString |
( |
| ) |
|
◆ GetDropFile()
| const std::vector< std::string > & dl::System::GetDropFile |
( |
| ) |
|
|
inline |
◆ GetHardwareId()
| std::string dl::System::GetHardwareId |
( |
| ) |
|
◆ GetImp()
| SystemImp * dl::System::GetImp |
( |
| ) |
|
|
inline |
◆ GetRenderInfo2D()
◆ GetRenderInfo3D()
◆ GetStep()
◆ GetUsername()
| std::string dl::System::GetUsername |
( |
| ) |
|
◆ GetWindowDirection()
◆ GetWindowSize()
| Size dl::System::GetWindowSize |
( |
| ) |
|
◆ GetWorkArea()
| Size dl::System::GetWorkArea |
( |
| ) |
|
◆ IsWindowExist()
| bool dl::System::IsWindowExist |
( |
| ) |
|
◆ lua_SetFuncInit()
| void dl::System::lua_SetFuncInit |
( |
luabridge::LuaRef | func | ) |
|
◆ lua_SetFuncRun()
| void dl::System::lua_SetFuncRun |
( |
luabridge::LuaRef | func | ) |
|
◆ Pause()
| void dl::System::Pause |
( |
| ) |
|
暂停程序,等待用户输入后继续(Windows:按任意键;其他平台:回车)
◆ ScreenShot()
| void dl::System::ScreenShot |
( |
std::string_view | path_name | ) |
|
◆ SetClipboardString()
| void dl::System::SetClipboardString |
( |
std::string_view | str | ) |
|
◆ SetCursorMode()
设置光标模式
- 注解
- 调用后,会触发光标移动事件,会强制鼠标两帧间隔归0s
◆ SetCursorPosition()
| void dl::System::SetCursorPosition |
( |
Point | xy | ) |
|
设置鼠标位置,不用此来实现摄像机
- 参数
-
- 注解
- 使用g_input获得鼠标位置
◆ SetFullScreen()
◆ SetFuncInit()
| void dl::System::SetFuncInit |
( |
Func | func | ) |
|
|
inline |
◆ SetFuncRun()
| void dl::System::SetFuncRun |
( |
Func | func | ) |
|
|
inline |
◆ SetWindowCenter()
| void dl::System::SetWindowCenter |
( |
| ) |
|
◆ SetWindowDirection()
◆ SetWindowPoint()
| void dl::System::SetWindowPoint |
( |
const Point & | xy | ) |
|
◆ SetWindowSize()
| void dl::System::SetWindowSize |
( |
const Size & | size | ) |
|
◆ SetWindowTitle()
| void dl::System::SetWindowTitle |
( |
std::string_view | str | ) |
|
◆ ShowMessageBox()
| void dl::System::ShowMessageBox |
( |
std::string_view | title, |
|
|
std::string_view | text ) |
◆ Start() [1/2]
| void dl::System::Start |
( |
const ParamWindow & | param = {} | ) |
|
◆ Start() [2/2]
| void dl::System::Start |
( |
std::string_view | json_window, |
|
|
std::string_view | json_path = "" ) |
进入 游戏循环
- 参数
-
| [in] | json_window | 窗口配置 |
| [in] | json_path | 资源路径配置 |
◆ _funcInit
| luabridge::LuaRef dl::System::_funcInit { g_lua->GetL() } |
◆ _funcRun
| luabridge::LuaRef dl::System::_funcRun { g_lua->GetL() } |
该类的文档由以下文件生成: