# HG changeset patch # User John Tsiombikas # Date 1349564711 -10800 # Node ID 1141a325cb7393a8a7fb92d0cc12a95167cb7909 # Parent 2560a7ab024356731182ca0fd29494cef0838bc3# Parent 6a471c87f9cab82d8dab5ebb8f63bc10a65ff665 merged with visual studio crap diff -r 2560a7ab0243 -r 1141a325cb73 prototype/drawtext/drawtext_impl.h --- a/prototype/drawtext/drawtext_impl.h Sun Oct 07 02:04:00 2012 +0300 +++ b/prototype/drawtext/drawtext_impl.h Sun Oct 07 02:05:11 2012 +0300 @@ -18,6 +18,10 @@ #ifndef TEXT_IMPL_H_ #define TEXT_IMPL_H_ +#include +#include +#include + struct glyph { int code; float x, y, width, height; @@ -61,7 +65,7 @@ #define fperror(str) \ - fprintf(stderr, "%s: %s: %s\n", __func__, (str), strerror(errno)) + fprintf(stderr, "%s: %s: %s\n", __FUNCTION__, (str), strerror(errno)) int dtx_gl_init(void); diff -r 2560a7ab0243 -r 1141a325cb73 prototype/drawtext/font.c --- a/prototype/drawtext/font.c Sun Oct 07 02:04:00 2012 +0300 +++ b/prototype/drawtext/font.c Sun Oct 07 02:05:11 2012 +0300 @@ -332,7 +332,7 @@ res = sscanf(line + 1, "%d: %fx%f+%f+%f\n", &c, &xsz, &ysz, &x, &y); if(res != 5) { - fprintf(stderr, "%s: invalid glyph info line\n", __func__); + fprintf(stderr, "%s: invalid glyph info line\n", __FUNCTION__); goto err; } @@ -358,14 +358,14 @@ switch(hdr_lines) { case 0: if(0[line] != 'P' || 1[line] != '6') { - fprintf(stderr, "%s: invalid file format (magic)\n", __func__); + fprintf(stderr, "%s: invalid file format (magic)\n", __FUNCTION__); goto err; } break; case 1: if(sscanf(line, "%d %d", &gmap->xsz, &gmap->ysz) != 2) { - fprintf(stderr, "%s: invalid file format (dim)\n", __func__); + fprintf(stderr, "%s: invalid file format (dim)\n", __FUNCTION__); goto err; } break; @@ -375,7 +375,7 @@ char *endp; max_pixval = strtol(line, &endp, 10); if(endp == line) { - fprintf(stderr, "%s: invalid file format (maxval)\n", __func__); + fprintf(stderr, "%s: invalid file format (maxval)\n", __FUNCTION__); goto err; } } @@ -438,7 +438,7 @@ int res; if(!(fp = fopen(fname, "wb"))) { - fprintf(stderr, "%s: failed to open file: %s: %s\n", __func__, fname, strerror(errno)); + fprintf(stderr, "%s: failed to open file: %s: %s\n", __FUNCTION__, fname, strerror(errno)); return -1; } res = dtx_save_glyphmap_stream(fp, gmap); diff -r 2560a7ab0243 -r 1141a325cb73 prototype/prototype.sln --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/prototype/prototype.sln Sun Oct 07 02:05:11 2012 +0300 @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "prototype", "prototype.vcxproj", "{DBC203E4-17DE-4B50-9D14-85A063ABCFBF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DBC203E4-17DE-4B50-9D14-85A063ABCFBF}.Debug|Win32.ActiveCfg = Debug|Win32 + {DBC203E4-17DE-4B50-9D14-85A063ABCFBF}.Debug|Win32.Build.0 = Debug|Win32 + {DBC203E4-17DE-4B50-9D14-85A063ABCFBF}.Release|Win32.ActiveCfg = Release|Win32 + {DBC203E4-17DE-4B50-9D14-85A063ABCFBF}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff -r 2560a7ab0243 -r 1141a325cb73 prototype/prototype.vcxproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/prototype/prototype.vcxproj Sun Oct 07 02:05:11 2012 +0300 @@ -0,0 +1,177 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {DBC203E4-17DE-4B50-9D14-85A063ABCFBF} + Win32Proj + prototype + + + + Application + true + v110 + Unicode + + + Application + false + v110 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + $(SolutionDir)\vmath;$(SolutionDir)\drawtext;$(SolutionDir)\kdtree;%(AdditionalIncludeDirectories) + 4996 + + + Console + true + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;assimp.lib;glut32.lib;glew32.lib;libimago2.lib;zlib.lib;jpeglib.lib;libpng.lib;%(AdditionalDependencies) + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + $(SolutionDir)\vmath;$(SolutionDir)\drawtext;$(SolutionDir)\kdtree;%(AdditionalIncludeDirectories) + 4996 + + + Console + true + true + true + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;assimp.lib;glut32.lib;glew32.lib;libimago2.lib;zlib.lib;jpeglib.lib;libpng.lib;%(AdditionalDependencies) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r 2560a7ab0243 -r 1141a325cb73 prototype/prototype.vcxproj.filters --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/prototype/prototype.vcxproj.filters Sun Oct 07 02:05:11 2012 +0300 @@ -0,0 +1,282 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {cb48c0ab-e309-4f8f-b3c7-ba5522748dfe} + + + {b0ec2f24-37c0-4783-b242-5bb90a09f3c7} + + + {76d11503-7646-4655-80e3-e055ffbd3671} + + + {88a7a215-3123-49c8-abbc-be8b4c1477ac} + + + {a1933fec-b18b-4122-a680-4da3e97a2d88} + + + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + audio + + + audio + + + audio + + + audio + + + audio + + + audio + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\kdtree + + + libs\drawtext + + + libs\drawtext + + + libs\drawtext + + + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + audio + + + audio + + + audio + + + audio + + + audio + + + audio + + + audio + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\kdtree + + + libs\drawtext + + + libs\drawtext + + + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + libs\vmath + + + \ No newline at end of file diff -r 2560a7ab0243 -r 1141a325cb73 prototype/src/mesh.cc --- a/prototype/src/mesh.cc Sun Oct 07 02:04:00 2012 +0300 +++ b/prototype/src/mesh.cc Sun Oct 07 02:05:11 2012 +0300 @@ -38,7 +38,7 @@ bool Mesh::create(const aiScene *scn, aiMesh *aim) { if(aim->mPrimitiveTypes != aiPrimitiveType_TRIANGLE) { - fprintf(stderr, "%s: non-triangle mesh!? primtype mask: %x\n", __func__, aim->mPrimitiveTypes); + fprintf(stderr, "%s: non-triangle mesh!? primtype mask: %x\n", __FUNCTION__, aim->mPrimitiveTypes); return false; } diff -r 2560a7ab0243 -r 1141a325cb73 prototype/src/tile.h --- a/prototype/src/tile.h Sun Oct 07 02:04:00 2012 +0300 +++ b/prototype/src/tile.h Sun Oct 07 02:05:11 2012 +0300 @@ -4,7 +4,7 @@ #include #include #include -#include +#include "psys/psys.h" #include "mesh.h" #include "light.h" #include "audio/sample.h" diff -r 2560a7ab0243 -r 1141a325cb73 prototype/vmath/vmath_config.h --- a/prototype/vmath/vmath_config.h Sun Oct 07 02:04:00 2012 +0300 +++ b/prototype/vmath/vmath_config.h Sun Oct 07 02:05:11 2012 +0300 @@ -1,7 +1,7 @@ #ifndef VMATH_CONFIG_H_ #define VMATH_CONFIG_H_ -#if (__STDC_VERSION__ < 199999) +#if (__STDC_VERSION__ < 199999) && !defined(__cplusplus) #if defined(__GNUC__) || defined(_MSC_VER) #define inline __inline #else