https://github.com/phoeenix05/glfw-macos-overlay
https://github.com/phoeenix05/glfw-macos-overlay
example-code glfw glfw3 macos objcpp objective-cpp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phoeenix05/glfw-macos-overlay
- Owner: Phoeenix05
- Created: 2024-05-16T06:58:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-16T10:12:26.000Z (about 1 year ago)
- Last Synced: 2025-01-28T09:47:01.572Z (4 months ago)
- Topics: example-code, glfw, glfw3, macos, objcpp, objective-cpp
- Language: Objective-C++
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GLFW MacOS overlay
An overlay example for MacOS using GLFW.
I always wondered how stuff like Discord's voice overlay (not available on macos) and Raycast's confetti command and other stuff drew graphics on the screen without a window. This example is meant to show how something like that can be achieved.
This is actually really simple but requires the use of Objective-C or in this case Objective-Cpp, and the documentation seems to be quite bad / non-existent, atleast I couldn't find any. This whole example is made by using Chat-GPT and StackOverflow as the sources.
# setup and how to run
## install dependencies
```sh
# optional, but recommended
brew install just# if you installed just you can skip these two
brew install glfw
pip3 install --user meson
```## setup
```sh
just setup
# or
meson setup builddir
```## running
```sh
just run # only running `just` also works
# or
meson compile -C builddir
./builddir/hallo
```