Classes |
|
struct | C4DPL_CommandLineArgs |
struct | C4DPL_EditImage |
struct | C4DPL_DeviceChange |
struct | C4DPL_NetRenderResult |
函数 |
|
Bool | PluginStart (void) |
void | PluginEnd (void) |
Bool | PluginMessage ( Int32 id, void *data) |
#define C4DPL_VERSION |
The version of Cinema 4D plugin API.
#define SetPluginPriority | ( | data, | |
i | |||
) |
Sets the priority for a plugin.
[in] | data | The message data of the priority message. |
[in] | i | The plugin priority. Build the priority from one of the base priorities: C4DPL_INIT_PRIORITY |
Bool PluginStart | ( | void | ) |
Called when a plugin is loaded from
Cinema 4D
. Think of it as the equivalent to the usual
main()
函数。
Here register all the plugin types and initialize them.
For example, the basics needed are:
void PluginEnd | ( | void | ) |
Called when the plugin is unloaded from
Cinema 4D
.
Here free the plugin registrations and any resources which are not owned or already freed by other plugins (see
PluginMessage()
).
To free complex structures from other modules see C4DPL_ENDACTIVITY.
例如:
Bool PluginMessage | ( | Int32 | id , |
void * | data | ||
) |
Called to receive plugin messages.
These can either be from
Cinema 4D
or from other plugins via
GePluginMessage()
. Here is an example:
[in] | id | The message ID. Built-in ones are: C4DPL_MESSAGES |
[in] | data | The message data. |