You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add optional fullscreen support for desktop platforms
Add fullscreen parameter to initWindow() so apps can launch in fullscreen mode.
Implement toggleFullscreen() on Linux (EWMH) and Windows (borderless fullscreen),
which were previously empty stubs. macOS already worked and now supports initial
fullscreen at launch.
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,25 @@ interface Sound { handle: number }
93
93
interfaceModel { handle:number }
94
94
```
95
95
96
+
## Fullscreen
97
+
98
+
Launch your game in fullscreen by passing `true` as the fourth argument to `initWindow`:
99
+
100
+
```typescript
101
+
initWindow(800, 450, "My Game", true); // launches fullscreen
102
+
initWindow(800, 450, "My Game"); // windowed (default)
103
+
```
104
+
105
+
Toggle fullscreen at runtime:
106
+
107
+
```typescript
108
+
if (isKeyPressed(Key.F11)) {
109
+
toggleFullscreen();
110
+
}
111
+
```
112
+
113
+
Fullscreen is supported on macOS (native AppKit fullscreen), Windows (borderless fullscreen), and Linux (EWMH/X11). The width and height you pass are used as the windowed dimensions when exiting fullscreen.
114
+
96
115
## Skeletal Animation
97
116
98
117
Bloom supports GPU-accelerated skeletal animation via glTF/GLB models. The pipeline uses 4-bone linear blend skinning with a 128-joint uniform buffer, running entirely on the GPU.
0 commit comments