Go to the source code of this file.
Defines | |
#define | MODULE_SAPC |
#define | DOS386 |
#define | _X__FAR |
#define | PI 3.1415926 |
#define | min(a, b) ( ((a) < (b)) ? (a) : (b) ) |
#define | max(a, b) ( ((a) > (b)) ? (a) : (b) ) |
#define | PLANE 0 |
#define | CYLINDER 1 |
#define | PLANE_MOZIAC 2 |
#define | CYLINDER_MOZIAC 3 |
#define | MAP_BY_VERTEX 4 |
#define | OPAQUE 0 |
#define | CLEAR 1 |
#define | GLOSS 0 |
#define | MATT 1 |
#define | INEDITOR 6 |
#define | TRIVIEW 0 |
#define | FRONTVIEW 1 |
#define | TOPVIEW 2 |
#define | RIGHTVIEW 3 |
#define | PERSPVIEW 4 |
#define | BIGWIN 0 |
#define | TRITOP 1 |
#define | TRIFRONT 2 |
#define | TRIRIGHT 3 |
#define | UNIT 32768L |
#define | UNIT2 65536L |
#define | MINUNIT 2048L |
#define | MAXUNIT 4194304L |
#define | PI2 PI/2 |
#define | DESELECTED 0 |
#define | SELECTED 1 |
#define | HIDDEN 2 |
#define | NO 0 |
#define | YES 1 |
#define | OK 1 |
#define | FAIL -1 |
#define | STATICBRUSH 0 |
#define | ANIMBRUSH 1 |
#define | BUMPBRUSH 2 |
#define | REFLBRUSH 3 |
#define | PSETBRUSH 4 |
#define | G_FILEOPENFAIL 1000 |
#define | BRUSHBIT 0x40 |
#define | SMOOTHBIT 0x80 |
#define | TILEBIT 0x20; |
#define | __RSF__ |
#define | _DOS_GETDRIVE _dos_getdrive |
#define | _DOS_SETDRIVE _dos_setdrive |
Typedefs | |
typedef double | vector [3] |
typedef long | point [3] |
typedef long | twoLongs [2] |
typedef struct MAPGLUE | mapglue |
typedef struct WIREFRAME | wireframe |
typedef struct SKELETON | skel |
typedef struct VERTEX | vertex |
typedef struct EDGE | edge |
typedef struct FACE | face |
typedef struct tagIMAGEMAP | IMAGEMAP |
typedef struct tagSHADERAXIS | SHADERAXIS |
typedef struct tagXSHADER | XSHADER |
typedef struct tagMAP3DS | MAP3DS |
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 | SaveObject (char *Filename, short status) |
void | WriteTextures (short) |
void | WriteVertices (short) |
void | WriteEdges (short) |
void | WriteFaces (short) |
void | WriteSkeleton (void) |
void | outsht (short sht) |
void | outlng (long lng) |
short | intriview (vertex _X__FAR *vp) |
void | Output_Message (short id) |
void | disinform (void) |
void | inform (char *aa) |
void | pause (short delay) |
void | DrawOldMarker (void) |
short | RequestItemSelect (short Nitems, char **ItemList, char *Message) |
void | CreateEdge1 (vertex _X__FAR *v1, vertex _X__FAR *v2, edge *ep) |
void | CreateFace (vertex _X__FAR *v1, vertex _X__FAR *v2, vertex _X__FAR *v3, short check) |
void | CreateVertex (void) |
void | CreateSkeleton (skel *at) |
void | InsertInVertexList (vertex *vj, vertex *vi) |
void | BuildEdges (void) |
void | get_material (long count, FILE *fi) |
void | get_vertices (FILE *fi) |
void | get_mapping_coords (FILE *fi) |
long | GetMap (char *mapname) |
void | get_faces (FILE *fi) |
void | get_object (long count, FILE *fi) |
void | rescale_model (short option) |
BOOL | Do3dsConvert (int argc, char **argv) |
Variables | |
HWND | dlg |
HWND | hWndParent |
HINSTANCE | hInstance |
int(* | X__pri )(const char *,...) |
short | silent_3ds = 0 |
unsigned short _cdecl | ERRORFLAG = 1 |
unsigned short _cdecl | LOADOPERATION = 0 |
unsigned short _cdecl | Xres = 640 |
unsigned short _cdecl | Yres = 480 |
unsigned short _cdecl | Xres1 = 639 |
unsigned short _cdecl | Yres1 = 479 |
unsigned short _cdecl | StringToggle = 0 |
unsigned short _cdecl | CursorToggle = 0 |
unsigned short _cdecl | HelpBarToggle = 0 |
unsigned short _cdecl | Hires1 = 0 |
unsigned short _cdecl | UNDO_ON = YES |
unsigned short _cdecl | EDIT_ACTION = NO |
unsigned short _cdecl | zoom_redraw = NO |
unsigned short _cdecl | zoom_abort = NO |
unsigned short _cdecl | WindowBox_view = 0 |
unsigned short _cdecl | icon_arrow_ids = 1 |
char * | WorkDrive |
char | ruler_name [8] = {"None "} |
double | ruler = (double)UNIT |
long | rulerx = 0 |
long | rulery = 0 |
long | rulerz = 0 |
long | lrulerx = 0 |
long | lrulery = 0 |
long | lrulerz = 0 |
long | draw_grid_on = 0 |
long | grid_on = 0 |
long | grid_size = UNIT |
long | NpointerX = 0 |
long | NpointerY = 0 |
long | NpointerZ = 0 |
long | TVpointX = (-UNIT) |
long | TVpointY = (-UNIT) |
long | TVpointZ = (-UNIT) |
long | TVsizeX = UNIT2 |
long | TVsizeY = UNIT2 |
long | TVsizeZ = UNIT2 |
wireframe | w_frame = {0,0,NULL,NULL} |
bezier_curve * | Bcurves = NULL |
axis _X__FAR | ObjectAxis |
vertex _X__FAR * | MainVp = NULL |
vertex _X__FAR * | LastToolVertex = NULL |
edge _X__FAR * | MainEp = NULL |
face _X__FAR * | MainFp = NULL |
skel _X__FAR * | MainSp = NULL |
skel _X__FAR * | LastSkelVertex = NULL |
skel _X__FAR * | FirstSp = NULL |
skel _X__FAR * | current_skeleton = NULL |
unsigned long | Nvert = 0 |
unsigned long | NvertSelect = 0 |
unsigned long | NvertDeselect = 0 |
unsigned long | NvertGlue = 0 |
unsigned long | Nface = 0 |
unsigned long | Nedge = 0 |
unsigned long | Nskel = 0 |
unsigned long | N_Bcurves = 0 |
short | SelectedBrush = -1 |
short | FontLoaded = NO |
short | ShadowFlag = NO |
short | MirrorFlag = -1 |
short | nImaps = 0 |
short | nLockediMaps = 0 |
short | nImap4 = 0 |
short | nSha = 0 |
SHADERAXIS | iSha [64] |
IMAGEMAP | iMap [64] |
XSHADER | xShaders [8] |
unsigned char _X__FAR | LocalColour [7] = {0,0,0,0,128,128,128} |
unsigned char _X__FAR _X__FAR | FaceColour [3] = {255,255,255} |
unsigned char _X__FAR _X__FAR _X__FAR | ShaderColour [3] = {128,128,128} |
long | DefaultBrilliance = 8 |
long | DefaultTransparency = 8 |
long | DefaultReflectivity = 0 |
long | DefaultTexture = 0 |
long | DefaultShiny = 0 |
long | DefaultSmoothing = 0 |
#define INEDITOR 6 |
Definition at line 148 of file 3DSCON1.C.
Referenced by _Export(), BuildPrimitive(), Create3DSfile(), CreateVRMLfile(), EraseIndicatedEdge(), EraseIndicatedVertex(), Replace_Faces(), SaveObjects(), and UnPlan().
#define HIDDEN 2 |
Definition at line 169 of file 3DSCON1.C.
Referenced by DrawModelEdges(), DrawQuickModel(), DrawRubberLines(), ExecuteHide(), ExecuteSelect(), intriview(), inview(), MakeAutoWireFrame(), SelectByHierarchy(), SelectConnected(), and SelectConnectedTo().
#define STATICBRUSH 0 |
#define ANIMBRUSH 1 |
Definition at line 176 of file 3DSCON1.C.
Referenced by BuildMapList(), EmbedMapsForMap(), and PaintMapOutline().
#define G_FILEOPENFAIL 1000 |
typedef struct MAPGLUE mapglue |
typedef struct WIREFRAME wireframe |
typedef struct SKELETON skel |
typedef struct VERTEX vertex |
typedef struct EDGE edge |
typedef struct FACE face |
typedef struct tagIMAGEMAP IMAGEMAP |
typedef struct tagSHADERAXIS SHADERAXIS |
typedef struct tagXSHADER XSHADER |
typedef struct tagMAP3DS MAP3DS |
BOOL CALLBACK DlgProcScale | ( | HWND | hwnd, | |
UINT | msg, | |||
WPARAM | wparam, | |||
LPARAM | lparam | |||
) |
BOOL CALLBACK DlgProc | ( | HWND | hwnd, | |
UINT | msg, | |||
WPARAM | wparam, | |||
LPARAM | lparam | |||
) |
void SaveObject | ( | char * | Filename, | |
short | status | |||
) |
root node only implies no skeleton
Definition at line 42 of file 3DSSAVE.C.
Referenced by Do3dsConvert(), DoDxfConvert(), and Render_View().
void WriteTextures | ( | short | ) |
static void WriteVertices | ( | short | status | ) |
Definition at line 405 of file DXFCON1.C.
References _X__FAR, MainVp, outlng(), and SELECTED.
Referenced by Save_Undo(), SaveDivided(), and SaveObject().
void WriteEdges | ( | short | short_form | ) |
Definition at line 422 of file DXFCON1.C.
References _X__FAR, MainEp, and outlng().
Referenced by Save_Undo(), SaveDivided(), SaveObject(), and SaveObjects().
void WriteFaces | ( | short | short_form | ) |
Definition at line 436 of file DXFCON1.C.
References _X__FAR, MainFp, and outlng().
Referenced by Save_Undo(), SaveDivided(), and SaveObject().
static void WriteSkeleton | ( | void | ) |
Definition at line 476 of file DXFCON1.C.
References _X__FAR, MainVp, Nskel, Nvert, outlng(), and outsht().
Referenced by Save_Undo(), and SaveObject().
static void outsht | ( | short | sht | ) |
static void outlng | ( | long | lng | ) |
Definition at line 250 of file 3DSCON1.C.
Referenced by Save_Undo(), SaveDivided(), SaveObject(), SaveObjects(), WriteEdges(), WriteFaces(), WriteSkeleton(), WriteTextures(), and WriteVertices().
short intriview | ( | vertex _X__FAR * | vp | ) |
Definition at line 256 of file 3DSCON1.C.
Referenced by DrawQuickModel(), EraseIndicatedEdge(), EraseIndicatedVertex(), ExecuteSelect(), get_closest_vertex(), GetPathList(), IdentifyCurve(), IdentifyIndicatedFace(), PickVertex(), SelectConnected(), SelectInPerspective(), SelectNurbsControlPoint(), SelectNurbsInCircle(), SelectNurbsInLasso(), SelectNurbsInRectangle(), SelectorUp(), SelectVertex(), SmoothCurve(), TurnIndicatedEdge(), UnPlan(), and WriteVertices().
void Output_Message | ( | short | id | ) |
void disinform | ( | void | ) |
void inform | ( | char * | aa | ) |
void pause | ( | short | delay | ) |
void DrawOldMarker | ( | void | ) |
short RequestItemSelect | ( | short | Nitems, | |
char ** | ItemList, | |||
char * | Message | |||
) |
Definition at line 276 of file 3DSCON1.C.
References _X__FAR, and Nedge.
Referenced by BuildEdges().
Definition at line 291 of file 3DSCON1.C.
References _X__FAR, DefaultReflectivity, DefaultShiny, DefaultSmoothing, DefaultTexture, DefaultTransparency, and Nface.
void BuildEdges | ( | void | ) |
Definition at line 719 of file 3DSCON1.C.
References CreateEdge1().
Referenced by get_faces(), and ImplicitPolygon().
void get_material | ( | long | count, | |
FILE * | fi | |||
) |
void get_vertices | ( | FILE * | fi | ) |
Definition at line 554 of file 3DSCON1.C.
References CreateVertex, and UpdateProgress().
Referenced by get_object().
void get_mapping_coords | ( | FILE * | fi | ) |
Definition at line 593 of file 3DSCON1.C.
References _X__FAR, and NvertGlue.
Referenced by get_object().
long GetMap | ( | char * | mapname | ) |
void get_faces | ( | FILE * | fi | ) |
Definition at line 644 of file 3DSCON1.C.
References BuildEdges(), CreateFace, GetMap(), InsertInVertexList(), and UpdateProgress().
Referenced by get_object().
void get_object | ( | long | count, | |
FILE * | fi | |||
) |
Definition at line 730 of file 3DSCON1.C.
References CreateSkeleton, get_faces(), get_mapping_coords(), and get_vertices().
Referenced by Do3dsConvert().
void rescale_model | ( | short | option | ) |
Definition at line 775 of file 3DSCON1.C.
References DLG_SCALE, DlgProcScale(), double, hInstance, hWndParent, MAXUNIT, Animator_SKELETON::p, and UNIT2.
Referenced by Do3dsConvert().
BOOL Do3dsConvert | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 811 of file 3DSCON1.C.
References CreateSkeleton, dlg, DlgProc(), DLGWRIT, FALSE, get_material(), get_object(), hInstance, hWndParent, MAXUNIT, N, Nedge, Nface, nLockediMaps, nSha, rescale_model(), SaveObject(), silent_3ds, TRUE, TVpointZ, TVsizeX, TVsizeZ, and UpdateProgress().
Referenced by _Convert().
HWND hWndParent |
int(* X__pri)(const char *,...) |
short silent_3ds = 0 |
unsigned short _cdecl LOADOPERATION = 0 |
unsigned short _cdecl StringToggle = 0 |
unsigned short _cdecl CursorToggle = 0 |
unsigned short _cdecl HelpBarToggle = 0 |
unsigned short _cdecl UNDO_ON = YES |
unsigned short _cdecl EDIT_ACTION = NO |
unsigned short _cdecl zoom_redraw = NO |
unsigned short _cdecl zoom_abort = NO |
Definition at line 188 of file 3DSCON1.C.
Referenced by CheckInterrupt(), DrawModel(), ReDrawQuickDisplay(), and ReDrawStageDisplay().
unsigned short _cdecl WindowBox_view = 0 |
unsigned short _cdecl icon_arrow_ids = 1 |
char ruler_name[8] = {"None "} |
Definition at line 191 of file 3DSCON1.C.
Referenced by LoadAnimationFile(), LoadObject(), SaveAnimationFile(), SaveDivided(), SaveObject(), SaveObjects(), UpdateRuler(), and WinMain().
long draw_grid_on = 0 |
Definition at line 195 of file 3DSCON1.C.
Referenced by ActivatePreferences(), AnimatorShutdown(), DesignShutdown(), DrawModel(), DrawQuickModel(), LoadPreferences(), ReDrawQuickDisplay(), and ReDrawStageDisplay().
long grid_on = 0 |
Definition at line 195 of file 3DSCON1.C.
Referenced by ActivatePreferences(), AngleKeyFrame(), AnimatorShutdown(), DesignShutdown(), LoadPreferences(), Move3dCursor(), and SelectVertex().
Definition at line 200 of file 3DSCON1.C.
Referenced by ClearWireFrame(), EraseAll(), MakeAutoWireFrame(), MakeWireFrame(), SetupStructures(), and UnMakeWireFrame().
bezier_curve* Bcurves = NULL |
Definition at line 201 of file 3DSCON1.C.
Referenced by Delete_Bcurve(), EraseAll(), MakeBezierCurve(), and RecalibrateBezier().
axis _X__FAR ObjectAxis |
Initial value:
Definition at line 203 of file 3DSCON1.C.
Referenced by DrawQuickModel(), EraseAll(), LoadObject(), and SaveObject().
vertex _X__FAR * LastToolVertex = NULL |
Definition at line 210 of file 3DSCON1.C.
Referenced by Move3dCursor(), Plot3dOff(), Plot3dOn(), Restore_Undo(), ToolDown(), ToolMove(), and ToolUp().
skel _X__FAR * LastSkelVertex = NULL |
skel _X__FAR * current_skeleton = NULL |
Definition at line 214 of file 3DSCON1.C.
Referenced by EraseAllSkeleton(), EraseSkeleton(), and HierarchyDlgProc().
unsigned long NvertSelect = 0 |
unsigned long NvertDeselect = 0 |
unsigned long NvertGlue = 0 |
Definition at line 215 of file 3DSCON1.C.
Referenced by _Xmodeler(), get_mapping_coords(), and SaveObject().
unsigned long N_Bcurves = 0 |
Definition at line 216 of file 3DSCON1.C.
Referenced by Delete_Bcurve(), EraseAll(), MakeBezierCurve(), RecalibrateAllBezier(), and SaveObject().
short SelectedBrush = -1 |
Definition at line 217 of file 3DSCON1.C.
Referenced by DisengageDesignerTool(), DrawBrush(), DrawModel(), ExecuteExternalAction(), GrabBrushPoint(), LoadInternalAction(), LockDlgProc(), PositionBrushOnOff(), PullBrushPoint(), Restore_Undo(), ToolDown(), ToolMove(), and ToolUp().
short FontLoaded = NO |
short ShadowFlag = NO |
Definition at line 217 of file 3DSCON1.C.
Referenced by EraseAll(), SaveObject(), and SaveObjects().
short MirrorFlag = -1 |
short nLockediMaps = 0 |
Definition at line 218 of file 3DSCON1.C.
Referenced by Delete_MapLock(), DeleteImageMap(), DesignStartup(), Do3dsConvert(), EraseAll(), and RecalibrateMapLocks().
short nSha = 0 |
Definition at line 218 of file 3DSCON1.C.
Referenced by Do3dsConvert(), RequestMirrorID(), and SaveObject().
SHADERAXIS iSha[64] |
Definition at line 219 of file 3DSCON1.C.
Referenced by RequestMirrorID(), SaveObject(), and SaveObjects().
unsigned char _X__FAR LocalColour[7] = {0,0,0,0,128,128,128} |
unsigned char _X__FAR _X__FAR FaceColour[3] = {255,255,255} |
Definition at line 223 of file 3DSCON1.C.
Referenced by AddSinglePrimitive(), CreateFace(), DefaultAttribsDlgProc(), DesignShutdown(), and LoadPreferences().
unsigned char _X__FAR _X__FAR _X__FAR ShaderColour[3] = {128,128,128} |
long DefaultBrilliance = 8 |
Definition at line 225 of file 3DSCON1.C.
Referenced by DesignShutdown(), LoadPreferences(), and SaveObject().
long DefaultTransparency = 8 |
long DefaultReflectivity = 0 |
Definition at line 225 of file 3DSCON1.C.
Referenced by CreateFace(), DesignShutdown(), LoadPreferences(), and SaveObject().
long DefaultTexture = 0 |
Definition at line 226 of file 3DSCON1.C.
Referenced by CreateFace(), DesignShutdown(), and LoadPreferences().
long DefaultShiny = 0 |
Definition at line 226 of file 3DSCON1.C.
Referenced by CreateFace(), DesignShutdown(), and LoadPreferences().
long DefaultSmoothing = 0 |
Definition at line 226 of file 3DSCON1.C.
Referenced by CreateFace(), DefaultAttribsDlgProc(), DesignShutdown(), and LoadPreferences().