Commit 480f39d3 by O'Reilly Media, Inc.

Initial commit

parents
9780596000066
\ No newline at end of file
File added
File added
File added
File added
File added
File added
# Microsoft Developer Studio Project File - Name="CrashTest" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=CrashTest - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "CrashTest.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "CrashTest.mak" CFG="CrashTest - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "CrashTest - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "CrashTest - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "CrashTest - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
!ELSEIF "$(CFG)" == "CrashTest - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /FR /YX /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "CrashTest - Win32 Release"
# Name "CrashTest - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\d3dstuff.cpp
# End Source File
# Begin Source File
SOURCE=.\physics.cpp
# End Source File
# Begin Source File
SOURCE=.\winmain.cpp
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\d3dstuff.h
# End Source File
# Begin Source File
SOURCE=.\mymath.h
# End Source File
# Begin Source File
SOURCE=.\Physics.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# Begin Source File
SOURCE=..\..\Vc98\Lib\Winmm.lib
# End Source File
# Begin Source File
SOURCE=..\..\Vc98\Lib\Ddraw.lib
# End Source File
# Begin Source File
SOURCE=..\..\Vc98\Lib\Gdi32.lib
# End Source File
# Begin Source File
SOURCE=..\..\Vc98\Lib\User32.lib
# End Source File
# Begin Source File
SOURCE=..\..\Vc98\Lib\D3drm.lib
# End Source File
# End Target
# End Project
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "CrashTest"=".\CrashTest.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
File added
File added
File added
<html>
<body>
<pre>
<h1>Build Log</h1>
<h3>
--------------------Configuration: CrashTest - Win32 Debug--------------------
</h3>
<h3>Command Lines</h3>
Creating temporary file "C:\DOCUME~1\David\LOCALS~1\Temp\RSP20.tmp" with contents
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /FR"Debug/" /Fp"Debug/CrashTest.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\Program Files\Microsoft Visual Studio\My Projects\CrashTest\d3dstuff.cpp"
"C:\Program Files\Microsoft Visual Studio\My Projects\CrashTest\physics.cpp"
"C:\Program Files\Microsoft Visual Studio\My Projects\CrashTest\winmain.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\David\LOCALS~1\Temp\RSP20.tmp"
Creating temporary file "C:\DOCUME~1\David\LOCALS~1\Temp\RSP21.tmp" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/CrashTest.pdb" /debug /machine:I386 /out:"Debug/CrashTest.exe" /pdbtype:sept
".\Debug\d3dstuff.obj"
".\Debug\physics.obj"
".\Debug\winmain.obj"
"..\..\Vc98\Lib\Winmm.lib"
"..\..\Vc98\Lib\Ddraw.lib"
"..\..\Vc98\Lib\Gdi32.lib"
"..\..\Vc98\Lib\User32.lib"
"..\..\Vc98\Lib\D3drm.lib"
]
Creating command line "link.exe @C:\DOCUME~1\David\LOCALS~1\Temp\RSP21.tmp"
<h3>Output Window</h3>
Compiling...
d3dstuff.cpp
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(722) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(727) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(732) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
physics.cpp
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(722) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(727) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(732) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(666) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(666) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(667) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(667) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(670) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(670) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(671) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(671) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(676) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(677) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(680) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(681) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(697) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(697) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(698) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(698) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(702) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(703) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(1439) : warning C4101: 'd' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\crashtest\physics.cpp(1513) : warning C4101: 'd' : unreferenced local variable
winmain.cpp
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(722) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(727) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\crashtest\mymath.h(732) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
Linking...
Creating command line "bscmake.exe /nologo /o"Debug/CrashTest.bsc" ".\Debug\d3dstuff.sbr" ".\Debug\physics.sbr" ".\Debug\winmain.sbr""
Creating browse info file...
<h3>Output Window</h3>
<h3>Results</h3>
CrashTest.exe - 0 error(s), 29 warning(s)
</pre>
</body>
</html>
File added
File added
File added
This diff is collapsed. Click to expand it.
File added
# Microsoft Developer Studio Project File - Name="ClothSim" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=ClothSim - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "ClothSim.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "ClothSim.mak" CFG="ClothSim - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "ClothSim - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "ClothSim - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "ClothSim - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
!ELSEIF "$(CFG)" == "ClothSim - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /FR /YX /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "ClothSim - Win32 Release"
# Name "ClothSim - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\d3dstuff.cpp
# End Source File
# Begin Source File
SOURCE=.\physics.cpp
# End Source File
# Begin Source File
SOURCE=.\winmain.cpp
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# Begin Source File
SOURCE=..\..\..\Vc98\Lib\Winmm.lib
# End Source File
# Begin Source File
SOURCE=..\..\..\Vc98\Lib\Ddraw.lib
# End Source File
# Begin Source File
SOURCE=..\..\..\Vc98\Lib\Gdi32.lib
# End Source File
# Begin Source File
SOURCE=..\..\..\Vc98\Lib\User32.lib
# End Source File
# Begin Source File
SOURCE=..\..\..\Vc98\Lib\D3drm.lib
# End Source File
# End Target
# End Project
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "ClothSim"=".\ClothSim.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
<html>
<body>
<pre>
<h1>Build Log</h1>
<h3>
--------------------Configuration: ClothSim - Win32 Debug--------------------
</h3>
<h3>Command Lines</h3>
Creating temporary file "c:\windows\TEMP\RSP52D5.TMP" with contents
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /FR"Debug/" /Fp"Debug/ClothSim.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\Program Files\Microsoft Visual Studio\My Projects\ClothSim\ClothSim\d3dstuff.cpp"
"C:\Program Files\Microsoft Visual Studio\My Projects\ClothSim\ClothSim\physics.cpp"
"C:\Program Files\Microsoft Visual Studio\My Projects\ClothSim\ClothSim\winmain.cpp"
]
Creating command line "cl.exe @c:\windows\TEMP\RSP52D5.TMP"
Creating temporary file "c:\windows\TEMP\RSP52D6.TMP" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/ClothSim.pdb" /debug /machine:I386 /out:"Debug/ClothSim.exe" /pdbtype:sept
".\Debug\d3dstuff.obj"
".\Debug\physics.obj"
".\Debug\winmain.obj"
"..\..\..\Vc98\Lib\Winmm.lib"
"..\..\..\Vc98\Lib\Ddraw.lib"
"..\..\..\Vc98\Lib\Gdi32.lib"
"..\..\..\Vc98\Lib\User32.lib"
"..\..\..\Vc98\Lib\D3drm.lib"
]
Creating command line "link.exe @c:\windows\TEMP\RSP52D6.TMP"
<h3>Output Window</h3>
Compiling...
physics.cpp
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\physics.cpp(275) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\physics.cpp(275) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\physics.cpp(277) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\physics.cpp(277) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\physics.cpp(541) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
d3dstuff.cpp
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(493) : warning C4101: 'w' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(493) : warning C4101: 'h' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(492) : warning C4101: 'box' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(476) : warning C4101: 'builder' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(661) : warning C4101: 'w' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(661) : warning C4101: 'h' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(660) : warning C4101: 'box' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(659) : warning C4101: 'tu' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(659) : warning C4101: 'm' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(659) : warning C4101: 'tv' : unreferenced local variable
c:\program files\microsoft visual studio\my projects\clothsim\clothsim\d3dstuff.cpp(831) : warning C4305: 'argument' : truncation from 'const double' to 'float'
winmain.cpp
Linking...
Creating command line "bscmake.exe /nologo /o"Debug/ClothSim.bsc" ".\Debug\d3dstuff.sbr" ".\Debug\physics.sbr" ".\Debug\winmain.sbr""
Creating browse info file...
<h3>Output Window</h3>
<h3>Results</h3>
ClothSim.exe - 0 error(s), 16 warning(s)
</pre>
</body>
</html>
#ifndef _PHYSICS
#define _PHYSICS
#include "mymath.h"
#include <windows.h>
//------------------------------------------------------------------------//
// Notes:
//------------------------------------------------------------------------//
/*
Note: Direct3D's coordinates system is a left handed one with the z-axis pointing
into the screen, the x-axis pointing to the right and the y-axis pointing up
Units: English system,
distance --> feet
time --> seconds
mass --> slugs
force --> pounds
moment --> foot-pounds
velocity --> feet-per-second
acceleration--> feet-per-second^2
density --> slugs-per-feet^3
*/
typedef struct _Particle {
float fMass;
float fInvMass;
Vector vPosition;
Vector vVelocity;
Vector vAcceleration;
Vector vForces;
BOOL bLocked;
} Particle, *pParticle;
typedef struct _ParticleRef {
int r; // row index
int c; // column index
} ParticleRef;
typedef struct _Spring {
ParticleRef p1; // reference to connected particle #1
ParticleRef p2; // reference to connected particle #2
float k; // tensile spring constant
float d; // damping factor
float L; // rest length of spring
} Spring, *pSpring;
typedef struct _Collision {
ParticleRef p1;
Vector n;
} Collision, *pCollision;
#define CLOTHWIDTH 100
#define CLOTHHEIGHT 75
#define NUMCOLUMNS 10
#define NUMROWS 7
#define NUMVERTICES ((NUMCOLUMNS+1) * (NUMROWS+1))
#define NUMFACES ((NUMCOLUMNS*NUMROWS) * 2)
#define CLOTHMASS 100.0f
#define MASSPERFACE (CLOTHMASS/(float) NUMFACES)
#define CSTEP ((float) CLOTHWIDTH / (float) NUMCOLUMNS)
#define RSTEP ((float) CLOTHHEIGHT / (float) NUMROWS)
#define NUMSTRUCTURALSPRINGS (NUMCOLUMNS*(NUMROWS+1) + NUMROWS*(NUMCOLUMNS+1) + NUMCOLUMNS*NUMROWS*2)
#define GRAVITY -32.174
#define SPRINGTENSIONCONSTANT 500.0f
#define SPRINGSHEARCONSTANT 600.0f
#define SPRINGDAMPINGCONSTANT 2.0f
#define YOFFSET 120.0f
#define DRAGCOEFFICIENT 0.01f
#define WINDFACTOR 100
#define FLAGPOLEHEIGHT 200
#define FLAGPOLERADIUS 10
#define COLLISIONTOLERANCE 0.05f
#define KRESTITUTION 0.25f
#define FRICTIONFACTOR 0.5f
#define NOCOLLISION 0
#define COLLISION 1
#define PENETRATING -1
//------------------------------------------------------------------------//
// Function headers
//------------------------------------------------------------------------//
void Initialize(void);
void CalcForces(Particle particles[NUMROWS+1][NUMCOLUMNS+1]); // calcs total forces and moments
void StepSimulation(float dt); // step dt time in the simulation
void ReleaseLockedParticles(void);
void SetWindVector(float x, float y, float z);
void SetWindForceFactor(float f);
void UpdateClothGeometry(void);
void CopyParticles(Particle src[NUMROWS+1][NUMCOLUMNS+1], Particle dst[NUMROWS+1][NUMCOLUMNS+1]);
int CheckForCollisions(Particle p[NUMROWS+1][NUMCOLUMNS+1]);
void ResolveCollisions(Particle p[NUMROWS+1][NUMCOLUMNS+1]);
extern BOOL CreateCloth(char *ftex, unsigned int *faces, int faceCount, float *vertices, int vertexCount, BOOL makechild);
extern void UpdateCloth(unsigned int *faces, int faceCount, float *vertices, int vertexCount);
#endif
#include "d3drmwin.h"
#include <windows.h>
// C RunTime Header Files
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <d3drm.h>
#include <direct.h>
#include <d3dtypes.h>
#include "mymath.h"
// NOTE: D3D uses a left handed coordinate system.
#define RELEASE(x) if (x != NULL) {x->Release(); x = NULL;}
typedef struct _d3dInfo
{
LPDIRECT3DRM D3DRM;
LPDIRECTDRAWCLIPPER DDClipper;
LPDIRECT3DRMFRAME Scene, Camera;