HoverRace  2.0
ColorTools.h
Go to the documentation of this file.
1 
2 // ColorTools.h
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 #pragma once
24 
25 #include "../Util/MR_Types.h"
26 
27 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
28 # ifdef MR_ENGINE
29 # define MR_DllDeclare __declspec( dllexport )
30 # else
31 # define MR_DllDeclare __declspec( dllimport )
32 # endif
33 #else
34 # define MR_DllDeclare
35 #endif
36 
37 namespace HoverRace {
38 namespace ColorTools {
39 
40 MR_DllDeclare void Init();
41 
42 MR_DllDeclare MR_UInt8 GetNearest(double pRed, double pGreen, double pBlue);
43 
45  double &pRed, double &pGreen, double &pBlue);
46 
48  int &pRed, int &pGreen, int &pBlue);
49 
51 
52 } // namespace ColorTools
53 } // namespace HoverRace
54 
55 #undef MR_DllDeclare
MR_DllDeclare void GetIntComponents(MR_UInt8 pColor, int &pRed, int &pGreen, int &pBlue)
Definition: ColorTools.cpp:277
MR_DllDeclare void Init()
Definition: ColorTools.cpp:142
MR_DllDeclare void GetComponents(MR_UInt8 pColor, double &pRed, double &pGreen, double &pBlue)
Definition: ColorTools.cpp:270
#define MR_DllDeclare
Definition: ColorTools.h:34
MR_DllDeclare int GetNbColors()
Definition: ColorTools.cpp:305
MR_DllDeclare MR_UInt8 GetNearest(double pRed, double pGreen, double pBlue)
Definition: ColorTools.cpp:238
Definition: Announcement.h:24
uint8_t MR_UInt8
Definition: MR_Types.h:40