Classes | |
| struct | C4DLibrary |
Macros | |
| #define | LIBOFFSET(s, m) |
Functions | |
| Bool | InstallLibrary (Int32 id, C4DLibrary *lib, Int32 version, Int32 size) |
| Bool | UninstallLibrary (C4DLibrary *lib, Int32 version, Int32 size) |
| C4DLibrary * | CheckLib (Int32 id, Int offset, C4DLibrary **store) |
| Bool | IsLibraryInstalled (Int32 id) |
| #define LIBOFFSET | ( | s, | |
| m | |||
| ) |
Returns the offset of member m within the struct s.
| [in] | s | The struct name, for example MyLib. |
| [in] | m | The member name, for example MyFunction. |
| Bool InstallLibrary | ( | Int32 | id, |
| C4DLibrary * | lib, | ||
| Int32 | version, | ||
| Int32 | size | ||
| ) |
Registers a library with Cinema 4D.
| [in] | id | A unique plugin ID. Must be obtained from http://www.plugincafe.com |
| [in] | lib | The library structure to register. The caller owns the pointed structure. |
| [in] | version | The library version. |
| [in] | size | The size of the structure passed to lib. |
| Bool UninstallLibrary | ( | C4DLibrary * | lib, |
| Int32 | version, | ||
| Int32 | size | ||
| ) |
Unregisters a library with Cinema 4D.
| [in] | lib | The library structure to unregister. The caller owns the pointed structure. |
| [in] | version | The library version. |
| [in] | size | The size of the structure passed to lib. |
| C4DLibrary* CheckLib | ( | Int32 | id, |
| Int | offset, | ||
| C4DLibrary ** | store | ||
| ) |
Retrieves a pointer to a library if it is installed.
| [in] | id | The library plugin ID. |
| [in] | offset | Pass LIBOFFSET(LIBRARY_CLASS, MEMBER_NAME), where LIBRARY_CLASS is a struct derived from C4DLibrary and MEMBER_NAME is a member to access.Example: LIBOFFSET(MyLib, MyFunction) |
| [in] | store | Pass a pointer to a global pointer that can be used as cache for the library address. CheckLib() will then use this address instead of looking it up each time. |