From: Matthew Fernandez Date: Sat, 18 Dec 2021 05:27:05 +0000 (-0800) Subject: remove unused 'GetFixedOGLPoslocal' X-Git-Tag: 3.0.0~123^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b56d08353bc38361224fc20448c57349cfdb5242;p=graphviz remove unused 'GetFixedOGLPoslocal' --- diff --git a/lib/glcomp/glutils.c b/lib/glcomp/glutils.c index 863b105c6..6ee4704bf 100644 --- a/lib/glcomp/glutils.c +++ b/lib/glcomp/glutils.c @@ -136,42 +136,6 @@ void to3D(int x, int y, GLfloat * X, GLfloat * Y, GLfloat * Z) return; } -int GetFixedOGLPoslocal(int x, int y, 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; - - glGetDoublev(GL_MODELVIEW_MATRIX, modelview); - glGetDoublev(GL_PROJECTION_MATRIX, projection); - glGetIntegerv(GL_VIEWPORT, viewport); - - glColor4f(0.0f, 0.0f, 0.0f, 0.001f); - glBegin(GL_POINTS); - glVertex3f(10.0f, 10.0f, 0.0f); - glEnd(); - - gluProject(10.0, 10.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; -} - #include static glCompPoint sub(glCompPoint p, glCompPoint q) diff --git a/lib/glcomp/glutils.h b/lib/glcomp/glutils.h index 774e521e2..7d77910dc 100644 --- a/lib/glcomp/glutils.h +++ b/lib/glcomp/glutils.h @@ -32,8 +32,6 @@ extern "C" { 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, - GLfloat * Z); void to3D(int x, int y, GLfloat * X, GLfloat * Y, GLfloat * Z); double point_to_lineseg_dist(glCompPoint p, glCompPoint a, glCompPoint b); void replacestr(char *source, char **target);