Added Magic tool API version API.
This commit is contained in:
parent
abf6a2a1bb
commit
73b8464b75
22 changed files with 85 additions and 172 deletions
|
|
@ -143,6 +143,12 @@ would have functions whose names begin with "blur_").</p>
|
|||
Magic tools that accept colors becomes active, or the user picks a new
|
||||
color while such a tool is currently active.)
|
||||
|
||||
<li>Uint32 api_version(void)<br>
|
||||
The plugin should return an integer value representing the version of
|
||||
the Tux Paint 'Magic' tool plugin API it was built against.
|
||||
Simply return TP_MAGIC_API_VERSION, which is defined in
|
||||
"tp_magic_api.h", to satisfy this requirement.
|
||||
|
||||
<li>int init(magic_api * api)<br>
|
||||
The plugin should do any initialization here. This function is called once,
|
||||
at Tux Paint startup. Return '1' if initialization was successful,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue