HoverRace  2.0
FreeElementBaseRenderer.h
Go to the documentation of this file.
1 // FreeElementRendererBase.h
2 //
3 //
4 // Copyright (c) 1995-1998 - Richard Langlois and Grokksoft Inc.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 //
22 
23 //
24 // The class defined in this file can be used as a base class for
25 // free elements
26 //
27 //
28 
29 #pragma once
30 
31 #include "../VideoServices/Viewport3D.h"
32 #include "../Util/DllObjectFactory.h"
33 #include "ResourceLib.h"
34 
35 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
36 # ifdef MR_ENGINE
37 # define MR_DllDeclare __declspec( dllexport )
38 # else
39 # define MR_DllDeclare __declspec( dllimport )
40 # endif
41 #else
42 # define MR_DllDeclare
43 #endif
44 
45 namespace HoverRace {
46 namespace ObjFacTools {
47 
49 {
51  protected:
52  const ResActor *mActor;
55 
56  public:
59 
60  // Rendering stuff
61  MR_DllDeclare void Render(VideoServices::Viewport3D * pDest, const MR_3DCoordinate & pPosition, MR_Angle pOrientation);
62 
63 };
64 
65 } // namespace ObjFacTools
66 } // namespace HoverRace
67 
68 #undef MR_DllDeclare
Unique identifier for a Factory Object.
Definition: DllObjectFactory.h:54
const ResActor * mActor
Definition: FreeElementBaseRenderer.h:52
MR_DllDeclare FreeElementBaseRenderer(const Util::ObjectFromFactoryId &pId)
Definition: FreeElementBaseRenderer.cpp:27
int mCurrentFrame
Definition: FreeElementBaseRenderer.h:54
int mCurrentSequence
Definition: FreeElementBaseRenderer.h:53
Definition: Viewport3D.h:53
Definition: WorldCoordinates.h:75
Definition: FreeElementBaseRenderer.h:48
MR_Int16 MR_Angle
Definition: WorldCoordinates.h:96
MR_DllDeclare void Render(VideoServices::Viewport3D *pDest, const MR_3DCoordinate &pPosition, MR_Angle pOrientation)
Definition: FreeElementBaseRenderer.cpp:41
#define MR_DllDeclare
Definition: FreeElementBaseRenderer.h:42
Util::ObjectFromFactory SUPER
Definition: FreeElementBaseRenderer.h:50
Definition: ResActor.h:52
Base class for object created with a Dll Factory.
Definition: DllObjectFactory.h:86
MR_DllDeclare ~FreeElementBaseRenderer()
Definition: FreeElementBaseRenderer.cpp:37
Definition: Announcement.h:24