examples/gl: update for signal signature change
authorMatthew Waters <matthew@centricular.com>
Sun, 28 Sep 2014 10:37:04 +0000 (20:37 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:47 +0000 (19:31 +0000)
tests/examples/gl/generic/cube/main.cpp
tests/examples/gl/generic/cubeyuv/main.cpp
tests/examples/gl/generic/doublecube/main.cpp
tests/examples/gl/generic/recordgraphic/main.cpp

index 23c81ec365e4ce6e6d1d4d9b50ba8b2a714ba783..b5ded63d920263d86695f287384faf6ee418ec63 100644 (file)
@@ -65,7 +65,7 @@ static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data)
 }
 
 //client reshape callback
-static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height, gpointer data)
+static gboolean reshapeCallback (void *gl_sink, void *context, GLuint width, GLuint height, gpointer data)
 {
     glViewport(0, 0, width, height);
     glMatrixMode(GL_PROJECTION);
@@ -77,7 +77,7 @@ static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height, gpo
 }
 
 //client draw callback
-static gboolean drawCallback (void * gl_sink, GLuint texture, GLuint width, GLuint height, gpointer data)
+static gboolean drawCallback (void * gl_sink, void *context, GLuint texture, GLuint width, GLuint height, gpointer data)
 {
     static GLfloat     xrot = 0;
     static GLfloat     yrot = 0;
index 0d585a72146a1295458e96bb7e6f0503116645ea..deb75ed6d376c602e1e53a7eadf2fa542e6d7000 100644 (file)
@@ -87,7 +87,7 @@ static void identityCallback (GstElement *src, GstBuffer  *buffer, GstElement* t
 
 
 //client reshape callback
-static gboolean reshapeCallback (void * gl_sink, GLuint width, GLuint height, gpointer data)
+static gboolean reshapeCallback (void * gl_sink, void *context, GLuint width, GLuint height, gpointer data)
 {
     glViewport(0, 0, width, height);
     glMatrixMode(GL_PROJECTION);
@@ -100,7 +100,7 @@ static gboolean reshapeCallback (void * gl_sink, GLuint width, GLuint height, gp
 
 
 //client draw callback
-static gboolean drawCallback (void * gl_sink, GLuint texture, GLuint width, GLuint height, gpointer data)
+static gboolean drawCallback (void * gl_sink, void *context, GLuint texture, GLuint width, GLuint height, gpointer data)
 {
     static GLfloat     xrot = 0;
     static GLfloat     yrot = 0;
index 4e0a421ffe72d2bdc54ea8971322a8ab07290d44..82520383be7786d85304be5ba556585799750225 100644 (file)
@@ -89,7 +89,7 @@ static GstPadProbeReturn textoverlay_sink_pad_probe_cb (GstPad *pad, GstPadProbe
 
 
 //client reshape callback
-static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height)
+static gboolean reshapeCallback (void *gl_sink, void *context, GLuint width, GLuint height)
 {
     glViewport(0, 0, width, height);
     glMatrixMode(GL_PROJECTION);
@@ -102,7 +102,7 @@ static gboolean reshapeCallback (void *gl_sink, GLuint width, GLuint height)
 
 
 //client draw callback
-static gboolean drawCallback (void * gl_sink, GLuint texture, GLuint width, GLuint height)
+static gboolean drawCallback (void * gl_sink, void *context, GLuint texture, GLuint width, GLuint height)
 {
     static GLfloat     xrot = 0;
     static GLfloat     yrot = 0;
index d457a9c25705d1164a2a2d6f2d882b1ce6776d91..d99d0d8e6b99acbc7745a51d3a6f616a1df3503b 100644 (file)
@@ -66,7 +66,7 @@ static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data)
 }
 
 //client draw callback
-static gboolean drawCallback (void *filter, GLuint width, GLuint height, GLuint texture, gpointer data)
+static gboolean drawCallback (void *filter, void *context, GLuint texture, GLuint width, GLuint height, gpointer data)
 {
     static GLfloat     xrot = 0;
     static GLfloat     yrot = 0;