Commit Graph

497 Commits

Author SHA1 Message Date
Alexis Maiquez
70d815c183 Properly detect texture sizes so effects using smaller mask textures are properly applied
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-10-28 05:06:21 +02:00
Alexis Maiquez
4e3254e843 Improved detection of "previous" textures (fixes 2370927443)
Added support for PKGV0018
Try to prevent crashing when shaders do not compile and go with whatever can be displayed

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-10-26 09:09:13 +02:00
Alexis Maiquez
2a6f7b778e Update readme with new binary name
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-08-24 03:30:34 +02:00
Alexis Maiquez
91d8dbdaec Update binary name and provide a rudimentary fallback for old binary name (unsupported)
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-08-24 03:28:36 +02:00
Alexis Maiquez
8955ba791c Bumped up shader version to 150 (work on shaders not compiling for #115 and #117)
Improved jsonFindDefault to not crash when the value types do not match (should partially fix #116)

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-07-15 12:20:12 +02:00
Alexis Maiquez
d6561268d6 Added support for gifscene.pkg files (essentially the same as normal scene.pkg) fixes startup of #118
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-07-14 22:29:11 +02:00
Alexis Maiquez
09effd0303 CFBO frame dummy values added
Added combo properties support
Bumped up GLSL version to 130 and added some extra definitions

This work goes on to #115, although the background won't start up yet because of shader compilation issues

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-07-14 22:12:46 +02:00
Alexis Maiquez
4561f5ca7f Raised minimum cmake version to 3.12, should fix errors about add_compile_definitions
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-07-14 20:01:41 +02:00
Alexis Maiquez
ec6164c4cf ~ fix audio thread not stopping when a signal for stopping is received
should fix #107

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-06-10 14:19:46 +02:00
Alexis Maiquez
e5ef7bd53e ~ updated shader compiler to look for the first function, not just main
should fix #106

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-06-10 14:04:22 +02:00
Alexis Maiquez
e51734e4f9 ~ better fix for #103
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-06-09 12:33:38 +02:00
Alexis Maiquez
cf2e31a606 ~ quick fix for shader compilation with nested includes, should fix #103
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-06-09 12:12:50 +02:00
Alexis Maiquez Murcia
46ea8e8f03 + Added support for using background's ID so it's directly loaded from a steam installation directly (implements #101)
~ Updated readme with the new possibilities

Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-06-01 23:04:59 +02:00
Alexis Maiquez Murcia
a12d05a61d + added placeholder code for audio playback inside videos (disabled for now)
~ fixed video looping not working properly (fixes #102)

Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-06-01 20:35:15 +02:00
Alexis Maiquez Murcia
7acac874fa ~ Includes should be after all variable declarations and before the main function, fixes #97 and #100
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-06-01 20:12:23 +02:00
Alexis Maiquez Murcia
f4988158ad ~ Keep original X messages as they're kind of useful for debugging
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-05-10 00:18:26 +02:00
Alexis Maiquez
28f0868caa Check for XSetIOErrorExitHandler so old Xlib versions can work just fine
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-05-08 14:47:34 +02:00
Alexis Maiquez
6808f31cd6 Handle XIO errors to keep the background running as much as possible, should fix #91
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-05-08 14:14:36 +02:00
Alexis Maiquez
cd3c024c48 Merge branch 'main' of git@github.com:Almamu/linux-wallpaperengine.git 2022-05-08 03:49:36 +02:00
Alexis Maiquez
e3aa82c2ed Fix ratio calculation not being exactly right
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-05-08 03:49:30 +02:00
Alexis Maiquez
eb14099c4c Removed SDL_mixer in favour of ffmpeg for audio decoding
Added extra option for general audio volume

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-05-08 03:37:32 +02:00
Alexis Maiquez
746d0943ff Fix warnings on cmake execution to make it easier to understand the output of the process
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-05-01 23:36:36 +02:00
Alexis Maiquez Murcia
fca645b25a ~ Fixed RG88 and R8 textures not loading properly
~ Fixed combo setting based on the textures supplied to the image
~ Fixed vec4 shader constants not using the default value
  Should fix #87

Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-04-07 23:34:03 +02:00
Alexis Maiquez Murcia
8450413105 The "max" function has the parameters in the reverse order, fixes #86 not booting up
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-04-07 20:45:19 +02:00
Alexis Maiquez Murcia
3ed1459568 If SDL initialization fails, the background will still start but show an error to let the user know why the sound doesn't work
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-04-04 21:04:26 +02:00
Alexis Maiquez Murcia
693f3c5d0e Added different PKGV versions to the list of supported packages, should fix #85
Added some extra logging to the shader compilation to have an easier debugging experience

Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-04-04 20:59:04 +02:00
Alexis Maiquez Murcia
aa3db15ec6 Added some automatic detection for the assets folder from the Steam installation:
~/.steam/steam/steamapps/cocmmon/wallpaper_engine/assets
~/.local/share/Steam/steamapps/common/wallpaper_engine/assets
<Current's binary location>/assets

Should improve/fix #82

Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2022-04-04 20:27:42 +02:00
Tarulia
4c0322d9e6 ~ doc: minor formatting changes and typo fixes 2022-04-04 16:56:54 +02:00
Tarulia
dd54abd9ba ~ doc: note on Steam Play & getting to the files 2022-04-04 16:56:54 +02:00
Tarulia
a7384d9258 ~ doc: add section for extracting background files 2022-04-04 16:56:54 +02:00
Alexis Maiquez
17d4be61b1 + added .clang-format
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-03-11 12:33:07 +01:00
Alexis Maiquez
cad78c58f9 + Support animated images in the background
~ ITextures can now also return sub-textures width and height
+ added proper code to handle animated images to properly play at normal speed

  this should actually fix #79 for good

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-03-06 01:28:31 +01:00
Alexis Maiquez
34635ba6ac ~ fixed video background playback being broken
~ CTexture should properly pick up the right width and height for animated backgrounds too

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-03-01 00:29:26 +01:00
Alexis Maiquez
64d2f77d41 + added support for reading multiple images from a texture
first steps to fix #79

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-28 23:48:43 +01:00
Alexis Maiquez
c060ca991c Merge branch 'main' of git@github.com:Almamu/linux-wallpaperengine.git 2022-02-28 14:55:00 +01:00
Alexis Maiquez
f4955f1531 - removed dependency on std::filesystem
~ moved some things into CContext so main is a bit cleaner
~ moved wallpaper object creation into CWallpaper so main is a bit cleaner

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-28 14:54:45 +01:00
Alexis Maiquez
82a1e3698d
Updated codeql-analysis so it builds properly 2022-02-28 02:34:06 +01:00
Alexis Maiquez
009321572e - removed custom glfw3 from the project as it's not needed anymore
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-28 02:31:51 +01:00
Alexis Maiquez
0aefcbe1a0 ~ fixed backgrounds not rendering in the proper positions under some specific configurations
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-28 02:22:46 +01:00
Alexis Maiquez
9ff5330a39 Merge branch 'pr75-main'
# Conflicts:
#	src/WallpaperEngine/Render/CContext.cpp
#	src/WallpaperEngine/Render/CWallpaper.cpp
#	src/WallpaperEngine/Render/CWallpaper.h
2022-02-28 02:09:15 +01:00
Alexis Maiquez
5bc0525493 ~ reorganized context initialization so opengl is ready
~ moved pixmap, gc and image creation to the initialization
  TODO: SUPPORT SCREEN SIZE CHANGES (THIS MIGHT NEED REINITIALIZATION OF THINGS)
~ moved fbo creation to initialization as it won't change anymore
~ reverted render code to the original loop as now the framebuffer is exactly as big as the whole display
~ moved glReadPixels off the wallpaper as that's code is exclusively used for screen rendering and not general rendering
~ XChangeProperty forces the update of the background, otherwise the compositor stops refreshing the screen and the background gets stuck
~ updated viewport variables to be integers instead of floats
~ reverted frame rendering code to be simpler and added the option to specify a framebuffer as target instead of screen

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-28 02:03:47 +01:00
Hynak
a9db3ff364
Fixed issue #59 for Nvidia graphics cards and added compositor support (#75)
* Fixes issue #59's origial issue

* Hide GLFW for X Render

* Enable compositor support

* Added signal handling if the user terminates the program

* Fixed issue with screens not at 0, 0 not rendering. Also cleaned up.

* Consolidated the renderImage function into render.

* Moved display, pm, and gc to class members.

* Fixed memory leak due to forgetting to move initializer code.

* Revert changes due to introducting flickering.
2022-02-28 01:58:41 +01:00
Hynak
a2222b05ef Revert changes due to introducting flickering. 2022-02-26 19:41:02 -05:00
Hynak
520ceddf48 Fixed memory leak due to forgetting to move initializer code. 2022-02-26 19:06:18 -05:00
Hynak
2d12903185 Moved display, pm, and gc to class members. 2022-02-26 17:46:19 -05:00
Hynak
caf79766dc Consolidated the renderImage function into render. 2022-02-26 17:40:16 -05:00
Hynak
a10a994da5 Fixed issue with screens not at 0, 0 not rendering. Also cleaned up. 2022-02-25 14:56:17 -05:00
Hynak
e56f128592 Added signal handling if the user terminates the program 2022-02-25 14:38:03 -05:00
Hynak
6eaea71086 Enable compositor support 2022-02-25 14:30:27 -05:00
Hynak
b2d4dd128d Hide GLFW for X Render 2022-02-25 14:27:56 -05:00