Commit Graph

322 Commits

Author SHA1 Message Date
ChunEon Park 5309b60000 evas/examples: just change file name. 2015-02-03 10:50:03 +09:00
Dmytro Dadyka 8881aa7315 [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 5919c8b6fc examples/evas: Add evas_3d_shadows binary to .gitignore 2015-01-19 10:41:47 +01:00
Stefan Schmidt d17b6df10d examples/eina_inarray: Remove unused variables. 2015-01-16 10:39:24 +01:00
Stefan Schmidt bae8e9f320 examples/elocation: Remove unused config.h include
It is not needed here.
2015-01-09 18:25:42 +01:00
Stefan Schmidt 5b16397bbe 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 a680595d31 examples/evas-3d-shadows: Avoid shadowing a global variable. 2015-01-09 18:25:41 +01:00
Stefan Schmidt 3aadca5eab examples/evas-3d-frustum: Remove unused variables. 2015-01-09 18:25:41 +01:00
Stefan Schmidt 45accd543e 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 53e8731a23 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 dc9644428c Evas examples: Fix command line in evas-map-aa.c 2015-01-07 17:50:33 +09:00
Dmytro Dadyka 7afd085306 [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 c2a7a73266 evas/examples: do build evas_3d_shadows 2015-01-07 12:04:21 +09:00
Dmytro Dadyka 821747894e [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 74e90e9884 allow C++ user create new classes inheriting from Eolian generated Classes 2015-01-05 15:52:27 -02:00
Vitor Sousa d779be68e6 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 5239214a63 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 d2fd0049b6 gitignore: don't track generated file. 2014-12-23 22:37:23 +01:00
Cedric BAIL 1a07e1423d autotools: build new evas_3d_mmap examples. 2014-12-23 22:36:36 +01:00
Bogdan Devichev 5aecd48ac7 evas: make Evas 3d mesh is inherited from Efl.File (functions file_set and save) 2014-12-23 21:20:21 +01:00
Bogdan Devichev 0a2e9903e9 evas: better example of _mmap_set and resources for it are added. 2014-12-23 21:20:21 +01:00
Bogdan Devichev e727ba5aef evas: a _mmap version of the file_set is added. 2014-12-23 21:20:21 +01:00
Bogdan Devichev 5b8d4bd6cb evas: test cases are changed according to changes of API in step 4. Specific logic in obj_saver is removed for standardization of API. 2014-12-23 21:16:19 +01:00
Bogdan Devichev ca12cab774 evas: Evas_3D_Mesh_File_Type sank into oblivion. Changing entry point to model_save_load. Changing API in examples. 2014-12-23 21:16:07 +01:00
Srivardhan Hebbar 919a16d880 eina: add an example to demonstrate different eina insert and sort functions.
Summary:
While going through eina for understanding, wrote  a program to understand
he differences between different eina inarray functions. Thought, this might
be useful for others too, so adding the same.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-22 15:09:59 +01:00
Daniel Juyung Seo 4ecb9d65ca eo: Fix example build problem with DSO.
/usr/bin/ld: isa/eo_isa_interface.o: undefined reference to symbol 'eina_main_loop_is'
/usr/bin/ld: note: 'eina_main_loop_is' is defined in DSO /home//seoz/efl/git/usrcore//binefl//ldsrc:/ libsimple//einasimple_interface.o/:. libsundefined/ libeina.so.1reference  soto  trysymbol  adding' eina_main_loop_isit'
to/ usrthe/ binlinker/ ldcommand:  linenote
2014-12-17 16:59:27 +09:00
Cedric BAIL fa6e4a8182 .gitignore: ignore generated files. 2014-12-12 03:48:32 +01:00
ChunEon Park 815c0f8673 evas/examples: fix warnings.
removed unused.
2014-12-04 19:47:41 +09:00
ChunEon Park 4c093dfa26 evas/examples: fix build break
add dependency libefl to call efl_file_set().
2014-12-04 19:44:00 +09:00
Dmytro Dadyka 7232f5b8b3 evas: Evas_3D - add mesh blending mode.
Reviewers: Hermet, raster, cedric

Subscribers: Oleksander, cedric

@feature

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-01 08:09:29 +01:00
Oleksandr Shcherbina 90f5fbab87 evas: Evas_3D - example which show frustum culing feature
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-01 06:27:40 +01:00
ChunEon Park d87debb492 evas/example - fix wrong image size. 2014-11-26 19:18:57 +09:00
ChunEon Park ab885633b4 evas/examples: add map anti aliasing example. 2014-11-26 19:12:09 +09:00
Jason Gerecke cb00aeafe3 Expose device (e.g. pen) axis information to applications
Summary:
This patch set adds the necessary code to expose device axis state to applications. This was primarily written with graphics tablets in mind, which -- in addition to acting like a mouse -- also provide information about pen pressure, tilt, etc. Other devices could potentially benefit from this API as well: touchscreens, joysticks, knob controllers, "spaceballs", etc.

Whenever an update to the device state is recieved, an "Axis update" event is synthesized. This event contains the updated information, typically scaled and normalized to a particular logical range (e.g. zero to one for pressure, -pi to pi radians for angles, etc.). Information about the tool which generated the event is also stored so that applications can disambiguate events from multiple devices (or in the case of multitouch screens, individual fingers).

This API is only wired up for use with X11 at the moment. Support for other backends (e.g. Wayland) should be easy to add for those familiar them.

**Note**: The following is a list of changes from the "v2" patches originally sent to the mailinglist

//Define and implement new Ecore_Event_Axis_Update events//
 * Harcode axis labels instead of including xserver-properties.h
 * Use C89-style comments
 * Use doxygen comments
 * Update comment text to note axes with unbounded/undefined ranges/units
 * Create "Ecore_Axis" and "Ecore_Axis_Label" typedefs
 * Reference typedef'd instead of raw types
 * Adjust how we count through valuators to support tilt/az
 * Add support for tilt and azimuth
 * Tweak memory management in case number of valuators differ
 * Expand TWIST axis normalization to declared range
 * Only normalize TWIST axis if resolution == 1 (wacom bug)
 * Cache label atoms on first use to minimize round-trips

//Implement EVAS_CALLBACK_AXIS_UPDATE event and friends//
 * Update to doxygen comments
 * Update comment text to note axes with unbounded/undefined ranges/units
 * Typedef 'Evas_Axis_Label', 'Evas_Axis'
 * Move typedef for 'Evas_Event_Axis_Update'
 * Reference typedef'd instead of raw types

//Wire the Ecore and Evas implementations of axis update events together//
 * Expose ecore_event_evas_axis_update in Ecore_Input_Evas.h
 * Move ecore_event_evas_axis_update to more logical position

//DEBUG: Add axis update logging to evas-multi-touch.c//
 * Removed from patch set

//Make evas-multi-touch demo use new axis functionality//
 * Have pressure adjust rectangle brightness instead of size
 * Use more available axis data when rendering rectangle (azimuth, tilt, twist)

Test Plan: The evas-multi-touch demo was updated to support axis update events. A graphics tablet was then used to verify that the pressure, azimuth, tilt, and twist data was coming through correctly.

Reviewers: cedric, raster

Subscribers: cedric

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

Conflicts:
	src/lib/ecore_input/Ecore_Input.h

Carsten Haitzler -

** fixed forward enum typedefs (make things unhappy)
** fixed conflict above
** fixed wrong param type for _evas_canvas_event_feed_axis_update()
** fixed @sinces to be 1.13
** fixed formatting/indeting
** fixed order of operation reliance in if's with ()'s to be clear
** fixed functions to be static that should have been
2014-11-25 12:43:15 +09:00
Stefan Schmidt efa45f8d5f examples/evas: Ignore evas_3d_ply example binary 2014-11-21 11:48:59 +01:00
Stefan Schmidt b1a247ca23 examples/elocation: Shutup some unused parameter warnings 2014-11-17 16:51:55 +01:00
Stefan Schmidt 3d5fe8be21 examples/evas-3d-shooter: Rename varibales to avopid shadowing
Scene is used as local variable in a lot places so we rename the global
scene here.
2014-11-17 16:47:15 +01:00
Bogdan Devichev a3438255cb evas: Evas_3D - add .ply export/import.
Summary:
.ply format is important for relation blender and EFl, because in blender exist only two mesh export API: bpy.ops.import_mesh.ply and bpy.ops.import_mesh.stl. One of them is necessary for .edc 3D generator. Which I writing now.
Sorry, it isn't like image loader. Refactoring of import/export will be soon.

Reviewers: Oleksander, artem.popov, Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-11-14 07:11:15 +01:00
Stefan Schmidt 69c3684463 examples/elocation: Add example makefile for elocation
To make the example worthwhile to run alone add a basic makefile for the
example like we do for others.
2014-11-11 11:10:12 +01:00
Stefan Schmidt 7ac1150742 examples/elocation: Add gitignore file for generated elocation examples 2014-11-11 11:08:58 +01:00
Stefan Schmidt 2fbcca50f7 elocation: Add example for using the elocation API
Basic example to show API usage.
2014-11-11 11:03:23 +01:00
Stefan Schmidt 1fdf739ddc examples/eldbus: Initialize all description members
Better to initialize all members here in the example.
2014-11-07 15:05:46 +01:00
Stefan Schmidt fdd256cb3b examples/eldbus: Make sure Eldbus_Service_Interface_Desc is initialized for all members
The property_set callback might be automatically set to NULL here but making it
explicit avoids confusion on how many members this description has.
2014-11-07 14:51:15 +01:00
Stefan Schmidt ed48b95048 examples/eldebus: Unregister service interface on shutdown.
As we use this as an example for devlopers we better also handle the
shutdown case cleanly.
2014-11-07 14:48:18 +01:00
Tom Hacohen 260b2e016a Eo composite: Fix composite object functions to be eo functions.
For some reason, they were normal functions instead of eo functions,
which makes them harder to bind, less safe, and just wrong.
This commit fixes that.
2014-10-21 12:37:00 +01:00
Daniel Zaoui 79c6ceb332 3D Warnings-- 2014-10-21 08:46:23 +03:00
Shinwoo Kim 9112c9e70f [example][evas] add error message, you cannot use this example without the image. 2014-10-21 02:12:25 +09:00
Daniel Kolesa c018955a96 elua: remove testing elementary bindings 2014-10-10 13:04:35 +01:00
Cedric BAIL b348176f20 gitignore: let's ignore some more generated files. 2014-10-08 17:10:28 +02:00
Cedric BAIL 281c6ca162 evas: let's fix all Tasn borkage. 2014-10-08 17:10:28 +02:00