Commit Graph

225 Commits

Author SHA1 Message Date
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
Hynak
c11c6928ea Fixes issue #59's origial issue 2022-02-25 14:23:37 -05:00
Alexis Maiquez
131801b7f0 ~ quick and dirty fix for composite color not being the right value (need to verify that this is actually what should happen)
fixes @C0nvert's #59 issue

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-23 09:50:55 +01:00
Alexis Maiquez
42b8c92c1c ~ Fix compilation with latest avcoded library
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-23 08:45:06 +01:00
Alexis Maiquez
7cd213abf9 Merge branch 'main' of git@github.com:Almamu/linux-wallpaperengine.git 2022-02-18 19:03:25 +01:00
Alexis Maiquez
d5745b1cfa ~ Make use of the resolved path after startup and ensure it ends with a trailing slash.
Should fix @C0nvert 's issues on #59

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-18 19:02:55 +01:00
Alexis Maiquez
7b16c5bbde
Fix codeql analysis not working 2022-02-11 15:53:47 +01:00
Alexis Maiquez
d5586b168b + Added checks for directories and ensuring specified wallpaper folder exists before initialization, fixes #70
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-02-11 15:50:54 +01:00
Alexis Maiquez
20c4ad3652 + Added better logging for asset loading errors and some extra information, should help get better information on #59
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-01-31 19:40:22 +01:00
Alexis Maiquez
a66bc26f1d ~ Fix issue #66, command-line parameters were not parsed properly
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-01-31 17:49:48 +01:00
Alexis Maiquez
6ec5770660 Merge branch 'main' of git@github.com:Almamu/linux-wallpaperengine.git 2022-01-25 00:19:32 +01:00
Alexis Maiquez
8cf2f7de55 ~ Updated .gitignore
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-01-25 00:19:27 +01:00
Alexis Maiquez
f5ed023725 Fixed frame limiter to work properly with GLFW
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-01-25 00:17:14 +01:00
Alexis Maiquez
201ce5c39c
Create codeql-analysis.yml (#68)
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2022-01-24 23:59:51 +01:00
Alexis Maiquez
c39456df53
Create FUNDING.yml 2022-01-24 23:14:38 +01:00
Alexis Maiquez
82cd9ce7a2 Update issue templates 2022-01-24 23:13:32 +01:00
Alexis Maiquez
fa2720f07c ~ Fixed multiple screens not getting a background drawn
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2021-12-04 23:49:28 +01:00
Alexis Maiquez
577b81215b Merge branch 'main' of git@github.com:Almamu/linux-wallpaperengine.git 2021-12-04 23:45:09 +01:00
Alexis Maiquez
18ab051d47 ~ Fix background setup not working properly after the implementation of mouse support
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2021-12-04 23:44:17 +01:00
Alexis Maiquez
e08a252f03 + Added brightness reading for image objects
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2021-12-04 23:15:56 +01:00
Alexis Maiquez
afe7452340 + added support for alpha and color loading for images
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2021-12-04 21:57:21 +01:00
Alexis Maiquez
816e0a6ddf ~ Hopefully take into account object scale properly
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2021-12-04 03:54:46 +01:00
Alexis Maiquez
49a5f9e2ab + added proper framebuffer clearing for passes
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2021-12-04 02:50:11 +01:00