Commit Graph

352 Commits

Author SHA1 Message Date
kabeer khan fd7d0ca51b evas/examples: Resolved warning in evas-3d example
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2088
2015-03-04 13:02:07 +09:00
Bogdan Devichev a8e79114db evas-3d: recycling of resources for .ply import/export example
Summary: Smaller resources for .ply example.

Test Plan: run evas-3d-ply.c

Reviewers: cedric, Hermet, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2069
2015-03-03 11:44:40 +09:00
Bogdan Devichev fcd354aa84 evas-3d: recycling of resources for mmap example
Summary: Models for mmap example are more than tan times smaller.

Test Plan: run evas-3d-mmap-set.c

Reviewers: cedric, raster, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2073
2015-03-03 11:23:55 +09:00
Bogdan Devichev 6353e17f0b evas-3d: deleted some unneccesary resources and moon-space example
Summary: This example is deprecated. We have another (pick) to show functionality of it.

Test Plan: Need merged D2044 to run pick example.

Reviewers: cedric, raster, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2074
2015-03-03 10:58:59 +09:00
Dmytro Dadyka d602597ac1 evas: Evas_3D - add terrain mesh.
Reviewers: Hermet, Oleksander, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2042

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-26 21:06:38 +01:00
Dmytro Dadyka 179acbdd9b evas: Evas_3D - fix coding style
Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2050

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-26 21:06:38 +01:00
Stefan Schmidt c5879dab4d build: Unify use of $(MKDIR_P) for creating a dir within the build system
While we used different variation of mkdir -p all over we also had spots
where we did not use the option. This is one step in trying to make our
build system ready for parallel install. Using something like -j 10 even
for the install should help to speed up our jenkins jobs as well as distcheck.
2015-02-25 16:43:35 +01:00
Bogdan Devichev d9c9ea1f2a evas: textures are standardized 256*256.
Summary:
Textures for evas-3d are standardized 256*256.
.tga for parallax occlusion aren't changed to save alpha channel.
-50Mb for efl without obvious lost of quality

Reviewers: cedric, Hermet, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2032

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-23 19:24:32 +01:00
Cedric BAIL 5c22ae86ac eo: fix examples to follow new eo_do syntax. 2015-02-23 18:46:11 +01:00
Bogdan Devichev 1f9ac72b8e evas: refactoring evas examples descriptions.
Summary:
Descriptions of evas examples are standardized.
Added missing descriptions to examples.
Deleted copy of description in evas-init-shutdown.c.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2031

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-23 18:31:43 +01:00
Cedric BAIL e5eea68ead gitignore: don't track generated example. 2015-02-23 15:46:55 +01:00
Cedric BAIL 772e9bee2f evas: build evas_3d_parallax_occlusion. 2015-02-23 15:46:54 +01:00
Bogdan Devichev ccfbb521cd evas: some fixes to evas examples.
Summary:
Fixed : errors (connected with eo and new resources path) in evas-object-manipulation-eo.c
Fixed : warning: format not a string literal and no format arguments [-Wformat-security]
FIxed : unused variables in evas-images3.c are deleted

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2025

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-23 15:46:54 +01:00
kabeer khan d5c5d56752 edje: updated .gitignore to ignore edje-edit-part-box example.
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2030

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-23 15:46:41 +01:00
Dmytro Dadyka 1b142d09d9 evas: Evas_3D - add parallax occlusion shading.
Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2018
2015-02-23 15:46:25 +01:00
Bogdan Devichev 4cd50a447f evas: resources for evas-2d examples are added to resource folder.
Summary:  Process of loading is standard now. TODOs which are added here will be done in one of the next commits soon.

Reviewers: cedric, Hermet, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2013

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 18:37:03 +01:00
Dmytro Dadyka f377770cc1 evas: Evas_3D - add common code for primitive shape.
Reviewers: Hermet, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2012

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 18:36:56 +01:00
Bogdan Devichev 175c8cbd63 evas: Evas_3D - add creation of folder for saving and usage of PACKAGE_DATA_DIR to every example of Evas_3D.
Reviewers: cedric, Hermet, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2003

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 12:19:30 +01:00
Bogdan Devichev 145093a32b evas: Evas_3D - Makefile updated for resources ordering in evas examples.
Reviewers: cedric, Hermet, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1989

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-18 22:42:41 +01:00
Bogdan Devichev 303a6a87d0 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>
2015-02-18 22:42:20 +01:00
Cedric BAIL d6f2dd4dd0 evas: remove compilation warning. 2015-02-18 22:42:17 +01:00
perepelits.m 2e2145b594 evas: Evas_3D - improve Shooter example.
Summary: This example includes some previous developments to create 3d-world mechanics.

Reviewers: cedric, raster, Hermet

Subscribers: cedric, artem.popov

Differential Revision: https://phab.enlightenment.org/D1991

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-18 22:42:17 +01:00
Oleksandr Shcherbina d28b82be45 evas: Evas_3D - callbacks for Evas 3D.
Summary:
Add class and type Evas_3D_Callback like wrapper under smart object
Incapsulate Evas_3D_Callback in Evas_3D_Object
Add virtual function register and unregister in Evas_3D_Object
Add function evas_3d_callback_call
Add callbacks clicked and collision for Evas_3D_Node

@feature

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: artem.popov, cedric

Differential Revision: https://phab.enlightenment.org/D1914

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-18 22:42:07 +01:00
kabeer khan 88932d3645 evas: updated .gitignore to not track evas_3d_colorpick example.
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, Oleksander

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1968

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-16 12:11:28 +01:00
Vitalii Vorobiov bd2304cf3b edje: Edje_Edit - add examples for it's API using for BOX part and items
Summary:
Some little example about how and when edje_edit functions can be applied.
In this example there is a box part with items in edj, and by using edje_edit
program actually changes edj file directly. (adding items,
changing layouts of box, changing params of items, etc).

It is pushed as a reference for people who would like to do there own
Edje editor. Normal application should not use that API.

Reviewers: Hermet, raster, seoz, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1969

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-16 12:10:07 +01:00
Daniel Kolesa 2b8bc02e12 edje, eeze: compiler portability (use full ternary operator) 2015-02-13 14:20:32 +00:00
Bogdan Devichev 1506130866 evas: Evas_3D - iport/export of Obj format can be read even if obj-file does not have normals or tex-coords.
Summary:
This commit fixed several bugs, and show what was be fixed.

Bugs:
- When designer save obj file in Blender, he/she can set flags (fig 1). Normals and UV coords flags was necessary  for obj loader. Loader crushed when they are not set as true. It fixed by this commit.
- Another loaders set default values to data which aren't in loading file, so mesh need more memory for unused data. It fixed by this commit for obj and will be fixed for another formats in future.
- Saver saved incorrect data if normals or tex_coords was not set in mesh in evas. Now it fixed.
- Saver failed if it save mesh without material. It fixed and in this case material file is not created now.
- Also fixed some leaks and undefined behavior which valgrind shows.

Example:
- Example shows cases described above. Example use files saved with different flags for it.

Resources:
- man_mesh is replaced by several smaller file, to use them for showing new features and fixes. For example, similar to that models can be added when implement work with material for obj, work with different flags for obj loader/saver etc. (big count of man_meshes is to much memory).
- texture for home is flipped, because of bug with texture in efl to see if tex_coords is incorrect.

Test:
- test should be rewritten in future, because another formats still use default values for normals and tex_coords. And test can not pass for all types of obj file because of standardization for any format in him.

Test Plan: Test suit will be rewritten after correcting of other formats (they will set NULL to file when save an empty data (like mesh without normals))

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1957

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-11 18:31:53 +01:00
Oleksandr Shcherbina c6c6233b50 evas: example for Evas_3D color pick
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-11 18:05:54 +01:00
kabeer khan 46b9b23144 evas: add image orient set/get API in software backend for now.
Summary:
Added API's to rotate(0, 90, 180, 270), flip(horizontal, vertical, transpose, transverse)
evas image object. Also added example to demonstrate this.

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: raster, stephenmhouston, cedric

Subscribers: stephenmhouston, cedric

Differential Revision: https://phab.enlightenment.org/D1950

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-11 17:30:54 +01:00
Srivardhan Hebbar 59de60e60c ecore_con: remove code in examples that triggered warnings.
Summary:
When the examples were compiled they used to through the below warning
$ gcc -o ecore_con_client_simple_example ecore_con_client_simple_example.c `pkg-config --libs --cflags ecore ecore-con eina`
ecore_con_client_simple_example.c:11:0: warning: "EINA_UNUSED" redefined
 # define EINA_UNUSED
 ^
In file included from /usr/include/eina-1/Eina.h:215:0,
                 from /usr/include/ecore-1/Ecore.h:304,
                 from ecore_con_client_simple_example.c:5:
/usr/include/eina-1/eina/eina_types.h:112:0: note: this is the location of the previous definition
 #  define EINA_UNUSED __attribute__ ((__unused__))
 ^
So removed these defines as they are no longer required now.

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1919

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-03 14:30:27 +01:00
ChunEon Park 8ee679cb6e evas/examples: just change file name. 2015-02-03 10:50:03 +09:00
Dmytro Dadyka 77d6f8aa17 [Evas: Evas_3D] Improve shadows example.
Reviewers: cedric, raster, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1891
2015-02-03 10:44:44 +09:00
Stefan Schmidt 04805fc6a1 examples/evas: Add evas_3d_shadows binary to .gitignore 2015-01-19 10:41:47 +01:00
Stefan Schmidt 82249b5b50 examples/eina_inarray: Remove unused variables. 2015-01-16 10:39:24 +01:00
Stefan Schmidt 5abb6e7751 examples/elocation: Remove unused config.h include
It is not needed here.
2015-01-09 18:25:42 +01:00
Stefan Schmidt 4bbac653e7 examples/evas-3d-blending: Remove unused global variable.
This got shadowed in one of the functions and is not used at all.
2015-01-09 18:25:41 +01:00
Stefan Schmidt c8ce785970 examples/evas-3d-shadows: Avoid shadowing a global variable. 2015-01-09 18:25:41 +01:00
Stefan Schmidt b4898dbd1f examples/evas-3d-frustum: Remove unused variables. 2015-01-09 18:25:41 +01:00
Stefan Schmidt 96af685309 elocation: Mark elocation as BETA API for the upcoming 1.13 release
It is not ready as a public API yet. It needs to run on GeoClue1
and GeoClue2 which will definitely bring API changes as some parts
are tied to mcuh to what GeoClue1 offers right now.
2015-01-09 18:25:41 +01:00
Jean-Philippe Andre 61d76136de Evas examples: Fix comment also in evas-map-aa.c
i'm dumb and didn't even read the line above the one i changed...
2015-01-07 17:56:40 +09:00
Jean-Philippe Andre 62b5fc180e Evas examples: Fix command line in evas-map-aa.c 2015-01-07 17:50:33 +09:00
Dmytro Dadyka 38b3d5a857 [Evas: Evas_3D] Fixed bug with bounding shapes update.
Reviewers: cedric, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1851
2015-01-07 12:58:51 +09:00
ChunEon Park 5cfb266431 evas/examples: do build evas_3d_shadows 2015-01-07 12:04:21 +09:00
Dmytro Dadyka e7752ff7d7 [Evas: Evas_3D]Fixed bug with shadows and blending of vertex position
Reviewers: cedric, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1850
2015-01-07 12:00:47 +09:00
Larry Jr 2b12114777 allow C++ user create new classes inheriting from Eolian generated Classes 2015-01-05 15:52:27 -02:00
Vitor Sousa 6519ae6ed9 eolian_cxx: Fix "dreaded diamond" inheritance problem for C++ wrappers
Solved diamond inheritance problem by completely removing inheritance in
the abstract class.
All ancestors are inherited directly in the concrete class.
The algorithm that list the ancestors also avoid repetition.

Now concrete classes define methods too. This helps referring the correct
method directly by the object type (when there are methods with the same
name).

Moved the declaration and definition of constructor methods to the concrete
class, since they should not be used in derived classes.

Updated example that call "color_set".
With this model, if two ancestor classes have a method with the same name,
to call one of them from a derived class you must write the scoped name of
the member function in the wrapper.
In this case, either Evas.Object and Evas.SmartObject have a property
named "color".

Added "from_global" option to the full_name grammar too.
2015-01-05 15:52:27 -02:00
Vitor Sousa 132abc3534 eolian_cxx: Fix Eolian C++ generated wrapper inconsistencies
In convert.cc: Reading functions instead of implements to convert the
Eolian_Class. It avoids creation of methods that do not belong to the
class, in special it avoids calling the default constructor twice in the
generated code.

No longer generating one constructor in the C++ wrapper for each eolian
class constructor, since the correct behavior demands that all constructor
should be called. Now the wrappers have "constructor methods" that
must be called when creating a new object.

Updated test cases and examples to match the new interface. Some class
constructors and some test cases have to be removed since they were based
on the wrong assumption that constructors are mutually exclusive.

Created new generators for forwarding parameters and for looping over
the relevant parameters to the C++ wrapper executing a generic lambda.

Added a TODO comment regarding the call of constructor methods of all
base classes. Currently there is no base type with constructors, so this
situation should be discussed more.

Added a TODO comment regarding the way callback parameters are being
processed.
2015-01-05 15:52:27 -02:00
Cedric BAIL bb74ded8c8 gitignore: don't track generated file. 2014-12-23 22:37:23 +01:00
Cedric BAIL 0153e782c1 autotools: build new evas_3d_mmap examples. 2014-12-23 22:36:36 +01:00
Bogdan Devichev c471665ac8 evas: make Evas 3d mesh is inherited from Efl.File (functions file_set and save) 2014-12-23 21:20:21 +01:00