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> 30 #include <tulip/OpenGlIncludes.h> 36 typedef Matrix<float, 4> MatrixGL;
37 TLP_GL_SCOPE
const std::string &glGetErrorDescription(GLuint errorCode);
38 TLP_GL_SCOPE
void glTest(
const std::string &message = std::string(
"(no description)"));
39 TLP_GL_SCOPE
void setColor(
const Color &c);
40 TLP_GL_SCOPE
void setColor(GLfloat *);
41 TLP_GL_SCOPE
void setMaterial(
const Color &c);
42 TLP_GL_SCOPE
bool cameraIs3D();
47 TLP_GL_SCOPE Coord projectPoint(
const Coord &obj,
const MatrixGL &,
const Vector<int, 4> &viewport);
53 TLP_GL_SCOPE Coord unprojectPoint(
const Coord &obj,
const MatrixGL &,
54 const tlp::Vector<int, 4> &viewport);
55 TLP_GL_SCOPE GLfloat projectSize(
const BoundingBox &bb,
const MatrixGL &,
const MatrixGL &,
56 const Vector<int, 4> &viewport);
57 TLP_GL_SCOPE GLfloat projectSize(
const Coord &position,
const Size &size,
const MatrixGL &,
58 const MatrixGL &,
const Vector<int, 4> &viewport);
59 TLP_GL_SCOPE
float calculateAABBSize(
const BoundingBox &bb,
const Coord &eye,
60 const Matrix<float, 4> &transformMatrix,
61 const Vector<int, 4> &globalViewport,
62 const Vector<int, 4> ¤tViewport);
63 TLP_GL_SCOPE
float calculate2DLod(
const BoundingBox &bb,
const Vector<int, 4> &globalViewport,
64 const Vector<int, 4> ¤tViewport);
78 TLP_GL_SCOPE std::vector<Coord> computeNormals(
const std::vector<Coord> &vertices,
79 const std::vector<unsigned short> &facesIndices);
93 TLP_GL_SCOPE std::vector<Coord> computeNormals(
const std::vector<Coord> &vertices,
94 const std::vector<unsigned int> &facesIndices);
97 #endif // DOXYGEN_NOTFOR_DEVEL