diff options
author | Kent Mein <mein@cs.umn.edu> | 2006-06-17 00:00:00 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2006-06-17 00:00:00 +0400 |
commit | 8918232465c742db520078b107077ecdd3cace48 (patch) | |
tree | ccbad2ffa50b8c46770998a1ff88eff3e3b8c27f /source/blender/blenpluginapi/plugin.h | |
parent | 3593d0684adcb27a037678d40dd843a4914793db (diff) |
This is a modified version of patch #4200
http://projects.blender.org/tracker/index.php?func=detail&aid=4200&group_id=9&atid=127
It adds platform depenant prefix to function calls
(extern on non windows platforms more complicated on windows)
So that windows plugins can reference functions inside of blender.
there is a small TODO still...
Make release should build the helper library required under windows and modify
how they build the plugins:
dlltool --input-def plugin.DEF --output-lib libblenerplugin.a --dllname blender.exe
and the pulgins should be made with:
gcc -c (pluginname).c
gcc -shared -o (pluginname).dll (pluginname).o libblenderplugin.a
Kent
Diffstat (limited to 'source/blender/blenpluginapi/plugin.h')
-rw-r--r-- | source/blender/blenpluginapi/plugin.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/blenpluginapi/plugin.h b/source/blender/blenpluginapi/plugin.h index 9d353cc611a..f7ffc7e7c8e 100644 --- a/source/blender/blenpluginapi/plugin.h +++ b/source/blender/blenpluginapi/plugin.h @@ -31,6 +31,7 @@ #ifndef PLUGIN_H #define PLUGIN_H +#include "externdef.h" #include "iff.h" #include "util.h" #include "floatpatch.h" @@ -87,14 +88,14 @@ void plugin_getinfo(PluginInfo *); /* *************** API functions ******************** */ /* derived from the famous Perlin noise */ -extern float hnoise(float noisesize, float x, float y, float z); +LIBEXPORT float hnoise(float noisesize, float x, float y, float z); /* the original Perlin noise */ -extern float hnoisep(float noisesize, float x, float y, float z); +LIBEXPORT float hnoisep(float noisesize, float x, float y, float z); /* soft turbulence */ -extern float turbulence(float noisesize, float x, float y, float z, int depth); +LIBEXPORT float turbulence(float noisesize, float x, float y, float z, int depth); /* hard turbulence */ -extern float turbulence1(float noisesize, float x, float y, float z, int depth); +LIBEXPORT float turbulence1(float noisesize, float x, float y, float z, int depth); #endif /* PLUGIN_H */ |