00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _TOOLBAG_
00019 #define _TOOLBAG_
00020
00021 #include <string>
00022 #include <utility>
00023
00024 #include "util/Colour.h"
00025 #include "util/StringOps.h"
00026 #include "util/Rect.h"
00027 #include "util/Vector2.h"
00028
00029 enum AUDIOFILETYPE;
00030 enum RESFILETYPE;
00031
00032 Vector2 GetPixelCoordinate(const std::pair<int, int>& resolution, const float fXCoord, const float fYCoord);
00033 AUDIOFILETYPE GetAudioFileTypeFromExt(std::string filePath);
00034 RESFILETYPE GetResourceFileTypeFromExt(std::string filePath);
00035 std::string GetFileExtension(std::string& filePath);
00036 void ColourFromString(const std::string& str, Colour & c);
00037 void VectorFromString(const std::string& str, Vector2 & v);
00038 void RectangleFromString(const std::string& str, Rect & r);
00039
00040 #endif