summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_3d_utils.h
diff options
context:
space:
mode:
authorTaekyun Kim <tkq.kim@samsung.com>2014-01-07 17:39:23 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-04-25 16:20:24 +0900
commit6856e562ca4a76ac33a89669bf4cf4932ec7c07d (patch)
tree19a92a6e5fa054d24175a2fc47097ddc51ffb5c0 /src/lib/evas/include/evas_3d_utils.h
parent26e43f938fed0fb33bbd18cece1f89bf521bf5eb (diff)
Evas: 3D: Refined proxy texture implementation
Added new APIs for controlling source object's visibility. Fixed bugs related to updating proxy textures.
Diffstat (limited to 'src/lib/evas/include/evas_3d_utils.h')
-rw-r--r--src/lib/evas/include/evas_3d_utils.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/lib/evas/include/evas_3d_utils.h b/src/lib/evas/include/evas_3d_utils.h
index 92ae65a564..8933c45e7a 100644
--- a/src/lib/evas/include/evas_3d_utils.h
+++ b/src/lib/evas/include/evas_3d_utils.h
@@ -1528,13 +1528,12 @@ evas_box3_ray3_intersect(const Evas_Box3 *box EINA_UNUSED, const Evas_Ray3 *ray
1528static inline Evas_Real 1528static inline Evas_Real
1529evas_reciprocal_sqrt(Evas_Real x) 1529evas_reciprocal_sqrt(Evas_Real x)
1530{ 1530{
1531 long i; 1531 union {
1532 float y, r; 1532 float f;
1533 1533 long i;
1534 y = x * 0.5f; 1534 } u;
1535 i = *(long *)(&x); 1535
1536 i = 0x5f3759df - (i >> 1); 1536 u.f = x;
1537 r = *(float *)(&i); 1537 u.i = 0x5f3759df - (u.i >> 1);
1538 r = r * (1.5f - r * r * y); 1538 return u.f * (1.5f - u.f * u.f * x * 0.5f);
1539 return r;
1540} 1539}