printProjection()
Lights Camera / CameraDescription
Prints the current projection matrix to the console.
Syntax
void printProjection()
Parameters
None
Returns
voidRelated
Under the Hood
From Processing.h:
void printProjection();
Under the Hood
From Processing.cpp:
void PApplet::printProjection(){float m[16];glGetFloatv(GL_PROJECTION_MATRIX,m);std::cout<<"Projection 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";}}