mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
beginning of a model reader
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#include<chrono>
|
||||
#include<cmath>
|
||||
#include<string>
|
||||
#include<vector>
|
||||
|
||||
namespace vb01{
|
||||
typedef char s8;
|
||||
@@ -15,9 +17,13 @@ namespace vb01{
|
||||
typedef unsigned int u32;
|
||||
typedef unsigned long long u64;
|
||||
|
||||
static const float PI=4*atan(1);
|
||||
static const float PI = 4 * atan(1);
|
||||
|
||||
inline s64 getTime(){return s64(std::chrono::system_clock::now().time_since_epoch()/std::chrono::milliseconds(1));}
|
||||
void readFile(std::string, std::vector<std::string>&, int = 0, int = -1);
|
||||
void getLineData(std::string&, std::string[], int, int = 0);
|
||||
int getCharId(char);
|
||||
|
||||
inline s64 getTime(){return s64(std::chrono::system_clock::now().time_since_epoch() / std::chrono::milliseconds(1));}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user