19#ifdef WITH_CXX_GUARDEDALLOC
33 static Vec3r _Viewpoint;
34 static real _translation[3];
36 static real _modelViewMatrix[4][4];
38 static real _projectionMatrix[4][4];
41 static real _transform[4][4];
43 static int _viewport[4];
50 static real _glProjectionMatrix[4][4];
52 static real _glModelViewMatrix[4][4];
54 static bool _isOrthographicProjection;
62 if (_pInstance ==
nullptr) {
85 const real iProjectionMatrix[4][4],
86 const int iViewport[4],
119#ifdef WITH_CXX_GUARDEDALLOC
120 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])