3dpcp/.svn/pristine/49/494f2fcff752c79b0981b59126fa3ed5bd01acf7.svn-base

31 lines
641 B
Text
Raw Normal View History

2012-10-24 09:28:22 +00:00
/**
@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