home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Gallery 1996 January
/
MG_0196.ISO
/
spea
/
graphiti
/
devlpmnt
/
sp3d
/
x86win
/
ap32init.c
/
ap32init.c
Wrap
C/C++ Source or Header
|
1994-04-27
|
44KB
|
596 lines
/***********************************/
/* ap32init.c */
/***********************************/
#include "windows.h"
#include "string.h"
#include "portable.h"
#include "sp.h"
#include "speawin.h"
#include "winprote.h"
HINDIR sp3d_hindir[HINDIR_NUMBER];
int sp_use_16bit = 0;
#define GET_16BIT_PROC(a) \
if ((fp=GetProcAddress(hlib32, PASS_WORD_AS_POINTER(a)))==NULL) return 0;
static HANDLE hlib32;
INT16 exit_sp3d_dll ( void )
{
int i;
if ( hlib32 < 32 ) return 0;
for ( i = 2 ; i < HINDIR_NUMBER ; i++ ) {
if ( sp3d_hindir[i] ) {
free ( sp3d_hindir[i] );
sp3d_hindir[i] = NULL;
}
}
FreeLibrary ( hlib32 );
return 1;
}
static int CheckDisplay ( void )
{
HANDLE hLib;
FARPROC fp;
hLib = LoadLibrary ( "display.drv" );
if ( hLib < 32 ) return 1;
fp = GetProcAddress ( hLib, "SPEADIRECT860" );
FreeLibrary ( hLib );
if ( fp == (FARPROC)NULL ) return 2;
return ( 0 );
}
INT16 init_sp3d_dll ( void )
{
char buf[256];
int i;
if ( CheckDisplay() == 0 ) {
hlib32 = LoadLibrary ( SPEA_DLL16 );
if ( hlib32 < 32 ) {
strcpy(buf," 'sp3d_16.dll' not loaded\n");
strcat(buf," Try to load 'sp3d_32.dll'\n");
MessageBox(NULL,buf,"Warning", MB_OK | MB_TASKMODAL);
}
else {
sp_use_16bit = 1;
init_16bit_functions() ;
}
}
if ( sp_use_16bit == 0 ) {
hlib32 = LoadLibrary ( "sp3d_32.dll" );
if ( hlib32 < 32 ) return 0;
init_32bit_functions();
}
for ( i = 2 ; i < HINDIR_NUMBER ; i++ ) {
if ( sp3d_hindir[i] == NULL ) {
strcpy(buf,"Could not allocate HANDLE :");
strcat(buf,"Out of Memory");
MessageBox(NULL,buf,"ERROR",MB_OK|MB_ICONHAND);
return 0;
}
}
return 1;
}
static int init_32bit_functions ( void )
{
FARPROC fp;
fp = GetProcAddress ( hlib32,"Win386LibEntry");
if ( fp == NULL ) return 0;
sp3d_hindir[SPFLMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPFLUSH]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSYNC]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPBOXFREE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPBOXREST]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPBOXINQ]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPBOXSAVE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPDPATT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSPATT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPFPOLY]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPIRCURS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPPOLY]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSETDOT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPGETDOT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSETFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPTEXT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCRCURS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPDRCURS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPTXTORI]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPTXTDIR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCIRCLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPOCPY]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCOPY]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPPFILL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPFILL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPARC]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPFCIRCLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVGSIZE]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVGZOOM]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVZOOM]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVGDISP]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVDISP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVGWINDOW]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVSWINDOW]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVGPOS]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVSPOS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVEINFO]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPDOT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLRT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPNOCLIP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLIP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSPLIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSHOW]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSHWPG]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSELPG]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPENFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPREMOVEFONT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSELFONT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPRESETVLU]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPGETVLU]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSETVLU]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPTRANSP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPL1STYLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPLSTYLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPOPMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPRGBBCOLOR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPBCOLOR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPIFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPICOLOR]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPIPAGE]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPINFO]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPRGBCOLOR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCOLOR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPWVECT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVECT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPEND]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPINIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPGVMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSVMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVMINFO]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPDEVINFO]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSELCARD]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPDEFFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPLDFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[COPYCLIP]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLMEM]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLFREE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLINFO]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLEXE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLDELETE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLCALL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLCLOSE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLOPEN]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3VISIBLELINES]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3GETERROR]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3LIGHTSWITCH]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3LIGHTDEF]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3LIGHTMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3LIGHTAMBIENT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3RESETSTACK]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3LOADMATRIX]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3MULTMATRIX]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3TRANSLATE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3SCALE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3ROTATE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_CHAR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3CONCATENATION]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3POPMATRIX]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3PUSHMATRIX]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3TRANSFORM]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3CLIP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3DCMAP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3PROJECTION]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3VIEW]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3MATERIALSET]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3MATERIALDEF]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3LINETYPE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3INTERIORTYPE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3FACECULL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3DEPTHCUE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3DEFDEPTHCUE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3OPACITY]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCONCAVE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3BORDERTYPE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3BFDISTINGUISH]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPANTIALIASSET]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPANTIALIASDEF]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3POLYGONLIST]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3POLYGON]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3POLYGONHOLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3POLYLINE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3ZCLEAR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3VPCLEAR]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3DATAFORMAT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3ZBUFFER]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPESCAPE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSWAPBUFFERS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPDOUBLEBUFFER]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCOLORRAMP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPFRAMECOPY]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPFRAMEDELETE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPFRAMESELECT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPFRAMECREATE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3EXIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3INIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3FLIPNORMAL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPVMOFFS]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSORG]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPINQPG]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3COLORGLOBAL]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLMASK]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPCLOPTIMIZE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUINIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUEXIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUGETERROR]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUBEGINTESS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_DWORD,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUENDTESS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUGETTESS]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUPOLYGON]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3MATRIX]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUPOLYGONHOLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPIDENTADDR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3ATTR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUTEXTURE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_PTR,INDIR_DWORD,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3TEXTUREDEF]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3TEXTURESET]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3SELECT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3GETSELECT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3SETSELVOLUME]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3CLEARNAMES]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3PUSHNAME]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3POPNAME]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3LOADNAME]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP3IMAGE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPUIMAGEIO]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SPSET]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
sp3d_hindir[SP_WIN_FLUSH]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_DWORD,INDIR_DWORD,INDIR_WORD,INDIR_DWORD,INDIR_WORD,INDIR_ENDLIST);
return 1;
}
static int init_16bit_functions ( void )
{
FARPROC fp;
GET_16BIT_PROC(SPFLMODE);
sp3d_hindir[SPFLMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPFLUSH);
sp3d_hindir[SPFLUSH]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSYNC);
sp3d_hindir[SPSYNC]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPBOXFREE);
sp3d_hindir[SPBOXFREE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPBOXREST);
sp3d_hindir[SPBOXREST]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPBOXINQ);
sp3d_hindir[SPBOXINQ]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPBOXSAVE);
sp3d_hindir[SPBOXSAVE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPDPATT);
sp3d_hindir[SPDPATT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSPATT);
sp3d_hindir[SPSPATT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPFPOLY);
sp3d_hindir[SPFPOLY]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPIRCURS);
sp3d_hindir[SPIRCURS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPPOLY);
sp3d_hindir[SPPOLY]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPSETDOT);
sp3d_hindir[SPSETDOT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPGETDOT);
sp3d_hindir[SPGETDOT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPSETFONT);
sp3d_hindir[SPSETFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPTEXT);
sp3d_hindir[SPTEXT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPCRCURS);
sp3d_hindir[SPCRCURS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPDRCURS);
sp3d_hindir[SPDRCURS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPTXTORI);
sp3d_hindir[SPTXTORI]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPTXTDIR);
sp3d_hindir[SPTXTDIR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCIRCLE);
sp3d_hindir[SPCIRCLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPOCPY);
sp3d_hindir[SPOCPY]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCOPY);
sp3d_hindir[SPCOPY]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPPFILL);
sp3d_hindir[SPPFILL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPFILL);
sp3d_hindir[SPFILL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPARC);
sp3d_hindir[SPARC]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPFCIRCLE);
sp3d_hindir[SPFCIRCLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPVGSIZE);
sp3d_hindir[SPVGSIZE]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPVGZOOM);
sp3d_hindir[SPVGZOOM]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPVZOOM);
sp3d_hindir[SPVZOOM]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPVGDISP);
sp3d_hindir[SPVGDISP]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPVDISP);
sp3d_hindir[SPVDISP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPVGWINDOW);
sp3d_hindir[SPVGWINDOW]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPVSWINDOW);
sp3d_hindir[SPVSWINDOW]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPVGPOS);
sp3d_hindir[SPVGPOS]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPVSPOS);
sp3d_hindir[SPVSPOS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPVEINFO);
sp3d_hindir[SPVEINFO]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPDOT);
sp3d_hindir[SPDOT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLRT);
sp3d_hindir[SPCLRT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLR);
sp3d_hindir[SPCLR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPNOCLIP);
sp3d_hindir[SPNOCLIP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLIP);
sp3d_hindir[SPCLIP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSPLIT);
sp3d_hindir[SPSPLIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSHOW);
sp3d_hindir[SPSHOW]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSHWPG);
sp3d_hindir[SPSHWPG]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSELPG);
sp3d_hindir[SPSELPG]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPENFONT);
sp3d_hindir[SPENFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPREMOVEFONT);
sp3d_hindir[SPREMOVEFONT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSELFONT);
sp3d_hindir[SPSELFONT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPRESETVLU);
sp3d_hindir[SPRESETVLU]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPGETVLU);
sp3d_hindir[SPGETVLU]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPSETVLU);
sp3d_hindir[SPSETVLU]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPTRANSP);
sp3d_hindir[SPTRANSP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPL1STYLE);
sp3d_hindir[SPL1STYLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPLSTYLE);
sp3d_hindir[SPLSTYLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPOPMODE);
sp3d_hindir[SPOPMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPRGBBCOLOR);
sp3d_hindir[SPRGBBCOLOR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPBCOLOR);
sp3d_hindir[SPBCOLOR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPIFONT);
sp3d_hindir[SPIFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPICOLOR);
sp3d_hindir[SPICOLOR]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPIPAGE);
sp3d_hindir[SPIPAGE]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPINFO);
sp3d_hindir[SPINFO]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPRGBCOLOR);
sp3d_hindir[SPRGBCOLOR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCOLOR);
sp3d_hindir[SPCOLOR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPWVECT);
sp3d_hindir[SPWVECT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPVECT);
sp3d_hindir[SPVECT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPEND);
sp3d_hindir[SPEND]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPINIT);
sp3d_hindir[SPINIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPGVMODE);
sp3d_hindir[SPGVMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSVMODE);
sp3d_hindir[SPSVMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPVMINFO);
sp3d_hindir[SPVMINFO]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPDEVINFO);
sp3d_hindir[SPDEVINFO]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPSELCARD);
sp3d_hindir[SPSELCARD]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPDEFFONT);
sp3d_hindir[SPDEFFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPLDFONT);
sp3d_hindir[SPLDFONT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(COPYCLIP);
sp3d_hindir[COPYCLIP]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLMEM);
sp3d_hindir[SPCLMEM]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLFREE);
sp3d_hindir[SPCLFREE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLINFO);
sp3d_hindir[SPCLINFO]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLEXE);
sp3d_hindir[SPCLEXE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLDELETE);
sp3d_hindir[SPCLDELETE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLCALL);
sp3d_hindir[SPCLCALL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLCLOSE);
sp3d_hindir[SPCLCLOSE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLOPEN);
sp3d_hindir[SPCLOPEN]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3VISIBLELINES);
sp3d_hindir[SP3VISIBLELINES]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3GETERROR);
sp3d_hindir[SP3GETERROR]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3LIGHTSWITCH);
sp3d_hindir[SP3LIGHTSWITCH]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3LIGHTDEF);
sp3d_hindir[SP3LIGHTDEF]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3LIGHTMODE);
sp3d_hindir[SP3LIGHTMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3LIGHTAMBIENT);
sp3d_hindir[SP3LIGHTAMBIENT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3RESETSTACK);
sp3d_hindir[SP3RESETSTACK]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3LOADMATRIX);
sp3d_hindir[SP3LOADMATRIX]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3MULTMATRIX);
sp3d_hindir[SP3MULTMATRIX]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3TRANSLATE);
sp3d_hindir[SP3TRANSLATE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3SCALE);
sp3d_hindir[SP3SCALE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3ROTATE);
sp3d_hindir[SP3ROTATE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_CHAR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3CONCATENATION);
sp3d_hindir[SP3CONCATENATION]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3POPMATRIX);
sp3d_hindir[SP3POPMATRIX]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3PUSHMATRIX);
sp3d_hindir[SP3PUSHMATRIX]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3TRANSFORM);
sp3d_hindir[SP3TRANSFORM]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3CLIP);
sp3d_hindir[SP3CLIP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3DCMAP);
sp3d_hindir[SP3DCMAP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3PROJECTION);
sp3d_hindir[SP3PROJECTION]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3VIEW);
sp3d_hindir[SP3VIEW]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3MATERIALSET);
sp3d_hindir[SP3MATERIALSET]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3MATERIALDEF);
sp3d_hindir[SP3MATERIALDEF]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3LINETYPE);
sp3d_hindir[SP3LINETYPE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3INTERIORTYPE);
sp3d_hindir[SP3INTERIORTYPE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3FACECULL);
sp3d_hindir[SP3FACECULL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3DEPTHCUE);
sp3d_hindir[SP3DEPTHCUE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3DEFDEPTHCUE);
sp3d_hindir[SP3DEFDEPTHCUE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3OPACITY);
sp3d_hindir[SP3OPACITY]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCONCAVE);
sp3d_hindir[SPCONCAVE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3BORDERTYPE);
sp3d_hindir[SP3BORDERTYPE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3BFDISTINGUISH);
sp3d_hindir[SP3BFDISTINGUISH]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPANTIALIASSET);
sp3d_hindir[SPANTIALIASSET]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPANTIALIASDEF);
sp3d_hindir[SPANTIALIASDEF]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3POLYGONLIST);
sp3d_hindir[SP3POLYGONLIST]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3POLYGON);
sp3d_hindir[SP3POLYGON]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3POLYGONHOLE);
sp3d_hindir[SP3POLYGONHOLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3POLYLINE);
sp3d_hindir[SP3POLYLINE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3ZCLEAR);
sp3d_hindir[SP3ZCLEAR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3VPCLEAR);
sp3d_hindir[SP3VPCLEAR]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3DATAFORMAT);
sp3d_hindir[SP3DATAFORMAT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3ZBUFFER);
sp3d_hindir[SP3ZBUFFER]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPESCAPE);
sp3d_hindir[SPESCAPE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSWAPBUFFERS);
sp3d_hindir[SPSWAPBUFFERS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPDOUBLEBUFFER);
sp3d_hindir[SPDOUBLEBUFFER]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCOLORRAMP);
sp3d_hindir[SPCOLORRAMP]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPFRAMECOPY);
sp3d_hindir[SPFRAMECOPY]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPFRAMEDELETE);
sp3d_hindir[SPFRAMEDELETE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPFRAMESELECT);
sp3d_hindir[SPFRAMESELECT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPFRAMECREATE);
sp3d_hindir[SPFRAMECREATE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3EXIT);
sp3d_hindir[SP3EXIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3INIT);
sp3d_hindir[SP3INIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3FLIPNORMAL);
sp3d_hindir[SP3FLIPNORMAL]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPVMOFFS);
sp3d_hindir[SPVMOFFS]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPSORG);
sp3d_hindir[SPSORG]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPINQPG);
sp3d_hindir[SPINQPG]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3COLORGLOBAL);
sp3d_hindir[SP3COLORGLOBAL]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLMODE);
sp3d_hindir[SPCLMODE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLMASK);
sp3d_hindir[SPCLMASK]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPCLOPTIMIZE);
sp3d_hindir[SPCLOPTIMIZE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPUINIT);
sp3d_hindir[SPUINIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPUEXIT);
sp3d_hindir[SPUEXIT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPUGETERROR);
sp3d_hindir[SPUGETERROR]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPUBEGINTESS);
sp3d_hindir[SPUBEGINTESS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_DWORD,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPUENDTESS);
sp3d_hindir[SPUENDTESS]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPUGETTESS);
sp3d_hindir[SPUGETTESS]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPUPOLYGON);
sp3d_hindir[SPUPOLYGON]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3MATRIX);
sp3d_hindir[SP3MATRIX]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPUPOLYGONHOLE);
sp3d_hindir[SPUPOLYGONHOLE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPIDENTADDR);
sp3d_hindir[SPIDENTADDR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3ATTR);
sp3d_hindir[SP3ATTR]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPUTEXTURE);
sp3d_hindir[SPUTEXTURE]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_PTR,INDIR_DWORD,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3TEXTUREDEF);
sp3d_hindir[SP3TEXTUREDEF]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SP3TEXTURESET);
sp3d_hindir[SP3TEXTURESET]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3SELECT);
sp3d_hindir[SP3SELECT]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3GETSELECT);
sp3d_hindir[SP3GETSELECT]=GetIndirectFunctionHandle (fp,INDIR_PTR,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3SETSELVOLUME);
sp3d_hindir[SP3SETSELVOLUME]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3CLEARNAMES);
sp3d_hindir[SP3CLEARNAMES]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3PUSHNAME);
sp3d_hindir[SP3PUSHNAME]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3POPNAME);
sp3d_hindir[SP3POPNAME]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3LOADNAME);
sp3d_hindir[SP3LOADNAME]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP3IMAGE);
sp3d_hindir[SP3IMAGE]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_WORD,INDIR_PTR,INDIR_ENDLIST);
GET_16BIT_PROC(SPUIMAGEIO);
sp3d_hindir[SPUIMAGEIO]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_PTR,INDIR_WORD,INDIR_ENDLIST);
GET_16BIT_PROC(SPSET);
sp3d_hindir[SPSET]=GetIndirectFunctionHandle (fp,INDIR_DWORD,INDIR_ENDLIST);
GET_16BIT_PROC(SP_WIN_FLUSH);
sp3d_hindir[SP_WIN_FLUSH]=GetIndirectFunctionHandle (fp,INDIR_WORD,INDIR_DWORD,INDIR_DWORD,INDIR_WORD,INDIR_DWORD,INDIR_ENDLIST);
return 1;
}