aboutsummaryrefslogtreecommitdiff
path: root/mesalib/progs/util/winpos.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-11-29 22:05:53 +0000
committermarha <marha@users.sourceforge.net>2010-11-29 22:05:53 +0000
commitfed109d6a33c0871291d1bb2f3f6b7a3d1a3e9d7 (patch)
treefa1ba494685a71e28a096990a8707680c7cb378b /mesalib/progs/util/winpos.c
parentae340911c1ba1f98b418bd8f1a487fa4d79491b0 (diff)
parent6fda93be42ace9eeab0e82ceebb6798961c9105c (diff)
downloadvcxsrv-fed109d6a33c0871291d1bb2f3f6b7a3d1a3e9d7.tar.gz
vcxsrv-fed109d6a33c0871291d1bb2f3f6b7a3d1a3e9d7.tar.bz2
vcxsrv-fed109d6a33c0871291d1bb2f3f6b7a3d1a3e9d7.zip
svn merge ^/branches/released .
Diffstat (limited to 'mesalib/progs/util/winpos.c')
-rw-r--r--mesalib/progs/util/winpos.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/mesalib/progs/util/winpos.c b/mesalib/progs/util/winpos.c
deleted file mode 100644
index 5ad98fd27..000000000
--- a/mesalib/progs/util/winpos.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* winpos.c */
-
-
-/*
- * Set the current raster position to a specific window
- * coordinate. Also see the GL_MESA_window_pos extension.
- *
- * Written by Brian Paul and in the public domain.
- */
-
-
-void WindowPos( GLfloat x, GLfloat y, GLfloat z )
-{
- GLfloat fx, fy;
-
- /* Push current matrix mode and viewport attributes */
- glPushAttrib( GL_TRANSFORM_BIT | GL_VIEWPORT_BIT );
-
- /* Setup projection parameters */
- glMatrixMode( GL_PROJECTION );
- glPushMatrix();
- glLoadIdentity();
- glMatrixMode( GL_MODELVIEW );
- glPushMatrix();
- glLoadIdentity();
-
- glDepthRange( z, z );
- glViewport( (int) x - 1, (int) y - 1, 2, 2 );
-
- /* set the raster (window) position */
- fx = x - (int) x;
- fy = y - (int) y;
- glRasterPos3f( fx, fy, 0.0 );
-
- /* restore matrices, viewport and matrix mode */
- glPopMatrix();
- glMatrixMode( GL_PROJECTION );
- glPopMatrix();
-
- glPopAttrib();
-}
-