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>
This commit is contained in:
Bogdan Devichev 2015-04-22 15:27:49 +02:00 committed by Cedric BAIL
parent 657d495aa9
commit 04038dfaef
1 changed files with 17 additions and 3 deletions

View File

@ -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
*