#10 Instances

version 1
closed
9
2004-02-27
2003-03-19
No

We want to introduce multiple plugin instances without
breaking support for version 0.5
A suggestion:
Initialise is a 'global' initialise called on a DLL.
One plugin is instatiated and it has an ID of 0.
Thereafter any calls to this instance will require a 0
in the instance parameter of plugMain (currently called
reserved).
Further instances will be created when the host calls
CreateIInstance and passes in an ID (the host is
responsible for deciding the ID's)
The plugin implementation is responsible for calling
functions on each instance decided by the
instance(reserved) parameter in plugMain.
Instances are destroyed when the host calls
DestroyInstance.
Deinitialise is used to garbage collect any instances
left floating around and deallocate any memeory used to
handle instancing on the plugin side.

Discussion

  • Russell Blakeborough

    Logged In: YES
    user_id=644854

    Instancing is now in development

    A proposed instancing system has been released on the dev
    list (FF0.55)

    Calls to a new opcode 'Instantiate' with the video info
    struct return a unique ID for the plugin instance, which the
    host must keep to refer to that instance in further calls to
    the plugin.

    Russell

     
  • Russell Blakeborough

    Logged In: YES
    user_id=644854

    This feature is pretty much finished now

    FreeFrame 0.75 features full instancing, and I have tested
    this up successfully in the pascal test code.

    We need to test this in C and ideally on linux and Mac now.

    Russell

     
  • Russell Blakeborough

    • assigned_to: nobody --> vjamm
     
  • Russell Blakeborough

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks