aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/common3d/primitives/primitive_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/common3d/primitives/primitive_common.h')
-rw-r--r--src/lib/evas/common3d/primitives/primitive_common.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/evas/common3d/primitives/primitive_common.h b/src/lib/evas/common3d/primitives/primitive_common.h
index 50092d711f..63d2c69416 100644
--- a/src/lib/evas/common3d/primitives/primitive_common.h
+++ b/src/lib/evas/common3d/primitives/primitive_common.h
@@ -19,13 +19,13 @@
#define SET_VERTEX_DATA(frame) \
Eina_Bool frame_exist; \
eo_do(mesh, \
- frame_exist = evas_canvas3d_mesh_frame_exist(frame)); \
+ frame_exist = evas_canvas3d_mesh_frame_exist(mesh, frame)); \
if (!frame_exist) \
eo_do(mesh, \
- evas_canvas3d_mesh_frame_add(frame)); \
+ evas_canvas3d_mesh_frame_add(mesh, frame)); \
eo_do(mesh, \
- evas_canvas3d_mesh_vertex_count_set(vcount), \
- evas_canvas3d_mesh_index_data_copy_set(EVAS_CANVAS3D_INDEX_FORMAT_UNSIGNED_SHORT, \
+ evas_canvas3d_mesh_vertex_count_set(mesh, vcount), \
+ evas_canvas3d_mesh_index_data_copy_set(mesh, EVAS_CANVAS3D_INDEX_FORMAT_UNSIGNED_SHORT, \
icount, &indices[0])); \
_set_vec3_vertex_data(mesh, frame, vcount, vertices, EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION); \
_set_vec3_vertex_data(mesh, frame, vcount, normals, EVAS_CANVAS3D_VERTEX_ATTRIB_NORMAL); \
@@ -36,13 +36,13 @@
#define SET_VERTEX_DATA_FROM_ARRAY(mesh, frame, varray, vcount, indices, icount) \
Eina_Bool frame_exist; \
eo_do(mesh, \
- frame_exist = evas_canvas3d_mesh_frame_exist(frame)); \
+ frame_exist = evas_canvas3d_mesh_frame_exist(mesh, frame)); \
if (!frame_exist) \
eo_do(mesh, \
- evas_canvas3d_mesh_frame_add(frame)); \
+ evas_canvas3d_mesh_frame_add(mesh, frame)); \
eo_do(mesh, \
- evas_canvas3d_mesh_vertex_count_set(vcount), \
- evas_canvas3d_mesh_index_data_copy_set(EVAS_CANVAS3D_INDEX_FORMAT_UNSIGNED_SHORT, \
+ evas_canvas3d_mesh_vertex_count_set(mesh, vcount), \
+ evas_canvas3d_mesh_index_data_copy_set(mesh, EVAS_CANVAS3D_INDEX_FORMAT_UNSIGNED_SHORT, \
icount, &indices[0])); \
_set_vertex_data_from_array(mesh, frame, varray, EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION, \
0, 3, 15, vcount); \