Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Lectem
@Lectem
does not work with emcmake, neither does https://blog.squareys.de/magnum-emscripten-on-windows for me
tbh those days, anything taking me more than 15minutes makes me give up ^^
been at it for 1hour if I count emscripten install
Vladimír Vondruš
@mosra
oh right i forgot windows
anything on windows is a pain
well and emscripten is a pain everywhere
Lectem
@Lectem
well, that too
Vladimír Vondruš
@mosra
i am stuck on some older version here because the new one wants my system to have llvm 9
Lectem
@Lectem
but usually I don't have that many issues on windows
Vladimír Vondruš
@mosra
which I don't have, so it's complaining for every of the 789 files it compiles
Lectem
@Lectem
-.-
too tired to give WSL+emscripten a try
it seems people recommand it
Vladimír Vondruš
@mosra
throw it all out of the window
install arch
then throw that away too
live in the woods
give up on society
Lectem
@Lectem
error: Linking globals named 'ffs': symbol multiply defined!
lmao
Vladimír Vondruš
@mosra
ffs
Lectem
@Lectem
well named
Vladimír Vondruš
@mosra
that's a new one
i am usually hitting one of the new exciting -fPIC bugs
Lectem
@Lectem

give up on society

that might actually be a good option at this point

oh it's not while building magnum, it's bgfx
Vladimír Vondruš
@mosra
ah
well, ffs
Lectem
@Lectem
I think I'm just gonna give up on emscripten
webgl is crap anyway
Vladimír Vondruš
@mosra
:joy:
Daniel Guzman
@roig
Hello all. @mosra I'm trying to use the AbstractResourceLoader, after reading the docs I don't fully understand how to make it work. For example if I want to make a TextureResourceLoader, i implement the doLoad(ResourceKey key) function. But, here inside that function I can't retrieve the string identifier from the key (it's hashed), so I can't load my texture by name from the file. Or am I doing it wrong?
Vladimír Vondruš
@mosra
you somehow need to build a reverse mapping structure that gives you back strings from keys
std::unordered_map<ResourceKey, std::string> or something
and fill it up with known resource names beforehand
then use that to get the strings in the loader
Daniel Guzman
@roig
uhmmm, I see. understood. So "all" the AbstractResourceLoaders will need some structure to make the conversion.
thank you!
Vladimír Vondruš
@mosra
yes
it's made this way (to be your responsibility) because in some cases having just the keys could be enough ... for example when all your assets are already stored under their hashes
Daniel Guzman
@roig
The problem i see is that if you add/delete resources while running. the map has to be updated.
but I suppose I can make some events to inform the loaders.
Vladimír Vondruš
@mosra
i meant, fill it up with everything that it can load
or that is not possible?
Daniel Guzman
@roig
Sorry I was afk. Yes, I got it working ;) thx!
Guillaume Jacquemin
@williamjcm
Isn't std::unordered_map inefficient (like most STL containers) ? I think I heard it was.
Vladimír Vondruš
@mosra
yes it is ... but i have no better alternative to it at the moment
Consti10
@Consti10
Hi, damn vcpk - can it be that when you have installed everything from --head but then update with .\vcpkg upgrade --no-dry-run it will overwrite everything with the latest release and not --head ?
Vladimír Vondruš
@mosra
yes that's exactly what it does :/
you need to reinstall with --head, not upgrade