Skip to content

Add VSCode syntax highlight extension#39

Closed
eguskov wants to merge 1 commit into
GaijinEntertainment:masterfrom
eguskov:master
Closed

Add VSCode syntax highlight extension#39
eguskov wants to merge 1 commit into
GaijinEntertainment:masterfrom
eguskov:master

Conversation

@eguskov
Copy link
Copy Markdown
Contributor

@eguskov eguskov commented Nov 12, 2019

No description provided.

@AntonYudintsev
Copy link
Copy Markdown
Collaborator

aleksisch pushed a commit to aleksisch/daScript that referenced this pull request Dec 9, 2025
correct check range with multidim arrays
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants