3dpcp/include/show/show.icc
2012-10-24 11:22:27 +02:00

31 lines
No EOL
641 B
Text

/**
@file
@brief Displaying of a matched 3D scene
@author Kai Lingemann. Institute of Computer Science, University of Osnabrueck, Germany.
@author Andreas Nuechter. Institute of Computer Science, University of Osnabrueck, Germany.
*/
#ifndef __SHOW_ICC__
#define __SHOW_ICC__
/**
sets the OpenGL point,
(z axis is inverted in OpenGL)
*/
inline void setGLPoint(GLdouble pX, GLdouble pY, GLdouble pZ)
{
// pZ *= -1.0;
glVertex3d(pX, pY, pZ);
}
/**
sets the OpenGL point,
(z axis is inverted in OpenGL)
*/
inline void setGLPoint(GLdouble* p)
{
GLdouble pZ = 1.0 * p[2];
glVertex3d(p[0], p[1], pZ);
}
#endif