On 3 September 2013 15:26, Cedric BAIL <[email protected]> wrote:
> Hello,
>
> On Tue, Sep 3, 2013 at 7:04 AM, Christophe Sadoine <[email protected]> wrote:
>> I have some questions concerning eet :)
>>
>> 1) I have a struct like this:
>>
>> struct Vec3{
>> double x;
>> double y;
>> double ;
>> }
>>
>> struct Object {
>> Vec3 position;
>> Vec3 rotation;
>> }
>>
>> I want to serialize Object.
>>
>> I have an eet descriptor for Vec3 that I want to use but
>> EET_DATA_DESCRIPTOR_ADD_SUB takes a pointer, right?
>> I want to avoid using EET_DATA_DESCRIPTOR_ADD_BASIC with position.x,
>> position.y, position.z and use the eet descriptor for vec3.
>> Is it possible to handle this use case?
>
> Nop, use macro. I agree it would be nice to have such a feature.
Then is it ok to introduce something like:
EET_DATA_DESCRIPTOR_ADD_SUB_NESTED and EET_G_UNKNOWN_NESTED?
>> 2)
>> I have:
>>
>> struct Entity{
>> int id;
>> }
>>
>> struct Camera{
>> Entity* target;
>> }
>>
>> In this case, when I serialize Camera, I want to save a reference to
>> the target like its id in my application.
>> I guess that would involve calling a function that gets the id...
>>
>> Is it something that stays in the scope of eet or I'd better make my own
>> stuff?
>
> For the moment, it is outside of eet scope.
This kind of feature could be approved or it is better is it stays
outside of eet?
Something like:
EET_DATA_DESCRIPTOR_ADD_BASIC_FUNC(edd, struct_type, name, member,
type, func_get, func_set, func_data)
--
http://indefini.org
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel