summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_3d_utils.h
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2015-02-18 21:43:23 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-18 22:42:07 +0100
commitd28b82be45451c08cb993d2f835675d8b5dcbe24 (patch)
treef45b8c07bb8f370f4e845b8f3d924ef33d8bd57e /src/lib/evas/include/evas_3d_utils.h
parentb9b5ced501f4642f03d8bcc8441fd3f7b55a7f52 (diff)
evas: Evas_3D - callbacks for Evas 3D.
Summary: Add class and type Evas_3D_Callback like wrapper under smart object Incapsulate Evas_3D_Callback in Evas_3D_Object Add virtual function register and unregister in Evas_3D_Object Add function evas_3d_callback_call Add callbacks clicked and collision for Evas_3D_Node @feature Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: artem.popov, cedric Differential Revision: https://phab.enlightenment.org/D1914 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/include/evas_3d_utils.h')
-rw-r--r--src/lib/evas/include/evas_3d_utils.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_3d_utils.h b/src/lib/evas/include/evas_3d_utils.h
index 6f7f477a77..d11533ff6e 100644
--- a/src/lib/evas/include/evas_3d_utils.h
+++ b/src/lib/evas/include/evas_3d_utils.h
@@ -2000,3 +2000,15 @@ evas_frustum_calculate(Evas_Vec4 *planes, Evas_Mat4 *matrix_vp)
2000 evas_plane_normalize(&planes[i]); 2000 evas_plane_normalize(&planes[i]);
2001 } 2001 }
2002} 2002}
2003
2004static inline Eina_Bool
2005box_intersection_box(Evas_Box3 *v1, Evas_Box3 *v2)
2006{
2007 if ((v1->p1.x < v2->p0.x) || (v1->p0.x > v2->p1.x)
2008 || (v1->p1.y < v2->p0.y) || (v1->p0.y > v2->p1.y)
2009 || (v1->p1.z < v2->p0.z) || (v1->p0.z > v2->p1.z))
2010 return EINA_FALSE;
2011 else
2012 return EINA_TRUE;
2013}
2014