class
Tessell::Platform::SDL2::Host
- Tessell::Platform::SDL2::Host
- Tessell::Platform::Host
- Reference
- Object
Overview
OpenGL 2.1 兼容宿主(plan §3.5:GLBackend 固定管线路径不变)。
Defined in:
tessell/platform/sdl2.crConstructors
Instance Method Summary
-
#clipboard : Platform::Clipboard
X1 扩展(issue #61 / plan §3.3):剪贴板与 IME 能力表。
- #close : Nil
- #context : Pointer(Void)
- #delay(ms : Int32) : Nil
- #drawable_height : Int32
- #drawable_width : Int32
-
#ime : Platform::ImeSupport
SDL2 只稳定提供 SDL_TEXTINPUT(committed text);预编辑 Unsupported。
- #logical_height : Int32
- #logical_width : Int32
- #make_current : Nil
-
#poll_events(sink : Array(Tessell::Input::Event)) : Bool
泵一批输入事件进 sink(复用调用方缓冲);返回 false = 宿主要求退出。
-
#present : Nil
呈现当前帧(swap buffers / 位块传输)。
- #quit_requested? : Bool
- #refresh_sizes : Nil
-
#resized? : Bool
消费式 resize 通知(issue #61 X1)。
- #scale : Float32
-
#screenshot(path : String) : Nil
GL 像素回读截图(PPM;测试/示例工具口径,plan §3.3 明确不进组件 API)。
-
#ticks_ms : Int64
帧循环辅助:平台侧时间源(manual clock 的宿主来源)。
- #title : String
- #viewport : Tessell::Rect
- #window : Pointer(Void)
Instance methods inherited from class Tessell::Platform::Host
clipboard : Clipboard
clipboard,
close : Nil
close,
delay(ms : Int32) : Nil
delay,
ime : ImeSupport
ime,
poll_events(sink : Array(Tessell::Input::Event)) : Bool
poll_events,
present : Nil
present,
resized? : Bool
resized?,
scale : Float32
scale,
ticks_ms : Int64
ticks_ms,
title : String
title,
viewport : Tessell::Rect
viewport
Constructor Detail
Instance Method Detail
def clipboard : Platform::Clipboard
#
Description copied from class Tessell::Platform::Host
X1 扩展(issue #61 / plan §3.3):剪贴板与 IME 能力表。
def poll_events(sink : Array(Tessell::Input::Event)) : Bool
#
Description copied from class Tessell::Platform::Host
泵一批输入事件进 sink(复用调用方缓冲);返回 false = 宿主要求退出。
def present : Nil
#
Description copied from class Tessell::Platform::Host
呈现当前帧(swap buffers / 位块传输)。
def ticks_ms : Int64
#
Description copied from class Tessell::Platform::Host
帧循环辅助:平台侧时间源(manual clock 的宿主来源)。