Kaydet (Commit) 28e7d538 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add some debug code

Change-Id: I279e25f902e4bd8d19d61ddd6b9c290a120a39a9
üst 9ec2a09c
......@@ -11,10 +11,31 @@
#include <vcl/virdev.hxx>
#include <vcl/svapp.hxx>
#include <ostream>
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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment