forked from enlightenment/efl
evas: fixing examples after change on Evas_3D.
This commit is contained in:
parent
f5e1151148
commit
419e8f2ffe
|
@ -232,9 +232,9 @@ _scene_setup(Scene_Data *data)
|
||||||
evas_3d_scene_root_node_set(data->root_node),
|
evas_3d_scene_root_node_set(data->root_node),
|
||||||
evas_3d_scene_camera_node_set(data->camera_node));
|
evas_3d_scene_camera_node_set(data->camera_node));
|
||||||
|
|
||||||
data.mouse_old_x = 0;
|
data->mouse_old_x = 0;
|
||||||
data.mouse_diff_x = 0;
|
data->mouse_diff_x = 0;
|
||||||
data.mouse_indicator = 0;
|
data->mouse_indicator = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -182,11 +182,9 @@ _mesh_setup(Scene_Data *data)
|
||||||
data->texture_normal = eo_add(EVAS_3D_TEXTURE_CLASS, evas);
|
data->texture_normal = eo_add(EVAS_3D_TEXTURE_CLASS, evas);
|
||||||
|
|
||||||
eo_do(data->texture0,
|
eo_do(data->texture0,
|
||||||
evas_3d_texture_data_set(EVAS_3D_COLOR_FORMAT_RGBA,
|
evas_3d_texture_data_set(EVAS_COLORSPACE_ARGB8888, 4, 4, &pixels0[0]));
|
||||||
EVAS_3D_PIXEL_FORMAT_8888, 4, 4, &pixels0[0]));
|
|
||||||
eo_do(data->texture1,
|
eo_do(data->texture1,
|
||||||
evas_3d_texture_data_set(EVAS_3D_COLOR_FORMAT_RGBA,
|
evas_3d_texture_data_set(EVAS_COLORSPACE_ARGB8888, 4, 4, &pixels1[0]));
|
||||||
EVAS_3D_PIXEL_FORMAT_8888, 4, 4, &pixels1[0]));
|
|
||||||
eo_do(data->texture_normal,
|
eo_do(data->texture_normal,
|
||||||
evas_3d_texture_file_set(normal_map_path, NULL));
|
evas_3d_texture_file_set(normal_map_path, NULL));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue