aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_gl.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-09-02 21:29:25 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-10-20 12:16:07 +0900
commitde7a8a3dab14d917b9e914e3b3c7fb44679dd708 (patch)
tree927e2d74a2c2141802b83c4eb9d0a6370f5b7610 /src/lib/evas/canvas/evas_gl.c
parentEvas GL: Add support for current sfc/ctx get with osmesa (diff)
downloadefl-de7a8a3dab14d917b9e914e3b3c7fb44679dd708.tar.gz
Evas GL: Add API evas_gl_rotation_get
This will be used to increase the chances of having direct rendering (no fallback to FBO) even if the window is rotated. The client is then responsible for handling the view rotation. @feature
Diffstat (limited to 'src/lib/evas/canvas/evas_gl.c')
-rw-r--r--src/lib/evas/canvas/evas_gl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_gl.c b/src/lib/evas/canvas/evas_gl.c
index 4ccb937034..7984b03d79 100644
--- a/src/lib/evas/canvas/evas_gl.c
+++ b/src/lib/evas/canvas/evas_gl.c
@@ -497,6 +497,19 @@ evas_gl_api_get(Evas_GL *evas_gl)
}
EAPI int
+evas_gl_rotation_get(Evas_GL *evas_gl)
+{
+ MAGIC_CHECK(evas_gl, Evas_GL, MAGIC_EVAS_GL);
+ return 0;
+ MAGIC_CHECK_END();
+
+ if (!evas_gl->evas->engine.func->gl_rotation_angle_get)
+ return 0;
+
+ return evas_gl->evas->engine.func->gl_rotation_angle_get(evas_gl->evas->engine.data.output);
+}
+
+EAPI int
evas_gl_error_get(Evas_GL *evas_gl)
{
int err;