3DSCON2.C File Reference

Go to the source code of this file.

Defines

#define MODULE_SAPC
#define _DSCRUCT_SUB   1
#define DOS386
#define _X__FAR
#define PI   3.1415926
#define DEFAULT_SCALE   (1024.0*8.0*2.0)

Typedefs

typedef struct tagEXTRAVERTEX3DS extravertex3DS

Functions

BOOL CALLBACK DlgProcScale (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
BOOL CALLBACK DlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
void UpdateProgress (FILE *)
void rescale_model (short option, FILE *outfile)
void GetActiveTextureIDs (char *matname)
void ProcessChunk3ds (FILE *outfile, chunk3ds *chunk, ushort3ds indentlevel, skel *CurrentSp)
BOOL Do3dsConvert (int argc, char **argv)

Variables

HWND dlg
HWND hWndParent
HINSTANCE hInstance
int(* X__pri )(const char *,...)
double scale_3ds
int silent_3ds
double gmax [3]
double gmin [3]
double gcentre [3]


Define Documentation

#define MODULE_SAPC

Definition at line 7 of file 3DSCON2.C.

#define _DSCRUCT_SUB   1

Definition at line 15 of file 3DSCON2.C.

#define DOS386

Definition at line 43 of file 3DSCON2.C.

#define _X__FAR

Definition at line 44 of file 3DSCON2.C.

#define PI   3.1415926

Definition at line 45 of file 3DSCON2.C.

#define DEFAULT_SCALE   (1024.0*8.0*2.0)

Definition at line 47 of file 3DSCON2.C.

Referenced by ProcessChunk3ds(), and rescale_model().


Typedef Documentation

typedef struct tagEXTRAVERTEX3DS extravertex3DS


Function Documentation

BOOL CALLBACK DlgProcScale ( HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam 
)

Definition at line 69 of file 3DSCON.C.

BOOL CALLBACK DlgProc ( HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam 
)

Definition at line 55 of file 3DSCON.C.

void UpdateProgress ( FILE *   ) 

Definition at line 120 of file 3DSCON.C.

References file_size, and hWndProgress.

Referenced by Do3dsConvert(), DxfLoad(), get_faces(), and get_vertices().

void rescale_model ( short  option,
FILE *  outfile 
)

Definition at line 173 of file 3DSCON2.C.

References DEFAULT_SCALE, DLG_SCALE, DlgProcScale(), double, gcentre, gmax, gmin, hInstance, hWndParent, MainSp, MainVp, max, scale_3ds, x, y, and z.

void GetActiveTextureIDs ( char *  matname  ) 

Definition at line 224 of file 3DSCON2.C.

References iMap, iMat, N, nImaps, and nMats.

Referenced by ProcessChunk3ds().

void ProcessChunk3ds ( FILE *  outfile,
chunk3ds *  chunk,
ushort3ds  indentlevel,
skel CurrentSp 
)

BOOL Do3dsConvert ( int  argc,
char **  argv 
)

Definition at line 1320 of file 3DSCON2.C.

References dlg, FALSE, FirstSp, gmax, gmin, Nface, ProcessChunk3ds(), and rescale_model().


Variable Documentation

HWND dlg

Definition at line 32 of file 3DSCON.C.

HWND hWndParent

Definition at line 33 of file 3DSCON.C.

HINSTANCE hInstance

Definition at line 35 of file 3DSCON.C.

int(* X__pri)(const char *,...)

double scale_3ds

Definition at line 56 of file 3DSCON2.C.

Referenced by rescale_model().

Definition at line 57 of file 3DSCON2.C.

double gmax[3]

Definition at line 58 of file 3DSCON2.C.

Referenced by Do3dsConvert(), ProcessChunk3ds(), and rescale_model().

double gmin[3]

Definition at line 58 of file 3DSCON2.C.

Referenced by Do3dsConvert(), ProcessChunk3ds(), and rescale_model().

double gcentre[3]

Definition at line 58 of file 3DSCON2.C.

Referenced by rescale_model().


Generated on Sun Apr 27 14:20:15 2014 for OpenFX by  doxygen 1.5.6