mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
chunks rendering multithreading
This commit is contained in:
parent
00bd8c64d7
commit
089e87da69
10 changed files with 726 additions and 557 deletions
|
|
@ -291,3 +291,23 @@ double util::parse_double(const std::string& str) {
|
|||
double util::parse_double(const std::string& str, size_t offset, size_t len) {
|
||||
return parse_double(str.substr(offset, len));
|
||||
}
|
||||
|
||||
std::vector<std::string> util::split(const std::string& str, char delimiter) {
|
||||
std::vector<std::string> result;
|
||||
std::stringstream ss(str);
|
||||
std::string tmp;
|
||||
while (std::getline(ss, tmp, delimiter)) {
|
||||
result.push_back(tmp);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<std::wstring> util::split(const std::wstring& str, char delimiter) {
|
||||
std::vector<std::wstring> result;
|
||||
std::wstringstream ss(str);
|
||||
std::wstring tmp;
|
||||
while (std::getline(ss, tmp, static_cast<wchar_t>(delimiter))) {
|
||||
result.push_back(tmp);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue