summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
Commit message (Collapse)AuthorAgeFilesLines
* renderer: drastically optimize bg texture creationvaxerski2024-07-261-0/+3
| | | | stop loading 20MB images every time, dumbass
* egl: support getting the device via platform_deviceVaxry2024-07-241-0/+2
| | | | a neat EXT
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-5/+47
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* core: Move to hyprutils for MathVaxry2024-06-191-1/+1
| | | | | | Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
* egl: fixup format modifier lookups with implicit modifiersVaxry2024-06-141-1/+3
| | | | ref #6485
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-78/+81
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* cursor: move to a hyprland implVaxry2024-05-091-27/+32
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-051-4/+4
| | | | | | | | | | | moves std::shared_ptrs to a new implementation Advantages: - you can dereference a weak_ptr directly. This will obviously segfault on a nullptr deref if it's expired. - this is useful to avoid the .lock() hell where we are 100% sure the pointer _should_ be valid. (and if it isn't, it should throw.) - weak_ptrs are still valid while the SP is being destroyed. - reasoning: while an object (e.g. CWindow) is being destroyed, its `weak_ptr self` should be accessible (the sp is still alive, and so is CWindow), but it's not because by stl it's already expired (to prevent resurrection) - this impl solves it differently. w_p is expired, but can still be dereferenced and used. Creating `s_p`s is not possible anymore, though. - this is useful in destructors and callbacks.
* layerSurface: refactor/move to a memory-safe implVaxry2024-04-301-6/+6
| | | | | Makes all the pointers smart to avoid memory issues Refactors layerSurface code to live inside desktop/layersurface
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-10/+11
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* renderer: Fix mirrored displays when transformed and preserve aspect ratio ↵Virt2024-04-241-2/+2
| | | | | | | | | | | | | (#5697) * renderer: transform mirror buffer and preserve mirror aspect ratio * renderer: render mirrors directly from offloadFB * renderer: fix formatting * renderer: use monitorMirrorFB again, but properly damage mirrors * renderer: clean mirrors after reload and support cursor zoom mirroring
* renderer: block screen shader on screencopyVaxry2024-04-031-0/+1
|
* renderer: some fixes for renderModifVaxry2024-04-031-0/+5
|
* Workspace/core: Refactor workspace storage (#5380)Vaxry2024-04-021-1/+1
| | | | | * refactor workspaces to use ptrs * clang-format
* opengl: report shader compilation errors from screen_shader (#5138)jill2024-03-211-0/+1
| | | | | | | | | | | | | | | | | * opengl: report shader compilation errors from screen_shader * opengl: prefer .data() * opengl: move shader error logging to logError * opengl: quick glGetShaderiv -> glGetProgramiv fix * opengl: typo fix * opengl: format fixes * opengl: minor compile fixes * opengl: logError -> logShaderError
* layers: add fully featured animationsVaxry2024-02-281-1/+1
| | | | | | | | Adds configs and layerrules to handle them alas fixes #981 I have cooked
* renderer: nuke lastFrameDamage and rework finalDamageVaxry2024-02-231-1/+4
| | | | this fucking SUCKED
* renderer: Add new background infrastructureVaxry2024-01-291-4/+2
| | | | | | | | 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
* opengl: add renderdata.forceIntrospectionvaxerski2024-01-071-0/+1
|
* renderer: overhaul renderModifDatavaxerski2024-01-071-2/+11
|
* style/ci: apply clang-format and verify it in ci (#4039)François Conzelmann2023-12-061-2/+1
| | | | | * style: apply clang-format * ci: add new clang-format job to CI
* renderer: use xray for background blur on small() surfacesVaxry2023-12-061-3/+2
| | | | ref #4050
* screencopy: use buffer format for glReadPixelsVaxry2023-12-041-43/+52
| | | | fixes #4029
* opengl: fix nvidia read formatsVaxry2023-12-021-0/+4
| | | | fixes #4023
* screencopy: fix shm exports with 10-bitVaxry2023-12-011-0/+2
| | | | fixes #4019
* deps: update wlrootsVaxry2023-11-301-3/+4
|
* renderer: use occlusion checks for buffer clearVaxry2023-11-261-1/+2
|
* opengl: better checking for required introspectionvaxerski2023-11-241-3/+4
| | | | performance woo
* renderer: Move to a full Hyprland GL rendering pipeline (#3920)Vaxry2023-11-241-7/+15
| | | Also updates wlroots
* opengl: switch to black-and-white for alpha mattesVaxry2023-11-091-1/+1
| | | | also fixes shadows on 10b
* renderer: added new customization options to the blur shaders (#3650)Visual-Dawg2023-11-061-0/+1
| | | Adds to `decoration:blur:` `vibrancy` and `vibrancy_darkness`
* renderer: allow transform enabling from outside openglVaxry2023-11-041-3/+3
|
* shadows: fix on transformedVaxry2023-11-041-1/+5
|
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-041-13/+13
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* Decos: Window decoration flags, shadow improvements (#3739)Vaxry2023-11-041-1/+1
|
* renderer: add transformersVaxry2023-10-211-0/+7
|
* shaders: support changing the outer radius of borders independentlyVaxry2023-10-191-1/+1
|
* renderer: add decoration:blur:specialvaxerski2023-08-251-1/+2
| | | | will blur behind the special ws
* renderer: track fade alpha for blur if ignore opacity is truevaxerski2023-08-231-40/+41
| | | | with ignore_opacity, blur would stay at 1 opacity during a fadeOut animation on layers, making it look wrong. Fixes #3051
* rules: add layer and window xray rulesvaxerski2023-08-091-2/+4
|
* renderer: Various Blur Improvements (#2877)Vaxry2023-08-031-0/+1
| | | | | * move blur to its own category * blur improvements, contrast, brightness, noise
* renderer: use primitive rendering for copying buffersvaxerski2023-07-211-0/+1
|
* renderer: don't occlude when pre-blur is queuedvaxerski2023-07-201-0/+1
|
* Debug: add tracyvaxerski2023-07-201-0/+2
|
* opengl: adjust blend and reduce the usage of clearvaxerski2023-07-201-0/+3
|
* toplevelexport: support dmabuf + various fixesvaxerski2023-07-201-0/+1
|
* internal: Wrap regions (#2750)Vaxry2023-07-191-9/+11
|
* render: move lastFrameDamage to CMonitorvaxerski2023-07-101-2/+0
|
* Allow setting alpha value for ignorezero layer rule (#2477)end-42023-06-111-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rename ignorezero to ignorealpha * allow setting ignorealpha value This commit allows setting a float value (0-1) for the ignorealpha layer rule. Does not yet have error handling; invalid ignorealpha layer rule will crash Hyprland. * add brackets i forgot to add * prevent crash with invalid ignorealpha value prevents hyprland from immediately crashing with invalid ignorealpha layer rule does not log * don't try to set ignoreAlphaValue if alpha value not specified * add catch to try, reintroduce ignorezero - added catch after try cuz i was an idiot - re-add ignorezero as an alternative to ignorealpha to not introduce a breaking change * add logging for failed ignorealpha layer rule * fix get ignorealpha's get VALUE * check npos and use empty() * rename VALUE cuz no longer const * format Shader.hpp
* Added some workspace-specific rules (#1986)levnikmyskin2023-05-011-3/+2
| | | | | | | | | | | | | | | | | | | | | | * added some workspace-specific rules * added some worskpace-specific rules, with windowrule like syntax * monitor is not mandatory anymore * pointers to config are now static * fixed optional WorkspaceRule fields * Windows can now specify border size * removed CHyprOpenGLImpl::renderBorder borderSize default value * stuff --------- Co-authored-by: Alessio Molinari <alessiomolinari@gmail.com> Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>