globjects  1.0.0.ae1b474792ef
Strict OpenGL objects wrapper.
formatString.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <iosfwd>
5 #include <string>
6 
7 #include <globjects/globjects_api.h>
8 
9 
10 namespace globjects
11 {
12 
13 
14 GLOBJECTS_API int readInt(const char* str, int& number);
15 GLOBJECTS_API void parseFormat(std::ostream& stream, const char*& format);
16 
17 GLOBJECTS_API void streamprintf(std::ostream& stream, const char* format);
18 
24 template <typename T, typename... Args>
25 void streamprintf(std::ostream& stream, const char* format, const T& value, Args... args);
26 
83 template <typename... Args>
84 std::string formatString(const char* format, Args... args);
85 
86 
87 } // namespace globjects
88 
89 
90 #include <globjects/base/formatString.inl>
std::string formatString(const char *format, Args...args)
Contains all the classes that wrap OpenGL functionality.
GLOBJECTS_API int readInt(const char *str, int &number)
GLOBJECTS_API void parseFormat(std::ostream &stream, const char *&format)
GLOBJECTS_API void streamprintf(std::ostream &stream, const char *format)