Open ppiecuch opened 4 years ago
Hello! Here are my thoughts:
I think that there should be a better way to handle this. Like maybe dividing DPI by a different value to get correct scaling value? Rounding it down seems a bit extreme to me.
Thank you for providing the template and these steps. I would like to provide macOS builds though there is currently some feature missing from SHADERed for macOS (recompiling on file change). I think I won't be providing macOS builds until that gets implemented. This way I think it would be pretty bad UX especially since SHADERed is already pretty buggy (working to change that :sweat_smile:)
This is absolutely cool, I didn't know something like that existed. Thanks, I'll probably apply this in one of the upcoming updates when I'll have more time to test it.
Thank you for opening this issue. I'll leave it open until I fix/implement these things.
Small addition to packaging script - I haven't noticed that SFML installs couple of additional dependencies - they are copied now into final .app package:
#!/bin/bash
set -e
cmake -DBUILD_SHARED_LIBS=OFF ..
make
echo "*** Packaging app ..."
pushd ..
rm -rf bin/SHADERed.app
cp -rv templates/osx_tools.app bin/SHADERed.app
mkdir -p bin/SHADERed.app/Contents/MacOS
mv bin/SHADERed bin/SHADERed.app/Contents/MacOS/SHADERed
cp -rv bin/data bin/themes bin/templates bin/plugins bin/SHADERed.app/Contents/Resources/
popd
install_name_tool -add_rpath "@executable_path/../Frameworks" ../bin/SHADERed.app/Contents/MacOS/SHADERed
cp -va _deps/sfml-src/extlibs/libs-osx/Frameworks ../bin/SHADERed.app/Contents/
DPI awareness is a top priority for me, It's just HUGE and not usable with my scaling value.
Hello, I would like to share a couple of comments from my OSX build - maybe you find something interested in these changes:
and running HLSL shader:
dpi is 1.375000 - looks better if round() or floor()
templates.zip
Small change to in main.cpp that changes current directory to SHADERed.app/Contents/Resources/ (propably this should be replaced with something better):
Application is using a couple of libs I am not using and keeping them globally is something I am not fan of :) Here is a piece of CMakeLists that downloads and builds all extensions locally. Maybe you would be interested to make this as an option (Cmake 3.14 is required):
Regards Pawel