From 04038dfaefa81e39988b3dc90b84da73dfea5e1f Mon Sep 17 00:00:00 2001 From: Bogdan Devichev Date: Wed, 22 Apr 2015 15:27:49 +0200 Subject: [PATCH] evas: primitives - Changed enum for types of Evas_3D_Mesh primitives Summary: **`Creating API for primitives.`** //What should be in the end:// - Class evas_3d_primitive inherited from eo.base - Unificated API of mesh for setting data from primitives - API's of primitives to get/set precision, ratio, type, tex_scale etc. - code of primitives in separated modules //Steps:// **1.) Enum for types of primitives** 2.) Copies of primitives in modules 3.) Eo and c files for class of primitive 4.) In common create picker of module 5.) API function in mesh.c 6.) Binding of new realization 7.) Rewriting of examples 8.) Deleting of old files for primitives //Also this commit will be usable in parsing EDC by edje// Reviewers: Hermet, raster, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2359 Signed-off-by: Cedric BAIL --- src/lib/evas/Evas_Eo.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/Evas_Eo.h b/src/lib/evas/Evas_Eo.h index 296444268f..8850a45cbc 100644 --- a/src/lib/evas/Evas_Eo.h +++ b/src/lib/evas/Evas_Eo.h @@ -721,12 +721,26 @@ typedef enum _Evas_3D_Wrap_Mode */ typedef enum _Evas_3D_Mesh_Primitive { + /**< An empty space */ EVAS_3D_MESH_PRIMITIVE_NONE = 0, - EVAS_3D_MESH_PRIMITIVE_CUBE = 1, - EVAS_3D_MESH_PRIMITIVE_SPHERE = 2 + /**< One sided square */ + EVAS_3D_MESH_PRIMITIVE_SQUARE, + /**< Cube */ + EVAS_3D_MESH_PRIMITIVE_CUBE, + /**< Cylinder (can use precision and texture scale) */ + EVAS_3D_MESH_PRIMITIVE_CYLINDER, + /**< Cone (can use precision and texture scale) */ + EVAS_3D_MESH_PRIMITIVE_CONE, + /**< Sphere (can use precision and texture scale) */ + EVAS_3D_MESH_PRIMITIVE_SPHERE, + /**< Torus (can use ratio, precision and texture scale) */ + EVAS_3D_MESH_PRIMITIVE_TORUS, + /**< Custom surface (can use pointer to users function, precision and texture scale) */ + EVAS_3D_MESH_PRIMITIVE_SURFACE, + /**< Terrain as surface with pointer to Perlin's noise function */ + EVAS_3D_MESH_PRIMITIVE_TERRAIN } Evas_3D_Mesh_Primitive; - /** * Texture filters *