Skip to content

Add cross-platform bgfx + GLFW graphics sample. - #239

Merged
ASDAlexander77 merged 1 commit into
ASDAlexander77:mainfrom
yuripourre:bgfx-support
Jul 16, 2026
Merged

Add cross-platform bgfx + GLFW graphics sample.#239
ASDAlexander77 merged 1 commit into
ASDAlexander77:mainfrom
yuripourre:bgfx-support

Conversation

@yuripourre

Copy link
Copy Markdown
Contributor

Introduce docs/how/cmake_bgfx as a mixed TypeScript/C++ graphics sample using the TSLANG CMake language, GLFW, and FetchContent bgfx.cmake.

Control flow matches cmake_winapp and cmake_vulkan: C++ owns the event loop (GLFW polling); TypeScript constructs AppWindow and handles onMessage for frame rendering and input. Targets Windows, Linux (X11), and macOS via GLFW native window handles.

Introduce docs/how/cmake_bgfx as a mixed TypeScript/C++ graphics sample
using the TSLANG CMake language, GLFW, and FetchContent bgfx.cmake.

Control flow matches cmake_winapp and cmake_vulkan: C++ owns the event
loop (GLFW polling); TypeScript constructs AppWindow and handles
onMessage for frame rendering and input. Targets Windows, Linux (X11),
and macOS via GLFW native window handles.
@yuripourre

Copy link
Copy Markdown
Contributor Author

I didn't add the gears example but it's possible to run it.

Screenshot From 2026-07-15 17-00-11

@ASDAlexander77
ASDAlexander77 enabled auto-merge (squash) July 16, 2026 18:11
@ASDAlexander77
ASDAlexander77 disabled auto-merge July 16, 2026 18:11
@ASDAlexander77
ASDAlexander77 enabled auto-merge (squash) July 16, 2026 18:11
@ASDAlexander77
ASDAlexander77 merged commit 93495ba into ASDAlexander77:main Jul 16, 2026
2 checks passed
@yuripourre
yuripourre deleted the bgfx-support branch July 16, 2026 23:05
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