# HG changeset patch # User John Tsiombikas # Date 1384628982 -7200 # Node ID ae47239c8c0da03de92aeab6e6a9257bbe0fbae6 # Parent eb75bff2182469803c6e88e2c1d488cc6b7c6515# Parent 7bd5ebec3b6fbd4c48c5a879e32548492db0066c merged changes from windows diff -r eb75bff21824 -r ae47239c8c0d .hgignore --- a/.hgignore Sat Nov 16 21:09:16 2013 +0200 +++ b/.hgignore Sat Nov 16 21:09:42 2013 +0200 @@ -5,3 +5,6 @@ \.so\. \.so$ \.dylib$ +\.ncb$ +\.suo$ +\.user$ diff -r eb75bff21824 -r ae47239c8c0d goat3dgfx.sln --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/goat3dgfx.sln Sat Nov 16 21:09:42 2013 +0200 @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "goat3dgfx", "goat3dgfx.vcproj", "{251F8AFF-5A37-4F10-A519-C55C40E127AF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {251F8AFF-5A37-4F10-A519-C55C40E127AF}.Debug|Win32.ActiveCfg = Debug|Win32 + {251F8AFF-5A37-4F10-A519-C55C40E127AF}.Debug|Win32.Build.0 = Debug|Win32 + {251F8AFF-5A37-4F10-A519-C55C40E127AF}.Release|Win32.ActiveCfg = Release|Win32 + {251F8AFF-5A37-4F10-A519-C55C40E127AF}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff -r eb75bff21824 -r ae47239c8c0d goat3dgfx.vcproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/goat3dgfx.vcproj Sat Nov 16 21:09:42 2013 +0200 @@ -0,0 +1,368 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r eb75bff21824 -r ae47239c8c0d install.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install.bat Sat Nov 16 21:09:42 2013 +0200 @@ -0,0 +1,5 @@ +mkdir c:\usr\include\goat3dgfx +copy /Y usr\include\goat3dgfx\* c:\usr\include\goat3dgfx\ +mkdir c:\usr\lib +copy /Y usr\lib\* c:\usr\lib\ +pause diff -r eb75bff21824 -r ae47239c8c0d src/curveload.cc --- a/src/curveload.cc Sat Nov 16 21:09:16 2013 +0200 +++ b/src/curveload.cc Sat Nov 16 21:09:42 2013 +0200 @@ -1,10 +1,20 @@ #include #include -#include #include "curveload.h" #include "3dschunks.h" #include "logger.h" +#ifndef _MSC_VER +#include +#else +typedef __int8 int8_t; +typedef __int16 int16_t; +typedef __int32 int32_t; +typedef unsigned __int8 uint8_t; +typedef unsigned __int16 uint16_t; +typedef unsigned __int32 uint32_t; +#endif + static uint32_t read_counter; struct ChunkHeader { diff -r eb75bff21824 -r ae47239c8c0d src/texture.cc --- a/src/texture.cc Sat Nov 16 21:09:16 2013 +0200 +++ b/src/texture.cc Sat Nov 16 21:09:42 2013 +0200 @@ -188,7 +188,7 @@ bool Texture2D::load(const char *fname) { Image img; - if(!img.load(fname) == -1) { + if(!img.load(fname)) { error_log("failed to load 2D texture: %s\n", fname); return false; }