From: Matthew Fernandez Date: Sat, 18 Dec 2021 05:23:29 +0000 (-0800) Subject: remove unused 'GetFixedOGLPos' X-Git-Tag: 3.0.0~123^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0037aad3629a0ca98e763dc9ce3d9504d5e1b02;p=graphviz remove unused 'GetFixedOGLPos' --- diff --git a/lib/glcomp/glutils.c b/lib/glcomp/glutils.c index 773a06b9d..863b105c6 100644 --- a/lib/glcomp/glutils.c +++ b/lib/glcomp/glutils.c @@ -13,45 +13,6 @@ #include #include -/* at given depth value, tranforms 2d Window location to 3d gl coords*/ -int GetFixedOGLPos(int x, int y, float kts, GLfloat * X, GLfloat * Y, - GLfloat * Z) -{ - GLdouble wwinX; - GLdouble wwinY; - GLdouble wwinZ; - - GLint viewport[4]; - GLdouble modelview[16]; - GLdouble projection[16]; - GLfloat winX, winY; - GLdouble posX, posY, posZ; - - /* unused */ - (void)kts; - - glColor4f(0.0f, 0.0f, 0.0f, 0.001f); - glBegin(GL_POINTS); - glVertex3f(-100.0f, -100.0f, 1.0f); - glEnd(); - - glGetDoublev(GL_MODELVIEW_MATRIX, modelview); - glGetDoublev(GL_PROJECTION_MATRIX, projection); - glGetIntegerv(GL_VIEWPORT, viewport); - gluProject(-100.0, -100.0, 1.00, modelview, projection, viewport, - &wwinX, &wwinY, &wwinZ); - - winX = (float) x; - winY = (float) viewport[3] - (float) y; - gluUnProject(winX, winY, wwinZ, modelview, projection, viewport, &posX, - &posY, &posZ); - *X = (GLfloat) posX; - *Y = (GLfloat) posY; - *Z = (GLfloat) posZ; - - return 1; -} - /*transforms 2d windows location to 3d gl coords but depth is calculated unlike the previous function*/ int GetOGLPosRef(int x, int y, float *X, float *Y, float *Z) { diff --git a/lib/glcomp/glutils.h b/lib/glcomp/glutils.h index 8fe27d7e6..774e521e2 100644 --- a/lib/glcomp/glutils.h +++ b/lib/glcomp/glutils.h @@ -30,7 +30,6 @@ extern "C" { } plane; - int GetFixedOGLPos(int, int, float, GLfloat *, GLfloat *, GLfloat * Z); int GetOGLPosRef(int x, int y, float *X, float *Y, float *Z); float GetOGLDistance(int l); int GetFixedOGLPoslocal(int x, int y, GLfloat * X, GLfloat * Y,