/** * Prints information about a tplane object to a file. * * PARAMETERS: * out - file to write to * obj - object to dump */ void tplane_dump(FILE *out, obj_t *obj) { plane_t *plane = (plane_t *)obj->priv; tplane_t *tplane = (tplane_t *)plane->priv; // get tplane struct out of obj fprintf(out, "\tTYPE: TPlane\n"); plane_dump(out, obj); fprintf(out, "\t\tXDIR: (%lf, %lf, %lf)\n", tplane->xdir[0], tplane->xdir[1], tplane->xdir[2]); fprintf(out, "\t\tSIZE: (%lf, %lf)\n", tplane->size[0], tplane->size[1]); }
void tplane_dump(obj_t *obj) { plane_t *plane = (plane_t *)(obj->typeData); tplane_t *tplane = (tplane_t *) (plane->priv); plane_dump(obj); fprintf(stderr, "Tile Height: %lf Tile Width: %lf\n", tplane->tileHeight, tplane->tileWidth); tl_print3("Orientation: ", &tplane->orientation); tl_print3("Background Color: ", &tplane->bkgrndcolor); fprintf(stderr, "Background Diffuse: %lf\n", tplane->bkgrnddiff); fprintf(stderr, "Background Specular: %lf\n", tplane->bkgrndspec); fprintf(stderr, "Rotation Matrix:\n"); tl_print3("", &tplane->rotate[0]); tl_print3("", &tplane->rotate[1]); tl_print3("", &tplane->rotate[2]); fprintf(stderr, "\n"); }