home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
i
/
iritsm3s.zip
/
irit
/
allocate.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-14
|
1KB
|
32 lines
/*****************************************************************************
* "Irit" - the 3d polygonal solid modeller. *
* *
* Written by: Gershon Elber Ver 0.2, Mar. 1990 *
******************************************************************************
* Definitions, visible to others, of the dynamic allocator module. *
*****************************************************************************/
#ifndef ALLOCATE_GH
#define ALLOCATE_GH
typedef enum {
ALLOC_OTHER,
ALLOC_VERTEX,
ALLOC_SURFACE,
ALLOC_CURVE,
ALLOC_POLYGON,
ALLOC_OBJECT
} AllocateStructType;
char *MyMalloc(unsigned int Size, AllocateStructType Type);
void MyFree(char *p, AllocateStructType Type);
VertexStruct *AllocVertex(ByteType Count, ByteType Tags,
PolygonStruct * PAdj, VertexStruct * Pnext);
PolygonStruct *AllocPolygon(ByteType Count, ByteType Tags,
VertexStruct * V, PolygonStruct * Pnext);
ObjectStruct *AllocObject(char *Name, IritObjectType ObjType,
ObjectStruct * Pnext);
#endif /* ALLOCATE_GH */