DEKI/ENGINE 文档
deki-sdl3-integration 0.19.0
Deki 包参考
deki-sdl3-integration

基于 SDL3(3.2.8)的桌面显示、输入和文件系统。

仓库:github.com/dekiengine/deki-sdl3-integration · 最新版本:0.19.0 · 需要引擎 0.19.0 或更高版本 · 依赖:deki-input

使用 DekiEditor --packages-add deki-sdl3-integration <project> 或通过包管理器安装。引擎自身的组件和 C++ API 见 Deki 文档。

在编辑器中显示为 **SDL3 Integration**。

组件

组件 类别 说明
SDL3DisplaySetup SDL3 打开游戏渲染所用的桌面窗口。
SDL3InputSetup SDL3 将桌面的键盘和鼠标输入传给引擎。

功能开关

可以从构建中去掉的部分。带有 define 的功能通过该 define 开关,其余的随其组件一起被剥离。

功能 define 默认值
Display — 开
Input — 开

组件参考

SDL3DisplaySetup

打开游戏渲染所用的桌面窗口。

检视器中的名称:SDL3 显示屏设置 · 类别:SDL3 · 类型:DekiSdl3::SDL3DisplaySetup

属性 类型 默认值 约束 说明
windowScale int32 2 1 到 8 用多少个窗口像素显示一个屏幕像素。屏幕大小取自目标平台。

SDL3InputSetup

将桌面的键盘和鼠标输入传给引擎。

检视器中的名称:SDL3 输入设置 · 类别:SDL3 · 类型:DekiSdl3::SDL3InputSetup

属性 类型 默认值 说明
enableKeyboard bool true 启用键盘输入
enableMouse bool true 启用鼠标/指针输入

更新日志

更新日志为英文。

0.19.0

Changed

  • minEngine 0.19.0: built against engine 0.19.0, whose component metadata records the package each class is in. A build of this package from before does not load and is rebuilt.

Added

  • Japanese, Simplified Chinese and Korean: editor/lang/ja.json, zh.json and ko.json translate the names, tooltips and enum values this package's components show in the Inspector.

0.18.0

Changed

  • minEngine 0.18.0. Reflection ABI 21: the package must be rebuilt.
  • Names follow the code style (deki-engine/docs/codestyle): types, functions and enum values are PascalCase, constants kPascalCase, members m_PascalCase, locals and parameters camelCase. The code is formatted with clang-format 22.
  • The functions the editor finds by name are PascalCase: DekiSDL3RegisterComponents, DekiSDL3GetAutoComponentCount, DekiSDL3EnsureRegistered and the rest. Built against engine ABI 21; a build of this package from before does not load and is rebuilt.

Removed

  • The former names from before 0.16.0 (bare class names, and deki-gpio's DekiEsp32::ESP32PinSetup). A scene that old is upgraded with 0.17 first.

更早的版本:CHANGELOG.md


由包的反射数据生成(引擎 0.19.0)。属性名就是场景文件中使用的键。重命名后会保留别名(兼容性)。