And add some missing function documentation.
*
* Get the unsized format and type from @format for usage in glReadPixels,
* glTex{Sub}Image*, glTexImage* and similar functions.
+ *
+ * Since: 1.16
*/
void
gst_gl_format_type_from_sized_gl_format (GstGLFormat format,
*
* Returns: Whether @format is supported by @context based on the OpenGL API,
* version, or available OpenGL extension/s.
+ *
+ * Since: 1.16
*/
gboolean
gst_gl_format_is_supported (GstGLContext * context, GstGLFormat format)
*
* Returns: a shader string defining the precision of float types based on
* @context, @version and @profile
+ *
+ * Since: 1.16
*/
const gchar *
gst_gl_shader_string_get_highest_precision (GstGLContext * context,
*
* Returns: a passthrough shader string for copying an input texture to
* the output
+ *
+ * Since: 1.16
*/
gchar *
gst_gl_shader_string_fragment_get_default (GstGLContext * context,
*
* Returns: a passthrough shader string for copying an input external-oes
* texture to the output
+ *
+ * Since: 1.16
*/
gchar *
gst_gl_shader_string_fragment_external_oes_get_default (GstGLContext * context,
* @profile: a #GstGLSLProfile
*
* Returns: whether @context supports the 'precision' specifier in GLSL shaders
+ *
+ * Since: 1.16
*/
gboolean
gst_gl_context_supports_precision (GstGLContext * context,
* @profile: a #GstGLSLProfile
*
* Returns: whether @context supports the 'precision highp' specifier in GLSL shaders
+ *
+ * Since: 1.16
*/
gboolean
gst_gl_context_supports_precision_highp (GstGLContext * context,
return ret;
}
+/**
+ * gst_gl_window_queue_resize:
+ * @window: a #GstGLWindow
+ *
+ * Queue resizing of @window.
+ */
void
gst_gl_window_queue_resize (GstGLWindow * window)
{
resize->height);
}
+/**
+ * gst_gl_window_resize:
+ * @window: a #GstGLWindow
+ * @width: new width
+ * @height: new height
+ *
+ * Resize @window to the given @width and @height.
+ */
void
gst_gl_window_resize (GstGLWindow * window, guint width, guint height)
{
window->queue_resize = FALSE;
}
+/**
+ * gst_gl_window_controls_viewport:
+ * @window: a #GstGLWindow
+ *
+ * Checks if @window controls the GL viewport.
+ *
+ * Returns: %TRUE if @window controls the GL viewport, otherwise %FALSE
+ *
+ * Since: 1.16
+ */
gboolean
gst_gl_window_controls_viewport (GstGLWindow * window)
{