]> granicus.if.org Git - graphviz/commitdiff
remove unused 'GetFixedOGLPos'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Dec 2021 05:23:29 +0000 (21:23 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Dec 2021 22:35:57 +0000 (14:35 -0800)
lib/glcomp/glutils.c
lib/glcomp/glutils.h

index 773a06b9db349461f0c6cc447b4cd916d7d4ca25..863b105c665ef7dcd9cbdab9de50ec8c87fd0c82 100644 (file)
 #include <string.h>
 #include <glcomp/glcompdefs.h>
 
-/* 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)
 {
index 8fe27d7e62df0f375eaac04d80c4cb24947fa42f..774e521e27686bc72a819d90fc9d976b1cce8011 100644 (file)
@@ -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,