L3DT documentation
Large 3D terrain generator

zeofunc_LoadFunc

Description

Load a Zeolite extension function from a plugin.

Function prototype

ZFUNC CExtAPI::zeofunc_LoadFunc(const char* lpFnName, long rvalVarID, ZLIST hArgListPrototype);

Arguments

Name Type Comment
lpFnName const char* A handle to a C-style string containing the name of the function as it appears in the plugin exports table.
rvalVarID long The variable type ID of the return variable when the function is called. May be VarID_void if no var is returned.
hArgListPrototype ZLIST A handle to the prototype of the argument list for the function. If null, no arguments are expected.

Return value

A null handle if an error occurred, and a valid (non-null) handle to the function otherwise.

Comments

Function name

Using zeofunc_LoadFunc, the function is loaded in the namespace given by the plugin name. For instance, if a plugin anmed “myplugin.dll” calls zeofunc_LoadFunc to load a function called “examplefunc”, the function handle can be retrieved by calling zeofunc_GetFunc with an argument of “myplugin.examplefunc”. To specify a different access name, use zeofunc_LoadFuncEx.

 
zeolite/functions/zeofunc_loadfunc.txt · Last modified: 2017/08/31 06:51 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki