Add VSCode syntax highlight extension#39
Closed
eguskov wants to merge 1 commit into
Closed
Conversation
Collaborator
aleksisch
pushed a commit
to aleksisch/daScript
that referenced
this pull request
Dec 9, 2025
correct check range with multidim arrays
6 tasks
Lasovar
pushed a commit
to Lasovar/daScript
that referenced
this pull request
May 17, 2026
The example pre-dated PR GaijinEntertainment#33's default-on imgui_lint, PR GaijinEntertainment#38's headless harness, and PR GaijinEntertainment#39's daslang theme. It hand-rolled its own imgui_app() shim, called raw Begin/End/Checkbox/InputFloat with addr-of dance, and set FontGlobalScale=1.0 with a "BBATKIN: note - my monitor is HUGE" comment. Rewrite onto the current surface: * require imgui/imgui_harness — single import for the boost-v2 widget stack, daslang theme + JetBrains Mono via live_imgui_init, harness lifecycle (harness_init / harness_begin_frame / harness_new_frame / harness_shutdown). * window(SETUP_WIN, ...) { ... } container instead of raw Begin/End. * edit_checkbox / edit_input_float / edit_input_float2 against safe_addr(global) instead of unsafe(addr(field)). Collapsed C0.x/C0.y → edit_input_float2(safe_addr(c0), ...) — same applies to C1/C-1/C2/C-2. * text("...") narrative widget instead of raw Text(). * separator(SEP_C0/C1/C2) instead of raw Separator(). * Drop FontGlobalScale shim — theme picks a sensible 14px default. Per-frame loop splits harness_end_frame manually so custom OpenGL draws between glClear and ImGui_ImplOpenGL3_RenderDrawData. options _allow_glfw_calls = true opts out of imgui_harness_lint for the GLFW/GL calls the example legitimately owns (live_get_framebuffer_size, glViewport, glClear, draw_fourier()). To run: `daspkg install` from examples/graphics/ to fetch dasImgui into the local modules/, then `daslang.exe -project_root . furier_opengl_imgui_example.das`. Co-Authored-By: Claude Opus 4.7 (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.