www.pudn.com > 球和立方体.rar > MyLink.h
/************************************************************************************* *MyLink.h *************************************************************************************** *File name: *MyLink.h *Description: *This module control data memory. *Revised History: *1.0 2003.10.18 New Creation *Designer: *Tommy.leung *Execution environment:VC++6.0 *OS:Windows 98 *References: * *Copyright(C) 2003 VOYAGER Corporation. All Rights Reserved. ***************************************************************************************/ #ifndef _ll_h_ #define _ll_h_ #include/************************************************************************************* *Graph ************************************************************************************** *Description: *This Function control all graph data. *Argument: *Global: *return: *Designer: *Tommy.Leung *Revised History: *1.0 2003.10.18 New Creation **************************************************************************************/ typedef struct Graph { int iType; double fX, fY, fZ; int iIndex; int iSelect; }GRAPHDATA; /************************************************************************************* *CubeData ************************************************************************************** *Description: *This Function control Cube size. *Argument: *Global: *return: *Designer: *Tommy.Leung *Revised History: *1.0 2003.10.18 New Creation **************************************************************************************/ typedef struct CubeData { GRAPHDATA strData; double dCubeSize; //the cube size }CUBEDATA; /************************************************************************************* *SphereData ************************************************************************************** *Description: *This Function control sphere size. *Argument: *int i *Global: *return: *Designer: *Tommy.Leung *Revised History: *1.0 2003.10.18 New Creation **************************************************************************************/ typedef struct SphereData { GRAPHDATA strData; double dSphereRadius; //ruaius of the sphere }SPHEREDATA; /************************************************************************************* *GRAPH_Node ************************************************************************************** *Description: *This Function add node. *Argument: *Global: *return: *Designer: *Tommy.Leung *Revised History: *1.0 2003.10.18 New Creation **************************************************************************************/ typedef struct GRAPH_Node { struct GRAPH_Node* next; //point to the next node char* pGraphData; }GraphNode; /************************************************************************************* *GLFileHead ************************************************************************************** *Description: *This Function add file data. *Argument: *Global: *return: *Designer: *Tim.Leung *Revised History: *1.0 2003.10.18 New Creation **************************************************************************************/ typedef struct GLFileHead { unsigned short wFile_id; unsigned long wLength; unsigned short wPermissions; unsigned short wNum_locks; }GLFILEHEAD; /************************************************************************************* *GLFile ************************************************************************************** *Description: *This Function add file head. *Argument: *Global: *return: *Designer: *Tommy.Leung *Revised History: *1.0 2003.10.18 New Creation **************************************************************************************/ typedef struct GLFile { GLFILEHEAD glFileHead; char* data; }GLFILE; #endif