Find a file
Jan Beich 0f9b8ca692
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
color: add missing header for libc++ (#3)
src/color/Color.cpp:71:66: error: no member named 'min' in namespace 'std'; did you mean 'fmin'?
   71 |     const double vmax = std::max(std::max(r, g), b), vmin = std::min(std::min(r, g), b);
      |                                                             ~~~~~^~~
      |                                                                  fmin
/usr/include/c++/v1/cmath:447:9: note: 'fmin' declared here
  447 | using ::fmin _LIBCPP_USING_IF_EXISTS;
      |         ^
src/color/Color.cpp:71:75: error: no member named 'min' in namespace 'std'; did you mean 'fmin'?
   71 |     const double vmax = std::max(std::max(r, g), b), vmin = std::min(std::min(r, g), b);
      |                                                                      ~~~~~^~~
      |                                                                           fmin
/usr/include/c++/v1/cmath:447:9: note: 'fmin' declared here
  447 | using ::fmin _LIBCPP_USING_IF_EXISTS;
      |         ^
2024-12-18 17:59:51 +01:00
.github/workflows CI/Arch: add deps 2024-11-26 14:08:51 +02:00
include/hyprgraphics color: Add color 2024-12-03 17:52:39 +00:00
nix Nix: init 2024-11-26 13:57:40 +02:00
src color: add missing header for libc++ (#3) 2024-12-18 17:59:51 +01:00
tests core: Add image and cairo 2024-11-22 15:02:12 +00:00
.clang-format core: add clang-format 2024-11-28 15:29:49 +00:00
.gitignore core: Add image and cairo 2024-11-22 15:02:12 +00:00
CMakeLists.txt cmake: fix clang compilation 2024-11-28 15:35:27 +00:00
flake.lock Nix: init 2024-11-26 13:57:40 +02:00
flake.nix Nix: init 2024-11-26 13:57:40 +02:00
hyprgraphics.pc.in core: Add image and cairo 2024-11-22 15:02:12 +00:00
LICENSE Initial commit 2024-11-22 14:16:34 +00:00
README.md README: fix invalid getconf variable name 2024-11-22 15:11:15 +00:00
VERSION version: bump to 0.1.1 2024-12-03 17:52:51 +00:00

hyprgraphics

Hyprgraphics is a small C++ library with graphics / resource related utilities used across the hypr* ecosystem.

Stability

Hyprgraphics depends on the ABI stability of the stdlib implementation of your compiler. Sover bumps will be done only for hyprgraphics ABI breaks, not stdlib.

Building

git clone https://github.com/hyprwm/hyprgraphics
cd hyprgraphics/
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
sudo cmake --install build