From 28e7d53826fd2eae8048173c46bdc4b33f7e7ba4 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 10 May 2014 22:29:59 +0200 Subject: [PATCH] add some debug code Change-Id: I279e25f902e4bd8d19d61ddd6b9c290a120a39a9 --- chart2/source/view/main/3DChartObjects.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/chart2/source/view/main/3DChartObjects.cxx b/chart2/source/view/main/3DChartObjects.cxx index 35d116f0177c..a1fc5eef2227 100644 --- a/chart2/source/view/main/3DChartObjects.cxx +++ b/chart2/source/view/main/3DChartObjects.cxx @@ -11,10 +11,31 @@ #include #include +#include + namespace chart { namespace opengl3D { +namespace { + +std::ostream& operator<<(std::ostream& rStrm, const glm::mat4& rMatrix) +{ + for(int i = 0; i < 4; ++i) + { + rStrm << "( "; + for(int j = 0; j < 4; ++j) + { + rStrm << rMatrix[j][i]; + rStrm << " "; + } + rStrm << ")\n"; + } + return rStrm; +} + +} + Renderable3DObject::Renderable3DObject(OpenGL3DRenderer* pRenderer, sal_uInt32 nId): mpRenderer(pRenderer), mnUniqueId(nId) @@ -32,6 +53,7 @@ Bar::Bar(OpenGL3DRenderer* pRenderer, const glm::mat4& rPosition, sal_Int32 aCol , maPos(rPosition) , maColor(aColor) { + SAL_INFO("chart2.3dopengl", rPosition); } void Bar::render()