convert line ends
[canaan.git] / prj / cam / src / render / meshatt.h
blob9e7189cdbf5039f4677abe053166c15b38d75cfa
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 // $Header: r:/t2repos/thief2/src/render/meshatt.h,v 1.3 1998/05/22 19:32:06 dc Exp $
7 #pragma once
8 #ifndef _MESHATT_H_
9 #define _MESHATT_H_
11 /* --<<= --/-/-/-/-/-/-/ <<< ((( ((( /\ ))) ))) >>> \-\-\-\-\-\-\-- =>>-- *\
12 meshatt.h
13 attaching things to mesh objects--interface/property business
14 \* --<<= --\-\-\-\-\-\-\ <<< ((( ((( \/ ))) ))) >>> /-/-/-/-/-/-/-- =>>-- */
16 #include <mm.h>
17 #include <propdef.h>
18 #include <meshatts.h>
20 #undef INTERFACE
21 #define INTERFACE IMeshAttachProperty
22 DECLARE_PROPERTY_INTERFACE(IMeshAttachProperty)
24 DECLARE_UNKNOWN_PURE();
25 DECLARE_PROPERTY_PURE();
26 DECLARE_PROPERTY_ACCESSORS(sMeshAttach*);
29 #define PROP_MESH_ATTACH_DATA_NAME "MeshAttach"
31 // init the property itself and such
32 EXTERN BOOL MeshAttachPropInit(void);
34 // call this to say "im about to render a mesh model, check attaches"
35 EXTERN mms_custom_data *MeshAttachRenderSetup(ObjID obj, mms_model *pModel, uchar *clut);
37 // @TODO: What else do we want in this interface?
38 EXTERN BOOL ObjMeshAttachGet(ObjID obj, sMeshAttach **ppAttach);
39 EXTERN BOOL ObjMeshAttachSet(ObjID obj, sMeshAttach *pAttach);
41 // attach and remove from a mesh object... attached_obj
42 // is the objid from the meshattachinstance
43 EXTERN BOOL AttachObjToMeshObj(ObjID mesh_obj, sMeshAttachInstance *mData);
44 EXTERN BOOL RemoveObjFromMeshObj(ObjID mesh_obj, ObjID attached_obj);
47 #endif // ~_MESHATT_H_