i have a renderwindow ( see the pic in grey ) i need to define an AREA ( in the pic the rectangle with red edges )
in this AREA i want to load some text from a simple file.txt .
any suggestions? how to do it?
with this code i read the file , I really dont know how to define this AREA ?
void textLoader(Text *TmplineMenu) {
string menuLine, tmpStr;
ifstream infile;
infile.open("Tools/datiMenu.txt");
while (getline(infile, menuLine)) {
size_t position = menuLine.find("||") + 1;
menuLine.insert(position, "\n");
tmpStr += menuLine;
tmpStr += '\n';
}
TmplineMenu->setString(tmpStr);
infile.close();
}
any suggestions ?