summaryrefslogtreecommitdiffstats
path: root/sys/glsink/gstgl_rgbimage.c
diff options
context:
space:
mode:
authorGernot Ziegler <gz@lysator.liu.se>2003-10-27 18:34:48 +0000
committerGernot Ziegler <gz@lysator.liu.se>2003-10-27 18:34:48 +0000
commit537084d264c4bb5fc9d02504d7e79961fd8e83c7 (patch)
tree96be4d2e4328649022e919f155ff90d3c0c128c3 /sys/glsink/gstgl_rgbimage.c
parentbf156442acd3af570fae1bfe4cd1641ca704e09b (diff)
downloadgst-plugins-bad-537084d264c4bb5fc9d02504d7e79961fd8e83c7.tar.gz
gst-plugins-bad-537084d264c4bb5fc9d02504d7e79961fd8e83c7.tar.bz2
gst-plugins-bad-537084d264c4bb5fc9d02504d7e79961fd8e83c7.zip
introducing NVidia accelerated OpenGL videosinks :)
Original commit message from CVS: introducing NVidia accelerated OpenGL videosinks :)
Diffstat (limited to 'sys/glsink/gstgl_rgbimage.c')
-rw-r--r--sys/glsink/gstgl_rgbimage.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/glsink/gstgl_rgbimage.c b/sys/glsink/gstgl_rgbimage.c
index 31ac16ae..7c2cfb54 100644
--- a/sys/glsink/gstgl_rgbimage.c
+++ b/sys/glsink/gstgl_rgbimage.c
@@ -237,6 +237,10 @@ gst_gl_rgbimage_put_image (GstImageInfo *info, GstImageData *image)
// both upload the video, and redraw the screen
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
+ glMatrixMode(GL_MODELVIEW);
+ glLoadIdentity();
+ glTranslatef(0.0, 0.0, -50.0);
+
glEnable(GL_TEXTURE_2D);
glPushMatrix();
@@ -259,16 +263,16 @@ gst_gl_rgbimage_put_image (GstImageInfo *info, GstImageData *image)
glNormal3f(0, -1, 0);
glTexCoord2f(xmax, 0);
- glVertex3f(4,0,-4);
+ glVertex3f(4,4,0);
glTexCoord2f(0, 0);
- glVertex3f(-4,0,-4);
+ glVertex3f(-4,4,0);
glTexCoord2f(0, ymax);
- glVertex3f(-4,0,4);
+ glVertex3f(-4,-4,0);
glTexCoord2f(xmax, ymax);
- glVertex3f(4,0,4);
+ glVertex3f(4,-4,0);
glEnd();