1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 14:26:01 +00:00

rogueviz::objmodel:: precision is now configurable via o-key

This commit is contained in:
Zeno Rogue
2021-03-31 12:55:31 +02:00
parent 084fa5ea5e
commit 599d446038
2 changed files with 35 additions and 1 deletions

View File

@@ -238,7 +238,7 @@ namespace objmodels {
using transformer = std::function<tf_result(hyperpoint)>;
using subdivider = std::function<int(vector<hyperpoint>&)>;
inline int prec = 1;
inline ld prec = 1;
struct object {
hpcshape sh;
@@ -247,6 +247,7 @@ namespace objmodels {
};
struct model_data : gi_extension {
ld prec_used;
vector<shared_ptr<object>> objs;
void render(const shiftmatrix& V);
};
@@ -286,6 +287,8 @@ namespace objmodels {
bool available();
};
void add_model_settings();
}