1
0
Fork 0

Query SDL for available texture renderers

There's no point in hardcoding these values - they can be different to
every user (it depends on hardware, OS, SDL version, etc).

Also, future versions of SDL might introduce more renderers, so this way
the code is more future-proof.
This commit is contained in:
Patryk Obara 2019-12-25 08:02:17 +01:00 committed by Patryk Obara
parent 6ce7ff8b58
commit a7280cf1f7
3 changed files with 25 additions and 14 deletions

View file

@ -123,6 +123,7 @@ public:
Property(std::string const& _propname, Changeable::Value when):propname(_propname),change(when) { }
void Set_values(const char * const * in);
void Set_values(const std::vector<std::string> &in);
void Set_help(std::string const& str);
char const* Get_help();
virtual bool SetValue(std::string const& str)=0;