From ccd0b13fd084c0243fa125e65136a8f407313937 Mon Sep 17 00:00:00 2001 From: cutealien Date: Thu, 15 Jul 2021 19:33:28 +0000 Subject: [PATCH] Add documentation about LOCALE_DECIMAL_POINTS Include fast_atof.h header in VS2010 project file. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6226 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/fast_atof.h | 7 +++++++ source/Irrlicht/Irrlicht10.0.vcxproj | 7 ++++--- source/Irrlicht/Irrlicht10.0.vcxproj.filters | 7 +++++-- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/include/fast_atof.h b/include/fast_atof.h index b829eaec..bb1077fe 100644 --- a/include/fast_atof.h +++ b/include/fast_atof.h @@ -13,6 +13,13 @@ namespace irr namespace core { //! Selection of characters which count as decimal point in fast_atof + //! By default Irrlicht considers "." as the decimal point in numbers. + //! But sometimes you might run into situations where floats were written in + //! a local format with another decimal point like ",". + //! Best solution is usually to fix those cases by converting the input. + //! But if you don't have that choice you can set this to ".,". + //! WARNING: This is not thread-safe, so don't change while there's a chance + //! of another thread using fast_atof functions at the same time. // TODO: This should probably also be used in irr::core::string, but // the float-to-string code used there has to be rewritten first. IRRLICHT_API extern irr::core::stringc LOCALE_DECIMAL_POINTS; diff --git a/source/Irrlicht/Irrlicht10.0.vcxproj b/source/Irrlicht/Irrlicht10.0.vcxproj index 953507cd..9426f97a 100644 --- a/source/Irrlicht/Irrlicht10.0.vcxproj +++ b/source/Irrlicht/Irrlicht10.0.vcxproj @@ -841,6 +841,7 @@ + @@ -1011,7 +1012,7 @@ - + @@ -1265,7 +1266,7 @@ - + @@ -1307,7 +1308,7 @@ - + diff --git a/source/Irrlicht/Irrlicht10.0.vcxproj.filters b/source/Irrlicht/Irrlicht10.0.vcxproj.filters index 64390a1c..81224687 100644 --- a/source/Irrlicht/Irrlicht10.0.vcxproj.filters +++ b/source/Irrlicht/Irrlicht10.0.vcxproj.filters @@ -1345,7 +1345,7 @@ include\scene - + Irrlicht\video\Burning Video @@ -1366,6 +1366,9 @@ Irrlicht\video\Burning Video + + include\core + @@ -2303,7 +2306,7 @@ Irrlicht\video\OpenGL Context - + Irrlicht\video\Burning Video