<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">-bad/ext/gl/gstglfiltershader.c is the
      element where you can currently only set the fragment shader<br>
      <br>
      -bad/gst-libs/gst/gl/gstglshader.c is the library object that
      wraps OpenGL shader functionality which exposes slightly more
      functionality than the above element.<br>
      <br>
      As I said earlier, I have the beginnings of some work to modernize
      both objects which will be pushed after 1.6 is out to the master
      branch.  This modernization will allow (for example) setting the
      vertex shader.<br>
      <br>
      The other option is that you write your own element to do what you
      want.  Up to you.<br>
      <br>
      On 21/08/15 18:57, Hamdi Rakkez wrote:<br>
    </div>
    <blockquote
cite="mid:%3CCAFXmeVsKeyM14CQZMhtFwiUNeo0Q8htBdz-+eLBBJjNHDB22Mw@mail.gmail.com%3E"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;font-size:large;color:#073763">OKay but why we
          have this in the gstshader.c :</div>
        <div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;font-size:large;color:#073763"><br>
        </div>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div class="gmail_default">
            <blockquote class="gmail_quote"
              style="color:rgb(7,55,99);font-family:'trebuchet
              ms',sans-serif;margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">static
              const gchar *simple_vertex_shader_str_gles2 =<br>
                    "attribute vec4 a_position;\n"<br>
                    "attribute vec2 a_texcoord;\n"<br>
                    "varying vec2 v_texcoord;\n"<br>
                    "void main()\n"<br>
                    "{\n"<br>
                    "   gl_Position = a_position;\n"<br>
                    "   v_texcoord = a_texcoord;\n"<br>
                    "}\n";</blockquote>
            <div style="color:rgb(7,55,99);font-family:'trebuchet
              ms',sans-serif"><br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font
                face="trebuchet ms, sans-serif" color="#073763"> 
                 switch (prop_id) {<br>
              </font><font face="trebuchet ms, sans-serif"
                color="#073763">    case PROP_VERTEX_SRC:<br>
              </font><font face="trebuchet ms, sans-serif"
                color="#073763">      gst_gl_shader_set_vertex_source
                (shader, g_value_get_string (value));<br>
              </font><font face="trebuchet ms, sans-serif"
                color="#073763">      break;<br>
              </font><font face="trebuchet ms, sans-serif"
                color="#073763">    case PROP_FRAGMENT_SRC:<br>
              </font><font face="trebuchet ms, sans-serif"
                color="#073763">      gst_gl_shader_set_fragment_source
                (shader, g_value_get_string (value));<br>
              </font><font face="trebuchet ms, sans-serif"
                color="#073763">      break;</font></blockquote>
          </div>
        </blockquote>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Aug 21, 2015 at 5:00 AM,
          Matthew Waters <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"><span class=""> On
                20/08/15 19:42, Hamdi Rakkez wrote:<br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div class="gmail_default"
                      style="font-family:trebuchet
                      ms,sans-serif;font-size:large;color:#073763">Hi
                      list,</div>
                    <div class="gmail_default"
                      style="font-family:trebuchet
                      ms,sans-serif;font-size:large;color:#073763"><br>
                    </div>
                    <div class="gmail_default"
                      style="font-family:trebuchet
                      ms,sans-serif;font-size:large;color:#073763">Is it
                      possible to use vertex shader files with gstreamer
                      glshader ?</div>
                  </div>
                </blockquote>
                <br>
              </span> No, see my previous email for some more details.<br>
              <br>
              <blockquote type="cite">
                <div dir="ltr">
                  <div class="gmail_default"
                    style="font-family:trebuchet
                    ms,sans-serif;font-size:large;color:#073763">Thnaks.</div>
                  <div class="gmail_default"
                    style="font-family:trebuchet
                    ms,sans-serif;font-size:large;color:#073763"><br>
                  </div>
                  <div class="gmail_default"
                    style="font-family:trebuchet
                    ms,sans-serif;font-size:large;color:#073763">Best,</div>
                  <div class="gmail_default"
                    style="font-family:trebuchet
                    ms,sans-serif;font-size:large;color:#073763">Hamdi</div>
                </div>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>