From 690fcad83b34de60d311cc240b55c698ba32b71d Mon Sep 17 00:00:00 2001 From: Walter Perdan Date: Sat, 28 Oct 2023 19:28:37 +0200 Subject: [PATCH] use WebARKit custom logging --- WebARKit/WebARKitCamera.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/WebARKit/WebARKitCamera.cpp b/WebARKit/WebARKitCamera.cpp index e6ae4ff..e4893d4 100644 --- a/WebARKit/WebARKitCamera.cpp +++ b/WebARKit/WebARKitCamera.cpp @@ -1,4 +1,5 @@ #include +#include #include namespace webarkit { @@ -27,11 +28,11 @@ bool WebARKitCamera::setupCamera(int width, int height) { }; void WebARKitCamera::printSettings() { - printf("WebARKit: Camera Size %d , %d\n", xsize, ysize); - printf("WebARKit: camera matrix = [%.2f %.2f %.2f]\n", cmat[0], cmat[1], cmat[2]); - printf(" [%.2f %.2f %.2f]\n", cmat[3], cmat[4], cmat[5]); - printf(" [%.2f %.2f %.2f]\n", cmat[6], cmat[7], cmat[8]); - printf("WebARKit: kc = [%.4f %.4f %.4f %.4f %.4f %.4f]\n", kc[0], kc[1], kc[2], kc[3], kc[4], kc[5]); + WEBARKIT_LOGi("WebARKit: Camera Size %d , %d\n", xsize, ysize); + WEBARKIT_LOGi("WebARKit: camera matrix = [%.2f %.2f %.2f]\n", cmat[0], cmat[1], cmat[2]); + WEBARKIT_LOGi(" [%.2f %.2f %.2f]\n", cmat[3], cmat[4], cmat[5]); + WEBARKIT_LOGi(" [%.2f %.2f %.2f]\n", cmat[6], cmat[7], cmat[8]); + WEBARKIT_LOGi("WebARKit: kc = [%.4f %.4f %.4f %.4f %.4f %.4f]\n", kc[0], kc[1], kc[2], kc[3], kc[4], kc[5]); }; std::array WebARKitCamera::getCameraData() const {