Alexis Maiquez
cd4a76677f
Added a couple of patches for different shaders
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-11 03:33:51 +01:00
Alexis Maiquez
37631e9c40
Upgraded to shader version 330
...
Added support for shader patches
Removed useless DEBUG define in favour of NDEBUG
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-11 03:21:45 +01:00
Alexis Maiquez
4e0f02f64d
Added support for using zcompat shaders, should fix audio bars shaders for the most part
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-10 22:33:48 +01:00
Alexis Maiquez
b16cc2fd3b
Brought back some changes that were removed with previous revert
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-09 00:28:50 +01:00
Alexis Maiquez
64d9c2e4e6
Fix crash on effects parsing
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-09 00:22:48 +01:00
Alexis Maiquez
3d8452ee9a
Revert "Properly clamp volume value"
...
This partially reverts commit 95713ae439
.
# Conflicts:
# src/WallpaperEngine/Application/CApplicationContext.cpp
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-08 23:59:39 +01:00
Alexis Maiquez
99a4935825
Add composelayer checks back until we figure out how they work
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-08 18:55:27 +01:00
Alexis Maiquez
732c60da46
More code cleanups
...
Update .clang-format
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-08 18:48:19 +01:00
Alexis Maiquez
48a91ff297
More code cleanup
...
Input is now handled by context
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-08 14:57:17 +01:00
Alexis Maiquez
a8ef45265c
Fix build with old ffmpeg
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-08 14:34:22 +01:00
Alexis Maiquez
d2e82e72d8
Small code cleanups
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-08 14:27:41 +01:00
Alexis Maiquez
26f6156f34
MPV should respect volume levels now
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-07 11:29:57 +01:00
Alexis Maiquez
95713ae439
Properly clamp volume value
...
Removed all usages of std::make_pair
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-07 04:35:47 +01:00
Alexis Maiquez
55760aee4d
More code cleanup:
...
- Separated program args parsing and validation from initialization code
- Application's main body in it's own class
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-07 04:17:51 +01:00
Alexis Maiquez
476d45be0a
Fix a possible crash when a packet was freed on audio playback
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-07 04:16:43 +01:00
Alexis Maiquez
490718c22b
Fix missing #if body for number of out channels
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-07 00:45:44 +01:00
Alexis Maiquez
456dd531cf
Cleanup and rewrite of the audio resampling code to use non-deprecated code when possible
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-07 00:40:51 +01:00
Alexis Maiquez
b79444cdd9
Fix typo in last commit
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-07 00:05:13 +01:00
Alexis Maiquez
3df27e289b
Brought back deprecated code for older ffmpeg builds
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-07 00:03:51 +01:00
Alexis Maiquez
ecd8ff3757
Applied the same context-driver treatment to the audio subsystem (still needs some extra work to ensure all audio plays fine and a good cleanup)
...
Fixed README.md to properly reflect all dependencies in the command examples
Added support for audio looping
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-06 22:35:46 +01:00
Alexis Maiquez
97ddc91ff5
Hopefully solved #81 , should be improved at least
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:52:44 +01:00
Alexis Maiquez
e888bb452d
Fix bloom effect FBO's not using GL_LINEAR, no more blocky bloom
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:45:14 +01:00
Alexis Maiquez
30bb8d6d72
Small cleanup of pass initialization code
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:36:07 +01:00
Alexis Maiquez
9bb0a40bc5
Simplified usage of jsonFindUserConfig
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:29:01 +01:00
Alexis Maiquez
59bff58f5c
Updated README with mpv dependencies
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:15:48 +01:00
Alexis Maiquez
7079d12e2a
Switched video backgrounds to mpv (should fix all the videos that weren't playing sound or had random issues)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-05 06:11:04 +01:00
Alexis Maiquez
a24b1923f6
Cleanup of code:
...
- use of auto in some places (more of this to come)
- use for loops instead of iterators for most of the loops
- extracted glfw/glew code into it's own class
- make usage of std::filesystem instead of checking things with old C libraries
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-03 18:41:51 +01:00
Alexis Maiquez
d370e028ff
Renamed CContext to CRenderContext to allow for the introduction of CAudioContext in following iterations
...
Improved logging and error reporting to be a bit more flexible
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-03 00:00:17 +01:00
Alexis Maiquez
4dc3a4bc01
Added g_PointerPositionLast
...
Improved delay calculation for parallax (should prevent backgrounds from flickering with big delays)
Fixed g_TexelSize having the wrong value and g_TexelSizeHalf not being defined
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 18:40:38 +01:00
Alexis Maiquez
e1fe215398
Undid some assumptions on how visible works as they were not entirely right
...
Effect's visible behaves a little weirdly :/ need to properly understand it
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 03:31:40 +01:00
Alexis Maiquez
92bdde2bd1
Renamed CUserSettingColor to CUserSettingVector3 as it makes more sense
...
CUserSettingVector3 are initializable with just one float value
Objects' origin and scale are now UserSettings too
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 03:10:38 +01:00
Alexis Maiquez
885221d602
Removed a missed line in previous commit
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 02:38:45 +01:00
Alexis Maiquez
fdd5bcb0b5
Removed old jsonFindUserConfig and updated to a new version using the CUserSetting classes
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 02:36:29 +01:00
Alexis Maiquez
176470dad9
Image color and alpha can now be user-settings
...
Removed old Color structures not useful anymore
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 02:08:05 +01:00
Alexis Maiquez
cd40950ade
Fixed some shaders not getting properly compiled (missing part of the content)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-01 01:07:09 +01:00
Alexis Maiquez
cec1baef30
Added explanations on the properties part of the backgrounds
...
Any --set-property will now output something when a value is being applied to ease debugging
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:44:27 +01:00
Alexis Maiquez
4b4a79393c
Added apt-get update to cmake action
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:30:46 +01:00
Alexis Maiquez
73f531bb38
Replaced codeql analysis for plain cmake building
...
Added badges to the readme
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:29:38 +01:00
Alexis Maiquez
8211a7010b
Hopefully address the issue with REQUIRED_VARS for FindFFMPEG.cmake in cmake earlier than 3.18
...
Properly addresses issue #121 (and hopefully discussion #140 )
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:16:08 +01:00
Alexis Maiquez
9cddb56f60
Added support for setting values to properties from command-line to modify how backgrounds look
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 22:07:59 +01:00
Alexis Maiquez
cf37fe388c
Added support for usersettings in the bloom
...
Added casting for integer to double in json loading
Added support for dumping all available properties
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-31 21:37:38 +01:00
Alexis Maiquez
fc150576eb
Object and effect visibility can now be compared to project's properties
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-30 13:34:02 +01:00
Alexis Maiquez
a1c07b524b
Merge branch 'main' of git@github.com:Almamu/linux-wallpaperengine.git
2023-01-29 21:15:47 +01:00
Alexis Maiquez
62af627ffa
Added some missing texture formats to the definition
...
Added some extra settings for debugging
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-01-29 21:15:26 +01:00
Daniel Coughlan
59cea56fef
corrections to the README.md file
2023-01-29 13:23:12 +01:00
Daniel Coughlan
d56d057c1d
Clean up README.md
2023-01-29 13:23:12 +01:00
Alexis Maiquez
e16d54bba3
Added an extra path for background loading
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-12-05 10:36:42 +01:00
Alexis Maiquez
6f570be911
g_ModelViewProjectionMatrix should now have the right values for passes (fixes sun not displaying properly in 2882477794)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-11 17:09:47 +01:00
Alexis Maiquez
f4ccf40e14
Fixed background scaling (should improve #81 )
...
Added some more debug information for renderdoc
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-06 12:48:55 +01:00
Alexis Maiquez
087a0976ae
Added support for taking a screenshot after wallpaper's up (useful for pywal and other ricing rools)
...
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-11-05 11:00:51 +01:00