glshader: fix usage doc

The property location has been changed in favor of vertex/fragment
string properties; the doc had not been updated and was still referring
to the previous property; also, now the #version header has become mandatory

https://bugzilla.gnome.org/show_bug.cgi?id=759902
This commit is contained in:
Florent Thiéry 2015-12-27 11:37:09 +01:00 committed by Sebastian Dröge
parent c68e842ed0
commit 15a28c8024

View file

@ -22,14 +22,14 @@
/**
* SECTION:element-glshader
*
* Filter loading OpenGL fragment shader from file
* OpenGL fragment shader filter
*
* <refsect2>
* <title>Examples</title>
* |[
* gst-launch-1.0 videotestsrc ! glupload ! glshader location=myshader.fs ! glimagesink
* gst-launch-1.0 videotestsrc ! glupload ! glshader fragment="\"`cat myshader.frag`\"" ! glimagesink
* ]|
* FBO (Frame Buffer Object) and GLSL (OpenGL Shading Language) are required.
* FBO (Frame Buffer Object) and GLSL (OpenGL Shading Language) are required. A #version header is required
* </refsect2>
*/
#ifdef HAVE_CONFIG_H