1
General discussions / Re: SFML in Android Studio Example
« on: August 31, 2017, 06:09:10 pm »
Looks great! Thanks!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I was thinking of how hard it must be for a newcomer with less experience to debug all the obsucre errors he might encounter, especially since Xcode is super finicky about which options it wants for it to compile. Would it also be useful if I added a wiki entry on how to make an Xcode project for iOS with SFML from scratch, detailed step by step? It would help give SFML visibility as it's a shame many don't realize it can work on iOS.Please do so!
#ifdef SFML_SYSTEM_IOS
#include <OpenAl/al.h>
#include <OpenAl/alc.h>
#else
Renamed to:#ifdef SFML_SYSTEM_IOS
#include <AL/al.h>
#include <AL/alc.h>
#else
Doesn't just this:m_shaders[rName];create the shader in the map, ready to use?
Unfortunately not, it needs an assignment operator after it (=), which itself would need to call the copy constructor of the sf::Shader.
Doesn't just this:m_shaders[rName];create the shader in the map, ready to use?
You're still copying.
I think you want:m_shaders.emplace(rName);