diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-28 23:20:52 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-28 23:20:52 (GMT) |
| commit | 9a42e47eb0369ddabe752c37b98ed3662a983694 (patch) | |
| tree | 1a9fbc24e0bc17d41152657e2aa7606f818a52fb /src/Format.h | |
| parent | 261c654ca0978cdc39c9670050c307fe0065fac1 (diff) | |
| download | powder-9a42e47eb0369ddabe752c37b98ed3662a983694.zip powder-9a42e47eb0369ddabe752c37b98ed3662a983694.tar.gz | |
Move old Lua API into another file, make the old drawin API have the old position quirk for rects, new graphics (gfx) api with drawRect, fillRect, drawTect, drawLine and textSize functions.
Diffstat (limited to 'src/Format.h')
| -rw-r--r-- | src/Format.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Format.h b/src/Format.h index 91f2a7e..c82f523 100644 --- a/src/Format.h +++ b/src/Format.h @@ -7,6 +7,8 @@ class VideoBuffer; namespace format { + static char hex[] = "0123456789ABCDEF"; + template <typename T> std::string NumberToString(T number) { std::stringstream ss; @@ -21,6 +23,7 @@ namespace format return (ss >> number)?number:0; } + std::string URLEncode(std::string value); std::string UnixtimeToDate(time_t unixtime, std::string dateFomat = "%d %b %Y"); std::string UnixtimeToDateMini(time_t unixtime); std::vector<char> VideoBufferToPNG(const VideoBuffer & vidBuf); |
