Continue adding opengl font support.
This commit is contained in:
parent
649079a5c7
commit
eef93efc29
37 changed files with 530 additions and 157 deletions
|
@ -113,6 +113,22 @@ std::vector<std::string> File::readLines()
|
|||
return content;
|
||||
}
|
||||
|
||||
std::string File::read()
|
||||
{
|
||||
if (!PathExists())
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
Open(false);
|
||||
|
||||
std::stringstream buffer;
|
||||
buffer << mInHandle->rdbuf();
|
||||
|
||||
Close();
|
||||
return buffer.str();
|
||||
}
|
||||
|
||||
std::string File::getBaseFilename(const Path& path)
|
||||
{
|
||||
return path.stem().string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue