Skip to content

Fix example builds across Nim versions - #38

Merged
treeform merged 1 commit into
masterfrom
codex/nim-compatibility-2026-11-15
Nov 15, 2026
Merged

treeform merged 1 commit into
masterfrom
codex/nim-compatibility-2026-11-15

Conversation

@treeform

Copy link
Copy Markdown
Owner

The triangle and SVG examples fail to build with current GLFW and Windy APIs. Match the GLFW resize callback's cint parameters, use Windy's openglVersion option, and explicitly convert the uniform matrix to Mat4 so the triangle also compiles with older Nim compilers.

Validation:

  • Both examples pass nim check and native compilation with Nim 2.4.0 from this branch, using committed dependency snapshots.
  • The triangle was also verified with Nim 1.4.8, 1.6.20, 2.0.16, 2.2.4, and 2.2.12; 1.4.8 used compatible Pixie 5.1.0. The SVG example was verified with 2.0.16 and 2.2.12.
  • Generated shader validation confirmed equivalent optimized SPIR-V after the matrix conversion.

GUI applications were compiled without launching them.

@treeform
treeform merged commit c3ccac0 into master Nov 15, 2026
1 check passed
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.

1 participant