31 static Vec3r _Viewpoint;
32 static real _translation[3];
34 static real _modelViewMatrix[4][4];
36 static real _projectionMatrix[4][4];
39 static real _transform[4][4];
41 static int _viewport[4];
48 static real _glProjectionMatrix[4][4];
50 static real _glModelViewMatrix[4][4];
52 static bool _isOrthographicProjection;
60 if (_pInstance ==
nullptr) {
83 const real iProjectionMatrix[4][4],
84 const int iViewport[4],
117 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:SilhouetteGeomEngine")
Configuration definitions.
Vectors and Matrices (useful type definitions).
Read Guarded memory(de)allocation.
static SilhouetteGeomEngine * getInstance()
static Vec3r CameraToImage(const Vec3r &M)
static void setViewpoint(const Vec3r &ivp)
static void setFrustum(real iZNear, real iZFar)
static void setTransform(const real iModelViewMatrix[4][4], const real iProjectionMatrix[4][4], const int iViewport[4], real iFocal)
static void ProjectSilhouette(std::vector< SVertex * > &ioVertices)
static real ImageToWorldParameter(FEdge *fe, real t)
static Vec3r WorldToImage(const Vec3r &M)
static void retrieveViewport(int viewport[4])
VecMat::Vec3< real > Vec3r