Start working on dumping the world (to a JSON file) for debug purposes.
This commit is contained in:
@@ -73,4 +73,12 @@ BoundingBox Shape::getBounds()
|
||||
ret.min = this->objectToWorld(Point(-1, -1, -1));
|
||||
ret.max = this->objectToWorld(Point(1, 1, 1));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void Shape::dumpMe(FILE *fp)
|
||||
{
|
||||
fprintf(fp, "\"Material\": {\n");
|
||||
this->material.dumpMe(fp);
|
||||
fprintf(fp, "},\n");
|
||||
fprintf(fp, "\"DropShadow\": %d,\n", this->dropShadow);
|
||||
}
|
||||
Reference in New Issue
Block a user