# HG changeset patch # User John Tsiombikas # Date 1384601213 -7200 # Node ID 7bd5ebec3b6fbd4c48c5a879e32548492db0066c # Parent 51685f8fe859d97489ba83c4cf06bd42623e5483 fixed visual studio project files, removed the dll crap diff -r 51685f8fe859 -r 7bd5ebec3b6f goat3dgfx.sln --- a/goat3dgfx.sln Sat Nov 16 08:52:30 2013 +0200 +++ b/goat3dgfx.sln Sat Nov 16 13:26:53 2013 +0200 @@ -3,8 +3,6 @@ # Visual Studio 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "goat3dgfx", "goat3dgfx.vcproj", "{251F8AFF-5A37-4F10-A519-C55C40E127AF}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "goat3dgfx_static", "goat3dgfx_static.vcproj", "{153DAAFD-385E-44A3-8030-563AFFA70215}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -15,10 +13,6 @@ {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 - {153DAAFD-385E-44A3-8030-563AFFA70215}.Debug|Win32.ActiveCfg = Debug|Win32 - {153DAAFD-385E-44A3-8030-563AFFA70215}.Debug|Win32.Build.0 = Debug|Win32 - {153DAAFD-385E-44A3-8030-563AFFA70215}.Release|Win32.ActiveCfg = Release|Win32 - {153DAAFD-385E-44A3-8030-563AFFA70215}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff -r 51685f8fe859 -r 7bd5ebec3b6f goat3dgfx.vcproj --- a/goat3dgfx.vcproj Sat Nov 16 08:52:30 2013 +0200 +++ b/goat3dgfx.vcproj Sat Nov 16 13:26:53 2013 +0200 @@ -20,7 +20,7 @@ Name="Debug|Win32" OutputDirectory="$(SolutionDir)$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)" - ConfigurationType="2" + ConfigurationType="4" CharacterSet="1" > - - @@ -91,7 +82,8 @@ Name="Release|Win32" OutputDirectory="$(SolutionDir)$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)" - ConfigurationType="2" + ConfigurationType="4" + InheritedPropertySheets=".\goat3dgfx.vsprops" CharacterSet="1" WholeProgramOptimization="1" > @@ -120,6 +112,7 @@ UsePrecompiledHeader="0" WarningLevel="3" DebugInformationFormat="3" + DisableSpecificWarnings="4244;4996;4305" /> - - diff -r 51685f8fe859 -r 7bd5ebec3b6f goat3dgfx_static.vcproj --- a/goat3dgfx_static.vcproj Sat Nov 16 08:52:30 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,367 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 51685f8fe859 -r 7bd5ebec3b6f install.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install.bat Sat Nov 16 13:26:53 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 51685f8fe859 -r 7bd5ebec3b6f src/curveload.cc --- a/src/curveload.cc Sat Nov 16 08:52:30 2013 +0200 +++ b/src/curveload.cc Sat Nov 16 13:26:53 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 51685f8fe859 -r 7bd5ebec3b6f src/texture.cc --- a/src/texture.cc Sat Nov 16 08:52:30 2013 +0200 +++ b/src/texture.cc Sat Nov 16 13:26:53 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; }