diff options
author | Bogdan Devichev <b.devichev@samsung.com> | 2015-04-22 15:27:49 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-05-07 09:53:09 +0200 |
commit | 04038dfaefa81e39988b3dc90b84da73dfea5e1f (patch) | |
tree | c1634c8050623694afdfcb27b0d385db4da6321b /src/lib/evas/Evas_Eo.h | |
parent | 657d495aa9607774409206099d809a1a737b736a (diff) | |
download | efl-04038dfaefa81e39988b3dc90b84da73dfea5e1f.tar.gz |
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 <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/Evas_Eo.h')
-rw-r--r-- | src/lib/evas/Evas_Eo.h | 20 |
1 files 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 * |