Form Jorge Ciges, improved GL version detection code.

This commit is contained in:
Robert Osfield
2011-05-26 16:52:08 +00:00
parent 3fa1f2ed5a
commit e3f7d802e4
4 changed files with 28 additions and 13 deletions

View File

@@ -241,7 +241,14 @@ extern OSG_EXPORT double asciiToDouble(const char* str);
/** Convert a ascii number to a float, ignoring locale settings.*/
inline float asciiToFloat(const char* str) { return static_cast<float>(asciiToDouble(str)); }
/** Detect first ascii POSITIVE number in string and convert to double.*/
extern OSG_EXPORT double findAsciiToDouble(const char* str);
/** Detect first ascii POSITIVE number in string and convert to double.*/
inline float findAsciiToFloat(const char* str) { return static_cast<float>(findAsciiToDouble(str)); }
}
#endif // __OSG_MATH