23 #ifndef DOXYGEN_NOTFOR_DEVEL
24 #include <tulip/tulipconf.h>
25 #include <tulip/Color.h>
26 #include <tulip/Coord.h>
27 #include <tulip/Size.h>
28 #include <tulip/Matrix.h>
34 #if defined(__APPLE__)
35 #include <OpenGL/gl.h>
44 typedef Matrix<float, 4> MatrixGL;
45 TLP_GL_SCOPE
const std::string& glGetErrorDescription(GLuint errorCode);
46 TLP_GL_SCOPE
void glTest(
const std::string &message = std::string(
"(no description)"));
47 TLP_GL_SCOPE
void setColor(
const Color &c);
48 TLP_GL_SCOPE
void setColor(GLfloat *);
49 TLP_GL_SCOPE
void setMaterial(
const Color &c);
50 TLP_GL_SCOPE
bool cameraIs3D();
55 TLP_GL_SCOPE Coord projectPoint(
const Coord &obj,
57 const Vector<int, 4> &viewport);
62 TLP_GL_SCOPE Coord unprojectPoint(
const Coord &obj,
64 const tlp::Vector<int, 4> &viewport);
65 TLP_GL_SCOPE GLfloat projectSize(
const BoundingBox& bb,
66 const MatrixGL &,
const MatrixGL &,
const Vector<int, 4> &viewport);
67 TLP_GL_SCOPE GLfloat projectSize(
const Coord& position,
const Size& size,
68 const MatrixGL &,
const MatrixGL &,
const Vector<int, 4> &viewport);
69 TLP_GL_SCOPE
float calculateAABBSize(
const BoundingBox& bb,
const Coord& eye,
const Matrix<float, 4>& transformMatrix,
const Vector<int, 4>& globalViewport,
const Vector<int, 4>& currentViewport);
70 TLP_GL_SCOPE
float calculate2DLod(
const BoundingBox& bb,
const Vector<int, 4>& globalViewport,
const Vector<int, 4>& currentViewport);
73 #endif //DOXYGEN_NOTFOR_DEVEL