HoverRace  2.0
Patch.h
Go to the documentation of this file.
1 // Patch.h
2 //
3 // Copyright (c) 1995-1998 - Richard Langlois and Grokksoft Inc.
4 //
5 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
6 // you may not use this file except in compliance with the License.
7 //
8 // A copy of the license should have been attached to the package from which
9 // you have taken this file. If you can not find the license you can not use
10 // this file.
11 //
12 //
13 // The author makes no representations about the suitability of
14 // this software for any purpose. It is provided "as is" "AS IS",
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16 // implied.
17 //
18 // See the License for the specific language governing permissions
19 // and limitations under the License.
20 //
21 
22 #pragma once
23 
24 #include "../Util/WorldCoordinates.h"
25 
26 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
27 # ifdef MR_ENGINE
28 # define MR_DllDeclare __declspec( dllexport )
29 # else
30 # define MR_DllDeclare __declspec( dllimport )
31 # endif
32 #else
33 # define MR_DllDeclare
34 #endif
35 
36 namespace HoverRace {
37 namespace VideoServices {
38 
40 {
41  public:
42  virtual int GetURes() const = 0;
43  virtual int GetVRes() const = 0;
44 
45  /*
46  const MR_3DCoordinate & GetNodePos(int pU, int pV) const
47  {
48  return GetNodePos(pU + pV * GetURes());
49  }
50  // More effective function
51  const MR_3DCoordinate & GetNodePos(int pIndex) const
52  {
53  return GetNodeList()[pIndex];
54  }
55  // Most effective function
56  */
57  virtual const MR_3DCoordinate *GetNodeList() const = 0;
58 
59 };
60 
61 } // namespace VideoServices
62 } // namespace HoverRace
63 
64 #undef MR_DllDeclare
Definition: WorldCoordinates.h:75
Definition: Patch.h:39
Definition: Announcement.h:24
#define MR_DllDeclare
Definition: Patch.h:33