summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_GL.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-09-01 20:15:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-10-20 12:16:07 +0900
commitcb5e88d20ff258fb18e7fe1465ca7eddf4e9e2e3 (patch)
treebb6a9ad2a6cbc0932a81bf228310022bd2d33651 /src/lib/evas/Evas_GL.h
parent68ca82e83f4cd69f3772d5554486b1856d830f1a (diff)
Evas GL: Add APIs to get current surface/context
- evas_gl_current_surface_get - evas_gl_current_context_get @feature
Diffstat (limited to 'src/lib/evas/Evas_GL.h')
-rw-r--r--src/lib/evas/Evas_GL.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_GL.h b/src/lib/evas/Evas_GL.h
index 3a46de8f86..2a51825fc7 100644
--- a/src/lib/evas/Evas_GL.h
+++ b/src/lib/evas/Evas_GL.h
@@ -596,6 +596,36 @@ EAPI Evas_GL_API *evas_gl_api_get (Evas_GL *evas_gl) EINA
596 */ 596 */
597EAPI int evas_gl_error_get (Evas_GL *evas_gl) EINA_ARG_NONNULL(1); 597EAPI int evas_gl_error_get (Evas_GL *evas_gl) EINA_ARG_NONNULL(1);
598 598
599/**
600 * @brief Returns the Evas GL context object in use or set by @ref evas_gl_make_current.
601 *
602 * @param[in] evas_gl The given Evas_GL object
603 *
604 * @return The current context for the calling thread, or @c NULL in case of
605 * failure and when there is no current context in this thread.
606 *
607 * @since 1.12
608 */
609EAPI Evas_GL_Context *evas_gl_current_context_get (Evas_GL *evas_gl) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
610
611/**
612 * @brief Returns the Evas GL surface object in use or set by @ref evas_gl_make_current
613 *
614 * @param evas_gl The given Evas_GL object
615 *
616 * @return The current surface for the calling thread, or @c NULL in case of
617 * failure and when there is no current surface in this thread.
618 *
619 * This can be used to get a handle to the current surface, so as to switch
620 * between contexts back and forth. Note that the OpenGL driver may stall when
621 * doing so.
622 *
623 * @see evas_gl_make_current
624 *
625 * @since 1.12
626 */
627EAPI Evas_GL_Surface *evas_gl_current_surface_get (Evas_GL *evas_gl) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
628
599#if !defined(__gl_h_) && !defined(__gl2_h_) 629#if !defined(__gl_h_) && !defined(__gl2_h_)
600# define __gl_h_ 630# define __gl_h_
601# define __gl2_h_ 631# define __gl2_h_