core: examples: standardize window titles and show good practices about dynamic titles #461

Closed
opened 2022-08-19 04:50:13 +00:00 by emidoots · 1 comment
emidoots commented 2022-08-19 04:50:13 +00:00 (Migrated from github.com)

Goal: every example in https://github.com/hexops/mach-core/tree/main/examples except wasm-test has this logic copy+pasted into it which sets the window title:

github.com/hexops/mach-core@252319e00d/examples/textured-cube/main.zig (L288-L295)

  • Textured cube should be replaced with the actual example name.
  • title_timer: core.Timer, should be the first field in the App struct.
Goal: every example in https://github.com/hexops/mach-core/tree/main/examples except `wasm-test` has this logic copy+pasted into it which sets the window title: https://github.com/hexops/mach-core/blob/252319e00d9c05e0bcb90ab69584d33ff053257c/examples/textured-cube/main.zig#L288-L295 * `Textured cube` should be replaced with the actual example name. * `title_timer: core.Timer,` should be the first field in the App struct.
emidoots commented 2023-08-07 16:52:46 +00:00 (Migrated from github.com)
Fixed by https://github.com/hexops/mach-core/pull/35
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#461
No description provided.