22 #include <boost/lexical_cast.hpp>
27 int x = SDL_WINDOWPOS_CENTERED;
28 int y = SDL_WINDOWPOS_CENTERED;
32 while(begin != command.end()) {
35 if(argument.find(
"x=") == 0) {
37 }
else if(argument.find(
"y=") == 0) {
39 }
else if(argument.find(
"w=") == 0) {
41 }
else if(argument.find(
"h=") == 0) {
43 }
else if(argument.find(
"title=") == 0) {
44 title = argument.substr(6);
51 title.c_str(),
x,
y,
w,
h, 0, SDL_RENDERER_TARGETTEXTURE));
56 + std::to_string(
windows.size() - 1));
66 }
else if(
windows[
id] ==
nullptr) {
73 SDL_GetWindowSize(*
windows[
id], &w, &h);
75 while(begin != command.end()) {
78 if(argument.find(
"w=") == 0) {
80 }
else if(argument.find(
"h=") == 0) {
82 }
else if(argument.find(
"title=") == 0) {
83 title = argument.substr(6);
86 command,
utf8::size(command),
" -> Unknown argument");
103 }
else if(
windows[
id] ==
nullptr) {
116 if(action ==
"create") {
118 }
else if(action ==
"modify") {
120 }
else if(action ==
"destroy") {
static std::map< std::string, twindow_builder > windows
Map with all known windows, (the builder class builds a window).
GLint GLint GLint GLint GLint GLint y
To lexical_cast(From value)
Lexical cast converts one type to another.
The wrapper class for the SDL_Window class.
GLubyte GLubyte GLubyte GLubyte w
size_t size(const utf8::string &str)
Length in characters of a UTF-8 string.
GLfloat GLfloat GLfloat GLfloat h
GLint GLint GLint GLint GLint x
Contains a wrapper class for the SDL_Window class.
utf8::string & insert(utf8::string &str, const size_t pos, const utf8::string &insert)
Insert a UTF-8 string at the specified position.
GLsizei const GLcharARB ** string