16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 17:09:19 +02:00

opengl 3.3 renderer cascaded shadow maps, minor gfx renderer optimizations

This commit is contained in:
tmj-fstate
2019-12-05 15:42:54 +01:00
parent 194400e1af
commit 63619d13a6
21 changed files with 416 additions and 443 deletions

View File

@@ -214,10 +214,10 @@ std::string to_string(double Value)
return o.str();
};
std::string to_string(int Value, int precision)
std::string to_string(int Value, int width)
{
std::ostringstream o;
o << std::fixed << std::setprecision(precision);
o.width(width);
o << Value;
return o.str();
};
@@ -230,15 +230,6 @@ std::string to_string(double Value, int precision)
return o.str();
};
std::string to_string(int Value, int precision, int width)
{
std::ostringstream o;
o.width(width);
o << std::fixed << std::setprecision(precision);
o << Value;
return o.str();
};
std::string to_string(double const Value, int const Precision, int const Width)
{
std::ostringstream converter;