mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-18 04:06:42 -04:00
split out some basic helper functions into Helpers.h .
This commit is contained in:
parent
c0e0f32c4a
commit
c890d9a480
5 changed files with 110 additions and 109 deletions
|
@ -24,6 +24,7 @@
|
|||
#include <afx.h>
|
||||
#include <memory>
|
||||
#include <array>
|
||||
#include "Helpers.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
|
@ -46,17 +47,6 @@ void ShowOptionsDialog(CIniFile& optIni);
|
|||
// repairs a trigger (sets flags correctly)
|
||||
bool RepairTrigger(CString& triggerdata);
|
||||
|
||||
// coordinate functions
|
||||
void PosToXY(const char* pos, int* X, int* Y);
|
||||
|
||||
// check whether is string is all made of digit numbers
|
||||
bool IsNumeric(const CString& str);
|
||||
|
||||
// HSV -> RGB
|
||||
void HSVToRGB(const unsigned char hsv[3], unsigned char rgb[3]);
|
||||
std::array<unsigned char, 3> HSVToRGB(float h, float s, float v);
|
||||
std::array<unsigned char, 3> HSVToRGB(const unsigned char hsv[3]);
|
||||
|
||||
void GetDrawBorder(const BYTE* data, int width, int line, int& left, int& right, unsigned int flags, BOOL* TranspInside = NULL);
|
||||
|
||||
// String conversion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue