Skip to content

A collection of elementary Zig programs that spawn windows on the Windows operating system from scratch.

Notifications You must be signed in to change notification settings

bg-thompson/window-spawning-examples-in-zig-for-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Window Spawning Examples in Zig (for Windows OS)

This is a collection of elementary Zig programs that spawn windows on the Windows operating system from scratch.

Each program is self-contained; none rely on window-spawning libraries like GLFW or SDL.

Building

The programs are trivial to build: simply call zig build-exe FILENAME -Doptimize=ReleaseFast where FILENAME is one of the project's .zig files. (E.g. zig build-exe indigo-window.zig -Doptimize=ReleaseFast.)

A Windows message box is spawned.

A Windows OS message box with a question icon.

An window that is indigo in color prints out window messages it receives.

A Windows OS window that is indigo in color.

A window oscillates between pink and blue.

A Windows OS window that oscillates in color, currently blue.

Dependencies

The project has no library dependencies; each file contains all the code it needs to be compiled with the Zig 0.13.0 compiler on Windows 10+. The project has no need for a build.zig.zon file, or even a build.zig file.

About

A collection of elementary Zig programs that spawn windows on the Windows operating system from scratch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages