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.
> 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.
--
Cedric BAIL
------------------------------------------------------------------------------
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