forked from enlightenment/efl
evas/evas3d: cleanup docs and removed unncessary files.
Conflicts: src/lib/evas/Evas_Legacy.h
This commit is contained in:
parent
60e703bc24
commit
433699e976
|
@ -284,8 +284,7 @@ lib_evas_libevas_la_SOURCES += \
|
||||||
$(lib_evas_file_SOURCES)
|
$(lib_evas_file_SOURCES)
|
||||||
|
|
||||||
noinst_HEADERS += \
|
noinst_HEADERS += \
|
||||||
lib/evas/include/evas_3d_utils.h \
|
lib/evas/include/evas_3d_utils.h
|
||||||
lib/evas/include/evas_3d_private.h
|
|
||||||
|
|
||||||
lib_evas_libevas_la_SOURCES += \
|
lib_evas_libevas_la_SOURCES += \
|
||||||
lib/evas/canvas/evas_3d_object.c \
|
lib/evas/canvas/evas_3d_object.c \
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -622,11 +622,12 @@ evas_mat4_copy(Evas_Mat4 *dst, const Evas_Mat4 *src)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
evas_mat4_nocheck_multiply(Evas_Mat4 *out, const Evas_Mat4 *mat_a, const Evas_Mat4 *mat_b)
|
evas_mat4_nocheck_multiply(Evas_Mat4 *out, const Evas_Mat4 *mat_a,
|
||||||
|
const Evas_Mat4 *mat_b)
|
||||||
{
|
{
|
||||||
Evas_Real *d = &out->m[0];
|
Evas_Real *d = out->m;
|
||||||
const Evas_Real *a = &mat_a->m[0];
|
const Evas_Real *a = mat_a->m;
|
||||||
const Evas_Real *b = &mat_b->m[0];
|
const Evas_Real *b = mat_b->m;
|
||||||
|
|
||||||
if (mat_a->flags & EVAS_MATRIX_IS_IDENTITY)
|
if (mat_a->flags & EVAS_MATRIX_IS_IDENTITY)
|
||||||
{
|
{
|
||||||
|
@ -664,7 +665,8 @@ evas_mat4_nocheck_multiply(Evas_Mat4 *out, const Evas_Mat4 *mat_a, const Evas_Ma
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
evas_mat4_multiply(Evas_Mat4 *out, const Evas_Mat4 *mat_a, const Evas_Mat4 *mat_b)
|
evas_mat4_multiply(Evas_Mat4 *out, const Evas_Mat4 *mat_a,
|
||||||
|
const Evas_Mat4 *mat_b)
|
||||||
{
|
{
|
||||||
if (out != mat_a && out != mat_b)
|
if (out != mat_a && out != mat_b)
|
||||||
{
|
{
|
||||||
|
@ -785,8 +787,8 @@ evas_mat4_ortho_set(Evas_Mat4 *m,
|
||||||
static inline void
|
static inline void
|
||||||
evas_mat4_nocheck_inverse(Evas_Mat4 *out, const Evas_Mat4 *mat)
|
evas_mat4_nocheck_inverse(Evas_Mat4 *out, const Evas_Mat4 *mat)
|
||||||
{
|
{
|
||||||
Evas_Real *d = &out->m[0];
|
Evas_Real *d = out->m;
|
||||||
const Evas_Real *m = &mat->m[0];
|
const Evas_Real *m = mat->m;
|
||||||
Evas_Real det;
|
Evas_Real det;
|
||||||
|
|
||||||
if (mat->flags & EVAS_MATRIX_IS_IDENTITY)
|
if (mat->flags & EVAS_MATRIX_IS_IDENTITY)
|
||||||
|
@ -909,8 +911,7 @@ evas_mat4_nocheck_inverse(Evas_Mat4 *out, const Evas_Mat4 *mat)
|
||||||
|
|
||||||
det = m[0] * d[0] + m[1] * d[4] + m[2] * d[8] + m[3] * d[12];
|
det = m[0] * d[0] + m[1] * d[4] + m[2] * d[8] + m[3] * d[12];
|
||||||
|
|
||||||
if (det == 0.0)
|
if (det == 0.0) return;
|
||||||
return;
|
|
||||||
|
|
||||||
det = 1.0 / det;
|
det = 1.0 / det;
|
||||||
|
|
||||||
|
@ -1016,9 +1017,9 @@ evas_mat3_copy(Evas_Mat3 *dst, const Evas_Mat3 *src)
|
||||||
static inline void
|
static inline void
|
||||||
evas_mat3_nocheck_multiply(Evas_Mat3 *out, const Evas_Mat3 *mat_a, const Evas_Mat3 *mat_b)
|
evas_mat3_nocheck_multiply(Evas_Mat3 *out, const Evas_Mat3 *mat_a, const Evas_Mat3 *mat_b)
|
||||||
{
|
{
|
||||||
Evas_Real *d = &out->m[0];
|
Evas_Real *d = out->m;
|
||||||
const Evas_Real *a = &mat_a->m[0];
|
const Evas_Real *a = mat_a->m;
|
||||||
const Evas_Real *b = &mat_b->m[0];
|
const Evas_Real *b = mat_b->m;
|
||||||
|
|
||||||
if (mat_a->flags & EVAS_MATRIX_IS_IDENTITY)
|
if (mat_a->flags & EVAS_MATRIX_IS_IDENTITY)
|
||||||
{
|
{
|
||||||
|
@ -1236,7 +1237,8 @@ evas_mat2_invserse(Evas_Mat2 *out, const Evas_Mat2 *mat)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
evas_box2_set(Evas_Box2 *box, Evas_Real x0, Evas_Real y0, Evas_Real x1, Evas_Real y1)
|
evas_box2_set(Evas_Box2 *box, Evas_Real x0, Evas_Real y0, Evas_Real x1,
|
||||||
|
Evas_Real y1)
|
||||||
{
|
{
|
||||||
box->p0.x = x0;
|
box->p0.x = x0;
|
||||||
box->p0.y = y0;
|
box->p0.y = y0;
|
||||||
|
@ -1245,7 +1247,8 @@ evas_box2_set(Evas_Box2 *box, Evas_Real x0, Evas_Real y0, Evas_Real x1, Evas_Rea
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
evas_box3_set(Evas_Box3 *box, Evas_Real x0, Evas_Real y0, Evas_Real z0, Evas_Real x1, Evas_Real y1, Evas_Real z1)
|
evas_box3_set(Evas_Box3 *box, Evas_Real x0, Evas_Real y0, Evas_Real z0,
|
||||||
|
Evas_Real x1, Evas_Real y1, Evas_Real z1)
|
||||||
{
|
{
|
||||||
box->p0.x = x0;
|
box->p0.x = x0;
|
||||||
box->p0.y = y0;
|
box->p0.y = y0;
|
||||||
|
@ -1484,7 +1487,8 @@ evas_ray3_init(Evas_Ray3 *ray, Evas_Real x, Evas_Real y, const Evas_Mat4 *mvp)
|
||||||
Evas_Mat4 mat;
|
Evas_Mat4 mat;
|
||||||
Evas_Vec4 near, far;
|
Evas_Vec4 near, far;
|
||||||
|
|
||||||
/* Get the matrix which transforms from normalized device coordinate to modeling coodrinate. */
|
/* Get the matrix which transforms from normalized device coordinate to
|
||||||
|
modeling coodrinate. */
|
||||||
evas_mat4_inverse(&mat, mvp);
|
evas_mat4_inverse(&mat, mvp);
|
||||||
|
|
||||||
/* Transform near point. */
|
/* Transform near point. */
|
||||||
|
|
|
@ -135,10 +135,6 @@ struct _Evas_3D_Node
|
||||||
Evas_Vec4 orientation_world;
|
Evas_Vec4 orientation_world;
|
||||||
Evas_Vec3 scale_world;
|
Evas_Vec3 scale_world;
|
||||||
|
|
||||||
Eina_Bool position_inherit;
|
|
||||||
Eina_Bool orientation_inherit;
|
|
||||||
Eina_Bool scale_inherit;
|
|
||||||
|
|
||||||
Evas_Box3 aabb;
|
Evas_Box3 aabb;
|
||||||
|
|
||||||
Evas_3D_Node_Type type;
|
Evas_3D_Node_Type type;
|
||||||
|
@ -167,6 +163,10 @@ struct _Evas_3D_Node
|
||||||
|
|
||||||
/* Scene using this node as camera. */
|
/* Scene using this node as camera. */
|
||||||
Eina_Hash *scenes_camera;
|
Eina_Hash *scenes_camera;
|
||||||
|
|
||||||
|
Eina_Bool position_inherit : 1;
|
||||||
|
Eina_Bool orientation_inherit : 1;
|
||||||
|
Eina_Bool scale_inherit : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _Evas_3D_Camera
|
struct _Evas_3D_Camera
|
||||||
|
|
Loading…
Reference in New Issue