Skip to content

7R35C0/glfw-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

The repo contains simple demos of using GLFW library.

Tested only with Linux Fedora 41, X11, glfw 3.4.0 and zig 0.14.0

📌 Requirement

Before running the demos, check GLFW 3.4.0 requirements, especially installing dependencies, and install Zig 0.14.0 programming language.

Also install CMake (3.30.8) and Clang (19.1.7), these versions are informative, the code may or may not work with other versions.

📌 Implementation

Repo uses the Zig Build System to build and run the demos written in C language. The GLFW library itself is configured, built, and installed as dependency with CMake, via the zig build system.

📌 Usage

Run zig build dep step once to fetch, configure, build and install C/C++ dependencies, the results will be in the include and lib folders. This step will only need to be run again if dependencies or their configs have been changed.

Use zig build run -- demo/<folder_name> step to run a demo, the output will be in zig-out/bin. The zig build run step uses the src folder by default.

📌 Final note

More information are in build.zig and each demo file. However, for more detailed information or other use cases of library, please refer to GLFW documentation and related guides.

Unless explicitly stated otherwise, the source codes are licensed under the MIT License.

About

Simple demos of using GLFW library.

Topics

Resources

License

Stars

Watchers

Forks