Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OPC_Model.h
Go to the documentation of this file.
1 /*
3  * OPCODE - Optimized Collision Detection
4  * Copyright (C) 2001 Pierre Terdiman
5  * Homepage: http://www.codercorner.com/Opcode.htm
6  */
8 
10 
16 
19 // Include Guard
20 #ifndef __OPC_MODEL_H__
21 #define __OPC_MODEL_H__
22 
23  class OPCODE_API Model : public BaseModel
24  {
25  public:
26  // Constructor/Destructor
27  Model();
28  virtual ~Model();
29 
31 
36  override(BaseModel) bool Build(const OPCODECREATE& create);
38 
39 #ifdef __MESHMERIZER_H__
40 
45  inline_ const CollisionHull* GetHull() const { return mHull; }
47 #endif // __MESHMERIZER_H__
48 
50 
54  override(BaseModel) udword GetUsedBytes() const;
56 
57  private:
58 #ifdef __MESHMERIZER_H__
59  CollisionHull* mHull;
60 #endif // __MESHMERIZER_H__
61  // Internal methods
62  void Release();
63  };
64 
65 #endif //__OPC_MODEL_H__