Feat pg texture lifetime - #37
Merged
Merged
Conversation
added 2 commits
September 28, 2026 13:01
texture create/destroy while flying. This also takes the API changes that flip the Y axis for draw calls (which is docs only) and adds the boiler plate to keep this in sync with XLua. Here's Claude's version: ---- Sync SDK kit for panel graphics texture/retained changes; fix ImGui click wedge SDK kit synced from the xplanesdk build (pipeline 40507, XPSDK440): panel-graphics header, Pascal unit and docs, plus rebuilt Mac/Linux XPLM. XLua_glue came out byte-identical - no signatures changed, and the IMGUI helpers aren't exposed to Lua - so there is no glue delta. XPLMDrawCalls lost its hidden origin: vertices and scissors are now plain panel coordinates under the current transform. EndFrame sets up window-local, top-left, Y-down ImGui space itself with push / translate(left, top) / scale(1,-1) / pop (PushImguiSpace), the drawing half of TranslateToImguiSpace. Scripts need no changes. Fix a click wedge. OnMouseButton fed every press to ImGui but returned WantCaptureMouse, and the XPLM sends the drag and release only to the window that claimed the press. One click on empty space inside the window left ImGui's button held forever, and ImGui then disowned the mouse, so every later press was refused too. Repro: collapse the header in LuaImguiTestPlugin, click below it, and it won't expand again. Now always claim: the window owns its whole rect, so clicks on its empty space also stop falling through to the cockpit behind it. This affects the profiler window too. It predates the panel-graphics change. Comment cleanups: XPLMCreateTexture is legal mid-draw now, so the "must create the context outside a draw callback" rationale is gone. The context is still built eagerly at window creation, so it exists before any input arrives. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.