Changeset 150
- Timestamp:
- 09/03/10 16:08:16 (17 months ago)
- Location:
- cafu/trunk
- Files:
-
- 6 modified
-
Ca3DE/Cafu.rc (modified) (1 diff)
-
CaWE/CaWE.rc (modified) (1 diff)
-
Libs/Fonts/Font.cpp (modified) (1 diff)
-
Libs/PlatformAux.cpp (modified) (3 diffs)
-
SConscript (modified) (2 diffs)
-
SConstruct (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/Ca3DE/Cafu.rc
r36 r150 39 39 BEGIN 40 40 VALUE "CompanyName", "Carsten Fuchs Software" 41 VALUE "FileDescription", " The Cafu Engine executable"41 VALUE "FileDescription", "Cafu Engine" 42 42 VALUE "FileVersion", "1.0.0.0" 43 43 VALUE "InternalName", "Cafu" -
cafu/trunk/CaWE/CaWE.rc
r36 r150 39 39 BEGIN 40 40 VALUE "CompanyName", "Carsten Fuchs Software" 41 VALUE "FileDescription", " The Cafu World Editor application"41 VALUE "FileDescription", "CaWE - Cafu World Editor" 42 42 VALUE "FileVersion", "1.0.0.0" 43 43 VALUE "InternalName", "CaWE" -
cafu/trunk/Libs/Fonts/Font.cpp
r144 r150 98 98 const float Size =16.0/256.0; 99 99 100 TextMesh.Vertices[4*c+0].SetOrigin( 0+c*10, 0); TextMesh.Vertices[4*c+0].SetTextureCoord(CoordX , CoordY ); 101 TextMesh.Vertices[4*c+1].SetOrigin(16+c*10, 0); TextMesh.Vertices[4*c+1].SetTextureCoord(CoordX+Size, CoordY ); 102 TextMesh.Vertices[4*c+2].SetOrigin(16+c*10, 16); TextMesh.Vertices[4*c+2].SetTextureCoord(CoordX+Size, CoordY+Size); 103 TextMesh.Vertices[4*c+3].SetOrigin( 0+c*10, 16); TextMesh.Vertices[4*c+3].SetTextureCoord(CoordX , CoordY+Size); 100 // Under the LLP64 data model, the 64-bit Windows compilers warn that the conversion from 101 // size_t to unsigned long and size_t to double loses data, thus cast c to unsigned int here. 102 const unsigned int i=(unsigned int)c; 103 104 TextMesh.Vertices[4*i+0].SetOrigin( 0+i*10, 0); TextMesh.Vertices[4*i+0].SetTextureCoord(CoordX , CoordY ); 105 TextMesh.Vertices[4*i+1].SetOrigin(16+i*10, 0); TextMesh.Vertices[4*i+1].SetTextureCoord(CoordX+Size, CoordY ); 106 TextMesh.Vertices[4*i+2].SetOrigin(16+i*10, 16); TextMesh.Vertices[4*i+2].SetTextureCoord(CoordX+Size, CoordY+Size); 107 TextMesh.Vertices[4*i+3].SetOrigin( 0+i*10, 16); TextMesh.Vertices[4*i+3].SetTextureCoord(CoordX , CoordY+Size); 104 108 } 105 109 -
cafu/trunk/Libs/PlatformAux.cpp
r149 r150 182 182 typedef MatSys::RendererI* (__stdcall *GetRendererT)(cf::ConsoleI* Console_, cf::FileSys::FileManI* FileMan_); 183 183 184 #if def _WIN32184 #if defined(_WIN32) && !defined(_WIN64) 185 185 GetRendererT GetRendererFunc=(GetRendererT)GetProcAddress(OutRendererDLL, "_GetRenderer@8"); 186 186 #else … … 279 279 typedef MatSys::TextureMapManagerI* (__stdcall *GetTMMT)(); 280 280 281 #if def _WIN32281 #if defined(_WIN32) && !defined(_WIN64) 282 282 GetTMMT GetTMM=(GetTMMT)GetProcAddress(RendererDLL, "_GetTextureMapManager@0"); 283 283 #else … … 308 308 typedef SoundSysI* (__stdcall *GetSoundSys)(cf::ConsoleI* Console_, cf::FileSys::FileManI* FileMan_); 309 309 310 #if def _WIN32310 #if defined(_WIN32) && !defined(_WIN64) 311 311 GetSoundSys GetSoundSysFunc=(GetSoundSys)GetProcAddress(OutSoundSysDLL, "_GetSoundSys@8"); 312 312 #else -
cafu/trunk/SConscript
r149 r150 63 63 wxPath="#/ExtLibs/wxWidgets"; 64 64 65 wxEnv.Append(CPPPATH=[wxPath+'/include'])66 wxEnv.Append(LIBS=Split("advapi32 comctl32 comdlg32 gdi32 ole32 oleaut32 opengl32 rpcrt4 shell32 user32 winspool wsock32"))67 68 65 # TODO: Move this into the SConstruct file (including the wx include path above). 69 66 # Note that we only (want to) determine the right library path matching the used compiler here. … … 86 83 wxEnv.Append(CPPPATH=[wxPath+LibPath+"/mswu"]) 87 84 wxEnv.Append(LIBS=Split("wxbase29u wxbase29u_net wxjpeg wxmsw29u_adv wxmsw29u_core wxmsw29u_gl wxmsw29u_aui wxmsw29u_propgrid wxregexu")) 85 86 wxEnv.Append(CPPPATH=[wxPath+'/include']) # This must be appended *after* the LibPath-specific paths. 87 wxEnv.Append(LIBS=Split("advapi32 comctl32 comdlg32 gdi32 ole32 oleaut32 opengl32 rpcrt4 shell32 user32 winspool wsock32")) 88 88 89 89 elif sys.platform=="linux2": -
cafu/trunk/SConstruct
r140 r150 265 265 # debug builds are available (i.e. the code below fails if neither "d" nor "r" is in BVs). 266 266 if sys.platform=="win32": 267 envRelease.Install(".", ["#/ExtLibs/Cg/bin/cg.dll", "#/ExtLibs/Cg/bin/cgGL.dll"]); 268 envRelease.Install(".", ["#/ExtLibs/fmod/api/fmod.dll"]); 267 if envCommon["TARGET_ARCH"]=="x86": 268 envRelease.Install(".", ["#/ExtLibs/Cg/bin/cg.dll", "#/ExtLibs/Cg/bin/cgGL.dll"]); 269 envRelease.Install(".", ["#/ExtLibs/fmod/api/fmod.dll"]); 270 else: 271 envRelease.Install(".", ["#/ExtLibs/Cg/bin.x64/cg.dll", "#/ExtLibs/Cg/bin.x64/cgGL.dll"]); 272 269 273 envRelease.Install(".", ["#/ExtLibs/openal-win/OpenAL32.dll", "#/ExtLibs/openal-win/wrap_oal.dll"]); 270 274
