mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-04-30 12:31:23 +00:00
Major refactoring, multisampling
This commit is contained in:
1
util.cpp
1
util.cpp
@@ -23,6 +23,7 @@ typedef long double ld;
|
||||
#define ASINH asinhl
|
||||
#endif
|
||||
|
||||
long double sqr(long double x) { return x*x; }
|
||||
template<class T> int size(const T& x) {return int(x.size()); }
|
||||
string its(int i) { char buf[64]; sprintf(buf, "%d", i); return buf; }
|
||||
string fts(float x) { char buf[64]; sprintf(buf, "%4.2f", x); return buf; }
|
||||
|
||||
Reference in New Issue
Block a user