Continuing working on dumping the world
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#define DORAYME_BOUNDINGBOX_H
|
||||
|
||||
#include <renderstat.h>
|
||||
#include <stdio.h>
|
||||
|
||||
struct BoundingBox
|
||||
{
|
||||
@@ -118,6 +119,16 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
void dumpMe(FILE *fp)
|
||||
{
|
||||
Tuple t = this->min;
|
||||
fprintf(fp, "\"min\": { \"x\": %f, \"y\": %f, \"z\": %f}, \n",
|
||||
t.x, t.y, t.z);
|
||||
t = this->max;
|
||||
fprintf(fp, "\"max\": { \"x\": %f, \"y\": %f, \"z\": %f}, \n",
|
||||
t.x, t.y, t.z);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif /* DORAYME_BOUNDINGBOX_H */
|
||||
|
||||
Reference in New Issue
Block a user