add some debug code
Change-Id: I279e25f902e4bd8d19d61ddd6b9c290a120a39a9
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user