wip(0.S3): outside the runtime, its drawable size, scale, screen and tile size are read and set through its functions; a migration reports such a reference instead of threading the runtime's state
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d70b00f30d
commit
7b17b4a1b9
15 changed files with 46529 additions and 46216 deletions
|
|
@ -161,6 +161,12 @@ function gl_width() -> int { return gl_w }
|
|||
function gl_height() -> int { return gl_h }
|
||||
function gl_screen_fbo() -> int { return gl_screen }
|
||||
function gl_pixel_scale() -> int { return gl_scale }
|
||||
# a renderer that owns its swapchain (render3d's Vulkan path) says what the drawable is
|
||||
function gl_set_drawable(w: int, h: int) -> void {
|
||||
gl_w = w
|
||||
gl_h = h
|
||||
}
|
||||
function gl_set_pixel_scale(s: int) -> void { gl_scale = s }
|
||||
|
||||
# Present the frame (vsync'd flushBuffer); headless, just finish the GPU work.
|
||||
function gl_swap() -> void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue