1
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2025-07-27 02:01:55 -07:00
Commit Graph

402 Commits

Author SHA1 Message Date
Vaxry
7587cadd0a renderer: add support for gles3.2 screen shaders 2024-03-18 04:15:04 +00:00
Vaxry
063708df26 config: improve config value infrastructure 2024-03-03 18:41:38 +00:00
Vaxry
cc94123fa7 renderer: minor fixes to transformations 2024-03-03 02:18:06 +00:00
Julien Roy
2a08f2ba84 opengl: fix compilation on legacy renderer () 2024-03-03 00:31:36 +00:00
GartoxFR
b2c3440477 animations: Refactor AnimatedVariable ()
* animation: Refactor AnimatedVariable

This commit decomposes the AnimatedVariable class into a base class
with the common attribute to all variable types and a templated derived
type containing strongly typed info on the type being animated.

Access to the typed version is perfomed using the visitor pattern. A
utility is provided to build a visitor on the fly using lambdas.

Adding a new type to be animated should just be a matter of adding the
typed in the list defined by the ANIMABLE_TYPES macro

The size of the commit is justified by the API change in the
AnimatedVariable class. No more vec(), fl() or col() method but a unified
value() method.

* animation: Remove visitor pattern

* animation: Fix coding style

* animation: Fix coding style
2024-03-02 00:35:17 +00:00
Vaxry
4bc669f933 layers: add fully featured animations
Adds configs and layerrules to handle them

alas fixes 

I have cooked
2024-02-28 15:00:40 +00:00
Vaxry
bfb1e876a8 config: add opengl:force_introspection
fixes 
2024-02-23 21:21:24 +00:00
Vaxry
ca59bd5739 opengl: check bottom/bg layers for required introspection
ref 
2024-02-23 21:09:47 +00:00
Vaxry
8c3613632a renderer: nuke lastFrameDamage and rework finalDamage
this fucking SUCKED
2024-02-23 01:02:32 +00:00
Vaxry
c353b7c4f7 renderer: minor fixes for introspection detection 2024-02-22 23:01:22 +00:00
Hiram Muñoz
dad8ffd576 renderer: Update splash text properties to be configurable ()
* Update splash text properties to be configurable

The splash text's font and color properties have been updated to be configurable. This change includes adding new configuration values for the splash screen color and font. The rendering of the splash screen is also adjusted to use these new config values, allowing for easy customization of the splash text appearance.

* Updated to use Hyprlang config manager
2024-02-21 18:31:29 +00:00
Vaxry
13f6f0b923 Migrate the config to hyprlang ()
* Migrate to hyprlang

* pop up errors

* fix swapped args

* Meson & Nix: build with hyprlang

* CI: add hyprlang to setup action

* add infra for plugin stuff

* fix hyprctl getoption

* fix hyprctl getoption with json

* format

* fix post parse logic

* fix autogen config

* oops missed exec-once

* fmt

* fix ws rules

* require 0.3.0 for hyprlang

* nix: flaek

* minor type fixes

* fix cfg usages in swipe

* use cvarlist for ws rules

* fix throw in addPluginConfigVar

* Nix: update hyprlang

* minor fixes

* fix disableLogs

* mention hyprlang docs

* bump hyprlang dep in cmake

* Meson: bump min hyprlang version

Nix: update hyprlang

* minor fix

* Nix: update meson patch

---------

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2024-02-18 15:00:34 +00:00
JManch
1ed4f1cb25 screenshader: rename output uniform to wl_output ()
* screenshader: rename output uniform to monitor

* rename to wl_output
2024-02-04 02:30:00 +00:00
Vaxry
cf1886ca44 renderer: avoid unnecessary gpu resource deletions
fixes 
2024-02-02 15:36:13 +00:00
Vaxry
d7514412d8 renderer: reset fb pointers after render pass
fixes 
2024-02-02 14:56:04 +00:00
Vaxry
2e3f0d5991 renderer: Add new background infrastructure
Adds new backgrounds from the winners of the contest
Rewrites how it works
Allows high color precision PNGs (RGB32F precisely)
Fixes a small bug in renderTextureInternalWithDamage
Nukes misc:force_hypr_chan
2024-01-29 23:11:00 +00:00
Vaxry
3e93fdf779 opengl: use texBox for rendering background texture
fixes 
2024-01-28 00:32:54 +00:00
Vaxry
72987dee88 opengl: rassert false on lost context
we do not have infra to deal with this. It will cause hyprland to freeze rendering, we might as well die.
2024-01-26 02:26:10 +00:00
vaxerski
6b92144f15 surface: avoid spam of window surfaces with scale and transform events
fixes 
2024-01-11 14:07:28 +01:00
vaxerski
d7d333d162 opengl: apply box rot to projections 2024-01-07 18:51:08 +01:00
vaxerski
f5b2fd2bc3 opengl: add renderdata.forceIntrospection 2024-01-07 18:37:02 +01:00
vaxerski
44ee9915e3 renderer: overhaul renderModifData 2024-01-07 18:35:44 +01:00
nmzik
53ce7992be renderer: double lookup fix, input: double conversion fix () 2023-12-11 16:28:22 +00:00
nmzik
efdf07e295 renderer: Allocate background texture only if required () 2023-12-10 16:53:08 +00:00
Vaxry
5489f9f07a renderer: use xray for background blur on small() surfaces
ref 
2023-12-06 20:17:40 +00:00
Vaxry
c6804ccaab opengl: fixup blur dirty repaint conditions with solitary
fixes 
2023-12-05 00:43:09 +00:00
Vaxry
68783d904d screencopy: use buffer format for glReadPixels
fixes 
2023-12-04 03:52:54 +00:00
Vaxry
e496b0f250 screencopy: fix detecting gl shm formats
ref 
2023-12-03 22:04:07 +00:00
Vaxry
80b9b21f9f opengl: fix nvidia read formats
fixes 
2023-12-02 14:51:45 +00:00
Vaxry
6e8b9ef7d8 opengl: fix swapped rgb drm formats 2023-12-01 17:23:50 +00:00
Vaxry
9c09f2a847 screencopy: fix shm exports with 10-bit
fixes 
2023-12-01 17:20:56 +00:00
Vaxry
9f2027be4b opengl: don't make a mirror buffer on fakeFrame 2023-11-30 10:15:02 +00:00
Vaxry
776f944619 opengl: fix missed makeEGLCurrent
fixes 
2023-11-30 02:19:27 +00:00
Vaxry
d2c3b23ace deps: update wlroots 2023-11-30 01:18:55 +00:00
Vaxry
adeb20ea11 opengl: tiled special require introspection 2023-11-26 16:42:04 +00:00
Vaxry
ad3f688648 opengl: check for introspection on special_blur 2023-11-25 19:44:34 +00:00
Vaxry
15b282ee0c opengl: fix window introspection check 2023-11-25 17:46:50 +00:00
Vaxry
3fe6162af1 opengl: fix xray modes in introspection checks for ls
fixes 
2023-11-25 14:52:52 +00:00
Vaxry
a6eba91935 opengl: require introspection on mirroring
fixes 
2023-11-25 00:48:02 +00:00
vaxerski
aedcade68d opengl: better checking for required introspection
performance woo
2023-11-24 12:37:10 +00:00
vaxerski
802ab58f8a renderer: fix inverseOpaque calcs in renderWithBlur 2023-11-24 12:32:35 +00:00
Vaxry
2ebfd0c745 renderer: Move to a full Hyprland GL rendering pipeline ()
Also updates wlroots
2023-11-24 10:54:21 +00:00
Dickby
1d9bfa60a1 opengl: Don't use wrong shader just because it's GLES () 2023-11-16 21:03:17 +00:00
vaxerski
859841f4d1 renderer: don't make snapshots of invisible windows on close 2023-11-16 12:24:07 +00:00
Vaxry
9be6fbf5ea decorations: Decoration Positioner () 2023-11-11 14:37:17 +00:00
Vaxry
14195835ef opengl: switch to black-and-white for alpha mattes
also fixes shadows on 10b
2023-11-09 22:11:54 +00:00
Vaxry
11432f69b9 opengl: remove unused alpha matte from shadow 2023-11-09 22:11:54 +00:00
Visual-Dawg
29e0a7112e renderer: added new customization options to the blur shaders ()
Adds to `decoration:blur:` `vibrancy` and `vibrancy_darkness`
2023-11-06 18:49:03 +00:00
Vaxry
56dec1c6a2 renderer: properly set currentFB on snapshot renders 2023-11-04 22:25:09 +00:00
Vaxry
66a3719b86 renderer: allow transform enabling from outside opengl 2023-11-04 19:35:49 +00:00