Skip to content

Commit aab0961

Browse files
authored
R20 api
1 parent 1127a7d commit aab0961

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

source/main.cpp

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// classic API header files
2+
#include "c4d_plugin.h"
3+
#include "c4d_resource.h"
4+
5+
#include "wsPointProjector.h"
6+
#include "main.h"
7+
8+
::Bool PluginStart()
9+
{
10+
RegisterProjectorObject();
11+
ApplicationOutput("PointProjector 1.4.4"_s);
12+
return true;
13+
}
14+
15+
void PluginEnd()
16+
{
17+
// free resources
18+
}
19+
20+
::Bool PluginMessage(::Int32 id, void* data)
21+
{
22+
switch (id)
23+
{
24+
case C4DPL_INIT_SYS:
25+
{
26+
// load resources defined in the the optional "res" folder
27+
if (!g_resource.Init())
28+
return false;
29+
30+
return true;
31+
}
32+
}
33+
34+
return true;
35+
}

0 commit comments

Comments
 (0)