summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-3d-aabb.c
diff options
context:
space:
mode:
authorBogdan Devichev <b.devichev@samsung.com>2015-02-18 22:21:47 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-18 22:42:20 +0100
commit303a6a87d039a7ba49831bb910b6570c3d7d5c93 (patch)
tree41132ab967a7b003b0684815d41749491ef03eae /src/examples/evas/evas-3d-aabb.c
parentd6f2dd4dd07dee11eb4121d950f37a534d43dadb (diff)
evas: Evas_3D - regularize resource for 3D examples.
Summary: This commit makes folder of examples for evas more ordered. Reviewers: raster, Hermet, cedric Subscribers: artem.popov, cedric Differential Revision: https://phab.enlightenment.org/D1985 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples/evas/evas-3d-aabb.c')
-rw-r--r--src/examples/evas/evas-3d-aabb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/examples/evas/evas-3d-aabb.c b/src/examples/evas/evas-3d-aabb.c
index 7fd8d98..722796c 100644
--- a/src/examples/evas/evas-3d-aabb.c
+++ b/src/examples/evas/evas-3d-aabb.c
@@ -13,6 +13,7 @@
13#include <Evas.h> 13#include <Evas.h>
14#include <Ecore.h> 14#include <Ecore.h>
15#include <Ecore_Evas.h> 15#include <Ecore_Evas.h>
16#include "evas-3d-common.h"
16 17
17#define WIDTH 400 18#define WIDTH 400
18#define HEIGHT 400 19#define HEIGHT 400
@@ -227,13 +228,13 @@ main(void)
227 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas); 228 material = eo_add(EVAS_3D_MATERIAL_CLASS, evas);
228 229
229 eo_do(mesh, 230 eo_do(mesh,
230 efl_file_set("sonic.md2", NULL), 231 efl_file_set(EVAS_3D_MODEL_FOLDER"sonic.md2", NULL),
231 evas_3d_mesh_frame_material_set(0, material), 232 evas_3d_mesh_frame_material_set(0, material),
232 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG)); 233 evas_3d_mesh_shade_mode_set(EVAS_3D_SHADE_MODE_PHONG));
233 234
234 texture = eo_add(EVAS_3D_TEXTURE_CLASS, evas); 235 texture = eo_add(EVAS_3D_TEXTURE_CLASS, evas);
235 eo_do(texture, 236 eo_do(texture,
236 evas_3d_texture_file_set("sonic.png", NULL), 237 evas_3d_texture_file_set(EVAS_3D_IMAGE_FOLDER"sonic.png", NULL),
237 evas_3d_texture_filter_set(EVAS_3D_TEXTURE_FILTER_NEAREST, 238 evas_3d_texture_filter_set(EVAS_3D_TEXTURE_FILTER_NEAREST,
238 EVAS_3D_TEXTURE_FILTER_NEAREST), 239 EVAS_3D_TEXTURE_FILTER_NEAREST),
239 evas_3d_texture_wrap_set(EVAS_3D_WRAP_MODE_REPEAT, 240 evas_3d_texture_wrap_set(EVAS_3D_WRAP_MODE_REPEAT,