eo_do(obj, evas_3d_object_change(EVAS_3D_STATE_MESH_VERTEX_COUNT, NULL));
}
-EOLIAN static int
+EOLIAN static unsigned int
_evas_3d_mesh_vertex_count_get(Eo *obj EINA_UNUSED, Evas_3D_Mesh_Data *pd)
{
return pd->vertex_count;
{
return pd->color_pick_enabled;
}
-EOLIAN static Eina_Bool
-_evas_3d_mesh_color_pick_enable_set(Eo *obj, Evas_3D_Mesh_Data *pd, Eina_Bool _enabled)
+EOLIAN static void
+_evas_3d_mesh_color_pick_enable_set(Eo *obj, Evas_3D_Mesh_Data *pd, Eina_Bool enabled)
{
- if (pd->color_pick_enabled != _enabled)
- pd->color_pick_enabled = _enabled;
+ if (pd->color_pick_enabled != enabled)
+ pd->color_pick_enabled = enabled;
eo_do(obj, evas_3d_object_change(EVAS_3D_STATE_MESH_COLOR_PICK, NULL));
- return EINA_TRUE;
}
#include "canvas/evas_3d_mesh.eo.c"
}
}
- vertex_count_set {
- /*@
- Set the vertex count of the given mesh.
-
- Each key frame should have same vertex count to be properly interpolated.
- Key frames have their own vertex data and the data should have more vertices
- than the mesh's vertex count.
-
- Default vertex count is 0.
-
- @ingroup Evas_3D_Mesh
- */
- params {
- @in uint count; /*@ Vertex count.*/
- }
- }
-
- vertex_count_get @const {
- /*@
- Get the vertex count of the given mesh.
-
- @see evas_3d_mesh_vertex_count_set()
-
- @ingroup Evas_3D_Mesh
- */
- return: int;
- }
-
fog_color_set {
/*
Set the fog color and density for the given mesh.
@out Evas_3D_Blend_Func dfactor; /*@ Pointer to receive destination blendin factors key.*/
}
}
- fog_enable_set {
- /*
- Enable or disable fog effect for given mesh.
- @ingroup Evas_3D_Mesh
- */
- params {
- @in bool enabled; /*@ The red component of the fog color.*/
- }
- }
- fog_enable_get {
- /*
- Get fog effect status for the given mesh.
- @ingroup Evas_3D_Mesh
- */
- return: bool;
- params {
- }
- }
- color_pick_enable_get @const {
- /*
- Get status of color picking of the mesh.
-
- @ingroup Evas_3D_Mesh
- */
- return: bool;
- params {
- }
- }
- color_pick_enable_set {
- /*
- Set posibility color picking.
-
- @ingroup Evas_3D_Mesh
- */
- return: bool;
- params {
- @in bool _enabled; /*@ Posibility flag */
- }
- }
}
properties {
shade_mode {
Evas_3D_Shade_Mode mode; /*@ The shade mode.*/
}
}
+ color_pick_enable {
+ set {
+ /**
+ * Set posibility color picking.
+ *
+ * @ingroup Evas_3D_Mesh
+ */
+ }
+ get {
+ /**
+ * Get status of color picking of the mesh.
+ *
+ * @see color_pick_enable_set()
+ *
+ * @ingroup Evas_3D_Mesh
+ */
+ }
+ values {
+ Eina_Bool enabled; /*@ Posibility flag */
+ }
+ }
+ vertex_count {
+ set {
+ /**
+ * Set the vertex count of the given mesh.
+ *
+ * Each key frame should have same vertex count to be properly interpolated.
+ * Key frames have their own vertex data and the data should have more vertices
+ * than the mesh's vertex count.
+
+ * Default vertex count is 0.
+
+ * @ingroup Evas_3D_Mesh
+ */
+ }
+ get {
+ /**
+ * Get the vertex count of the given mesh.
+ *
+ * @see evas_3d_mesh_vertex_count_set()
+ *
+ * @ingroup Evas_3D_Mesh
+ */
+ }
+ values {
+ uint count; /*@ Vertex count.*/
+ }
+ }
+ fog_enable {
+ set {
+ /**
+ * Enable or disable fog effect for given mesh.
+ *
+ * Default fog is disabled.
+ *
+ * @ingroup Evas_3D_Mesh
+ */
+ }
+ get {
+ /**
+ * Get the enable status of fog effect for given mesh
+ *
+ * @see fog_enable_set()
+ *
+ * @ingroup Evas_3D_Mesh
+ */
+ }
+ values {
+ Eina_Bool enabled; /*@ Fog enabled status.*/
+ }
+ }
blending_enable {
set {
/**