printCamera()

Lights Camera / Camera

Description

Prints the current camera matrix to the console.

Syntax

void printCamera()

Parameters

None

Returns

void

Related

Under the Hood

From Processing.h:

void printCamera();

Under the Hood

From Processing.cpp:

void PApplet::printCamera(){float m[16];glGetFloatv(GL_MODELVIEW_MATRIX,m);std::cout<<"Camera matrix:\n";for(int i=0;i<4;i++){for(int j=0;j<4;j++)std::cout<<m[j*4+i]<<" ";std::cout<<"\n";}}