Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
38
rylCoder_16.02.2008_src/addons/Wrapper/AssemblyInfo.cpp
Normal file
38
rylCoder_16.02.2008_src/addons/Wrapper/AssemblyInfo.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
using namespace System;
|
||||
using namespace System::Reflection;
|
||||
using namespace System::Runtime::CompilerServices;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
using namespace System::Security::Permissions;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly:AssemblyTitleAttribute("Wrapper")];
|
||||
[assembly:AssemblyDescriptionAttribute("")];
|
||||
[assembly:AssemblyConfigurationAttribute("")];
|
||||
[assembly:AssemblyCompanyAttribute("FischR")];
|
||||
[assembly:AssemblyProductAttribute("Wrapper")];
|
||||
[assembly:AssemblyCopyrightAttribute("Copyright (c) 2007")];
|
||||
[assembly:AssemblyTrademarkAttribute("")];
|
||||
[assembly:AssemblyCultureAttribute("")];
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the value or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly:AssemblyVersionAttribute("1.0.*")];
|
||||
|
||||
[assembly:ComVisible(false)];
|
||||
|
||||
[assembly:CLSCompliantAttribute(true)];
|
||||
|
||||
[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
|
||||
1
rylCoder_16.02.2008_src/addons/Wrapper/ClassDiagram1.cd
Normal file
1
rylCoder_16.02.2008_src/addons/Wrapper/ClassDiagram1.cd
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/AssemblyInfo.obj
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/AssemblyInfo.obj
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/BuildLog.htm
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/BuildLog.htm
Normal file
Binary file not shown.
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/Wrapper.dll
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/Wrapper.dll
Normal file
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity type='win32' name='Microsoft.VC90.DebugCRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
</assembly>
|
||||
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/Wrapper.obj
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/Wrapper.obj
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/Wrapper.pdb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/Wrapper.pdb
Normal file
Binary file not shown.
1
rylCoder_16.02.2008_src/addons/Wrapper/Debug/mt.dep
Normal file
1
rylCoder_16.02.2008_src/addons/Wrapper/Debug/mt.dep
Normal file
@@ -0,0 +1 @@
|
||||
Manifest resource last updated at 17:37:07,00 on L 16.02.2008
|
||||
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/vc80.idb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/vc80.idb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/vc80.pdb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/vc80.pdb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/vc90.idb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/vc90.idb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/vc90.pdb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Debug/vc90.pdb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/DevIL.lib
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/DevIL.lib
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/MiniLZO.lib
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/MiniLZO.lib
Normal file
Binary file not shown.
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/AssemblyInfo.obj
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/AssemblyInfo.obj
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/BuildLog.htm
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/BuildLog.htm
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/CL.read.1.tlog
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/CL.read.1.tlog
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/CL.write.1.tlog
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/CL.write.1.tlog
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/Wrapper.dll
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/Wrapper.dll
Normal file
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
</assembly>
|
||||
@@ -0,0 +1,2 @@
|
||||
#v4.0:v100:true
|
||||
Release|Win32|C:\Users\Peter\Desktop\rylCoder_16.02.2008_src\|
|
||||
22
rylCoder_16.02.2008_src/addons/Wrapper/Release/Wrapper.log
Normal file
22
rylCoder_16.02.2008_src/addons/Wrapper/Release/Wrapper.log
Normal file
@@ -0,0 +1,22 @@
|
||||
Build started 14.10.2011 13:17:31.
|
||||
1>Project "C:\Users\Peter\Desktop\rylCoder_16.02.2008_src\addons\Wrapper\Wrapper.vcxproj" on node 3 (build target(s)).
|
||||
1>InitializeBuildStatus:
|
||||
Creating "Release\Wrapper.unsuccessfulbuild" because "AlwaysCreate" was specified.
|
||||
GenerateTargetFrameworkMonikerAttribute:
|
||||
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
|
||||
ClCompile:
|
||||
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I../DevIL/include /I../MiniLZO/include /AI"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /Zi /clr /nologo /W3 /WX- /O2 /Oy- /GL /D WIN32 /D NDEBUG /D IL_STATIC_LIB /D WIN32 /D _DEBUG /D _LIB /D _WINDOWS /D _USE_32BIT_TIME_T /D _WINDLL /D _UNICODE /D UNICODE /EHa /MD /GS- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Release\\" /Fd"Release\vc100.pdb" /TP /wd4996 /wd4819 /wd4482 /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /analyze- /errorReport:prompt AssemblyInfo.cpp Wrapper.cpp /clr:nostdlib
|
||||
AssemblyInfo.cpp
|
||||
Wrapper.cpp
|
||||
1>Wrapper.cpp(196): warning C4018: '<' : signed/unsigned mismatch
|
||||
Generating Code...
|
||||
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I../DevIL/include /I../MiniLZO/include /Zi /clr /nologo /W3 /WX- /O2 /Oy- /GL /D WIN32 /D NDEBUG /D IL_STATIC_LIB /D WIN32 /D _DEBUG /D _LIB /D _WINDOWS /D _USE_32BIT_TIME_T /D _WINDLL /D _UNICODE /D UNICODE /EHa /MD /GS- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Release\\" /Fd"Release\vc100.pdb" /TP /wd4996 /wd4819 /wd4482 /analyze- /errorReport:prompt "C:\Users\Peter\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.cpp"
|
||||
.NETFramework,Version=v4.0.AssemblyAttributes.cpp
|
||||
1>Project "C:\Users\Peter\Desktop\rylCoder_16.02.2008_src\addons\Wrapper\Wrapper.vcxproj" (1) is building "C:\Users\Peter\Desktop\rylCoder_16.02.2008_src\addons\DevIL\src-IL\msvc8\IL.vcxproj" (3:3) on node 3 (GetResolvedLinkLibs target(s)).
|
||||
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(283,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|Win32.
|
||||
3>Done Building Project "C:\Users\Peter\Desktop\rylCoder_16.02.2008_src\addons\DevIL\src-IL\msvc8\IL.vcxproj" (GetResolvedLinkLibs target(s)) -- FAILED.
|
||||
1>Done Building Project "C:\Users\Peter\Desktop\rylCoder_16.02.2008_src\addons\Wrapper\Wrapper.vcxproj" (build target(s)) -- FAILED.
|
||||
|
||||
Build FAILED.
|
||||
|
||||
Time Elapsed 00:00:01.12
|
||||
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/Wrapper.obj
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/Wrapper.obj
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/Wrapper.pdb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/Wrapper.pdb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/cl.command.1.tlog
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/cl.command.1.tlog
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
<EFBFBD><EFBFBD>
|
||||
@@ -0,0 +1 @@
|
||||
<EFBFBD><EFBFBD>
|
||||
1
rylCoder_16.02.2008_src/addons/Wrapper/Release/mt.dep
Normal file
1
rylCoder_16.02.2008_src/addons/Wrapper/Release/mt.dep
Normal file
@@ -0,0 +1 @@
|
||||
Manifest resource last updated at 18:00:19,72 on L 16.02.2008
|
||||
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc100.pdb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc100.pdb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc80.idb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc80.idb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc80.pdb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc80.pdb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc90.idb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc90.idb
Normal file
Binary file not shown.
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc90.pdb
Normal file
BIN
rylCoder_16.02.2008_src/addons/Wrapper/Release/vc90.pdb
Normal file
Binary file not shown.
233
rylCoder_16.02.2008_src/addons/Wrapper/Wrapper.cpp
Normal file
233
rylCoder_16.02.2008_src/addons/Wrapper/Wrapper.cpp
Normal file
@@ -0,0 +1,233 @@
|
||||
// This is the main DLL file.
|
||||
|
||||
#include <windows.h>
|
||||
#include "Wrapper.h"
|
||||
#include "IL/il.h"
|
||||
#include "minilzo.h"
|
||||
#pragma warning( disable : 4091 )
|
||||
#include <msclr\lock.h>
|
||||
#pragma warning( default : 4091 )
|
||||
|
||||
static FischR::Wrapper::Wrapper() {
|
||||
ilInit();
|
||||
_mutexLock = gcnew Object();
|
||||
}
|
||||
//-- --//
|
||||
System::Drawing::Bitmap^ FischR::Wrapper::LoadDDS(System::String^ file) {
|
||||
return LoadDDS(file, System::Drawing::Rectangle(0, 0, 0, 0));
|
||||
}
|
||||
System::Drawing::Bitmap^ FischR::Wrapper::LoadDDS(System::String^ file, System::Drawing::Rectangle area) {
|
||||
if (!System::IO::File::Exists(file)) return nullptr;
|
||||
try {
|
||||
return LoadDDS(System::IO::File::ReadAllBytes(file), area);
|
||||
} catch (System::Exception^) {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
System::Drawing::Bitmap^ FischR::Wrapper::LoadDDS(cli::array<System::Byte>^ data, System::Drawing::Rectangle area) {
|
||||
msclr::lock l(_mutexLock);
|
||||
//data[0] = 0x44;
|
||||
//data[1] = 0x44;
|
||||
//data[2] = 0x53;
|
||||
//data[3] = 0x20;
|
||||
DWORD dwImage;
|
||||
dwImage = ilGenImage();
|
||||
ilBindImage(dwImage);
|
||||
cli::pin_ptr<System::Byte> pData = &data[0];
|
||||
if (ilLoadL(IL_DDS, pData, data->Length) == FALSE) {
|
||||
ilDeleteImage(dwImage);
|
||||
return nullptr;
|
||||
}
|
||||
if (area.Width == 0) area.Width = ilGetInteger(IL_IMAGE_WIDTH);
|
||||
if (area.Height == 0) area.Height = ilGetInteger(IL_IMAGE_HEIGHT);
|
||||
ilConvertImage(IL_BGRA, IL_UNSIGNED_BYTE);
|
||||
System::Drawing::Bitmap^ result = gcnew System::Drawing::Bitmap(area.Width, area.Height, System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
System::Drawing::Imaging::BitmapData^ bmpData =
|
||||
result->LockBits(System::Drawing::Rectangle(0, 0, area.Width, area.Height),
|
||||
System::Drawing::Imaging::ImageLockMode::ReadWrite,
|
||||
System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
ilCopyPixels(area.X, area.Y, 0, area.Width, area.Height, 1, IL_BGRA, IL_UNSIGNED_BYTE, (void*)bmpData->Scan0);
|
||||
result->UnlockBits(bmpData);
|
||||
ilDeleteImage(dwImage);
|
||||
return result;
|
||||
}
|
||||
//-- --//
|
||||
System::Drawing::Bitmap^ FischR::Wrapper::LoadMapDDS(System::String^ fileMask) {
|
||||
System::Drawing::Bitmap^ result;
|
||||
System::Drawing::Imaging::BitmapData^ bmpData;
|
||||
try {
|
||||
result = gcnew System::Drawing::Bitmap(0xAFF, 0xAFF,
|
||||
System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
bmpData = result->LockBits(
|
||||
System::Drawing::Rectangle(0,0,0xAFF,0xAFF),
|
||||
System::Drawing::Imaging::ImageLockMode::WriteOnly, result->PixelFormat);
|
||||
int failed = 0;
|
||||
for (WORD x=0; x<11; ++x) {
|
||||
for (WORD y=0; y<11; ++y) {
|
||||
cli::array<unsigned char>^ data = nullptr;
|
||||
System::String^ file = System::String::Format(fileMask, x+1, y+1);
|
||||
if (System::IO::File::Exists(file))
|
||||
{
|
||||
try
|
||||
{
|
||||
data = System::IO::File::ReadAllBytes(file);
|
||||
}
|
||||
catch (System::Exception^) {}
|
||||
}
|
||||
if (data != nullptr)
|
||||
{
|
||||
if (!LoadDDS(data, bmpData, System::Drawing::Rectangle(x*0xFF, y*0xFF, 0xFF, 0xFF)))
|
||||
failed++;
|
||||
}
|
||||
else failed++;
|
||||
}
|
||||
}
|
||||
if (failed == 11*11) goto Failed;
|
||||
|
||||
result->UnlockBits(bmpData);
|
||||
result->RotateFlip(System::Drawing::RotateFlipType::RotateNoneFlipY);
|
||||
return result;
|
||||
} catch (System::Exception^) {}
|
||||
Failed:
|
||||
if (result != nullptr && bmpData != nullptr) result->UnlockBits(bmpData);
|
||||
return nullptr;
|
||||
}
|
||||
System::Boolean FischR::Wrapper::LoadDDS(cli::array<System::Byte>^ data, System::Drawing::Imaging::BitmapData^ bmpData, System::Drawing::Rectangle area) {
|
||||
msclr::lock l(_mutexLock);
|
||||
DWORD dwImage;
|
||||
dwImage = ilGenImage();
|
||||
ilBindImage(dwImage);
|
||||
cli::pin_ptr<System::Byte> pData = &data[0];
|
||||
if (ilLoadL(IL_DDS, pData, data->Length) == FALSE) {
|
||||
ilDeleteImage(dwImage);
|
||||
return false;
|
||||
}
|
||||
INT32 width = ilGetInteger(IL_IMAGE_WIDTH);
|
||||
INT32 height = ilGetInteger(IL_IMAGE_HEIGHT);
|
||||
ilConvertImage(IL_BGRA, IL_UNSIGNED_BYTE);
|
||||
int pixSize = System::Drawing::Image::GetPixelFormatSize(bmpData->PixelFormat) / 8;
|
||||
System::Byte* pSrc = ilGetData();
|
||||
System::Byte* pDst = (System::Byte*)(void*) bmpData->Scan0;
|
||||
pDst += (bmpData->Width*area.Y + area.X)*pixSize;
|
||||
INT32 srcWidth = width * pixSize;
|
||||
INT32 dstWidth = area.Width*pixSize;
|
||||
width = (srcWidth > dstWidth ? dstWidth : srcWidth);
|
||||
dstWidth = bmpData->Width*pixSize;
|
||||
for (int i=0; i<height && i<area.Height; ++i) {
|
||||
memcpy(pDst,pSrc,width);
|
||||
pDst += dstWidth;
|
||||
pSrc += srcWidth;
|
||||
}
|
||||
ilDeleteImage(dwImage);
|
||||
return true;
|
||||
}
|
||||
//-- old --//
|
||||
System::Boolean FischR::Wrapper::LoadDDS(System::String^ file, System::Drawing::Imaging::BitmapData^ bmpData, System::Drawing::Rectangle area) {
|
||||
msclr::lock l(_mutexLock);
|
||||
cli::array<System::Byte>^ data;
|
||||
DWORD dwImage;
|
||||
|
||||
data = System::IO::File::ReadAllBytes(file);
|
||||
data[0] = 0x44;
|
||||
data[1] = 0x44;
|
||||
data[2] = 0x53;
|
||||
data[3] = 0x20;
|
||||
|
||||
dwImage = ilGenImage();
|
||||
ilBindImage(dwImage);
|
||||
cli::pin_ptr<System::Byte> pData = &data[0];
|
||||
if (ilLoadL(IL_DDS, pData, data->Length) == FALSE) {
|
||||
ilDeleteImage(dwImage);
|
||||
return false;
|
||||
}
|
||||
INT32 width = ilGetInteger(IL_IMAGE_WIDTH);
|
||||
INT32 height = ilGetInteger(IL_IMAGE_HEIGHT);
|
||||
ilConvertImage(IL_BGRA, IL_UNSIGNED_BYTE);
|
||||
int pixSize = System::Drawing::Image::GetPixelFormatSize(bmpData->PixelFormat) / 8;
|
||||
System::Byte* pSrc = ilGetData();
|
||||
System::IntPtr x = bmpData->Scan0;
|
||||
System::Byte* y = (System::Byte*)x.ToPointer();
|
||||
cli::pin_ptr<System::Byte> pDst = y;
|
||||
pDst += (bmpData->Width*area.Bottom + area.X)*pixSize;
|
||||
INT32 srcWidth = width * pixSize;
|
||||
INT32 dstWidth = area.Width*pixSize;
|
||||
width = (srcWidth > dstWidth ? dstWidth : srcWidth);
|
||||
dstWidth = bmpData->Width*pixSize;
|
||||
for (int i=0; i<height && i<area.Height; ++i) {
|
||||
memcpy(x.ToPointer(),pSrc,width);
|
||||
pDst -= dstWidth;
|
||||
pSrc += srcWidth;
|
||||
}
|
||||
ilDeleteImage(dwImage);
|
||||
return true;
|
||||
}
|
||||
System::Boolean FischR::Wrapper::LoadDDS(System::String^ file, cli::array<System::Byte>^ addTo, System::Drawing::Point place, int imageWidth) {
|
||||
msclr::lock l(_mutexLock);
|
||||
|
||||
cli::array<System::Byte>^ data;
|
||||
try{
|
||||
data = System::IO::File::ReadAllBytes(file);
|
||||
data[0] = 0x44;
|
||||
data[1] = 0x44;
|
||||
data[2] = 0x53;
|
||||
data[3] = 0x20;
|
||||
}catch(System::Exception^){
|
||||
throw;
|
||||
}
|
||||
|
||||
DWORD dwImage;
|
||||
|
||||
dwImage = ilGenImage();
|
||||
ilBindImage(dwImage);
|
||||
cli::pin_ptr<System::Byte> pData = &data[0];
|
||||
if (ilLoadL(IL_DDS, pData, data->Length) == FALSE) throw gcnew System::SystemException(gcnew System::String("DDS file load failed"));
|
||||
ilConvertImage(0x80e1, 0x1401);
|
||||
DWORD width = ilGetInteger(IL_IMAGE_WIDTH);
|
||||
DWORD height = ilGetInteger(IL_IMAGE_HEIGHT);
|
||||
|
||||
cli::array<System::Byte>^ bData = gcnew cli::array<System::Byte>(4*width*height);
|
||||
cli::pin_ptr<System::Byte> pbData = &bData[0];
|
||||
|
||||
ilCopyPixels(0, 0, 0, width, height, 1, 0x80e1, 0x1401, pbData);
|
||||
|
||||
int num = 0;
|
||||
for (int i = height - 1; i >= 0; i--)
|
||||
{
|
||||
for (int j = 0; j < width; j++)
|
||||
{
|
||||
int index = (((i + place.Y) * imageWidth) * 4) + ((j + place.X) * 4);
|
||||
|
||||
addTo[index] = bData[num++];
|
||||
addTo[index+1] = bData[num++];
|
||||
addTo[index+2] = bData[num++];
|
||||
addTo[index+3] = bData[num++];
|
||||
}
|
||||
}
|
||||
ilDeleteImage(dwImage);
|
||||
delete bData;
|
||||
return true;
|
||||
}
|
||||
//-- minilzo --//
|
||||
cli::array<System::Byte>^ FischR::Wrapper::Decompress(cli::array<System::Byte>^ data, System::UInt32 size) {
|
||||
cli::pin_ptr<System::Byte> pData = &data[0];
|
||||
cli::array<System::Byte>^ result = gcnew cli::array<System::Byte>(size);
|
||||
cli::pin_ptr<System::Byte> pResult = &result[0];
|
||||
System::UInt32 newSize = size;
|
||||
cli::pin_ptr<System::UInt32> pSize = &newSize;
|
||||
if (lzo1x_decompress((const unsigned char*)pData,data->Length,
|
||||
(unsigned char*)pResult, (lzo_uint*)pSize, 0) != LZO_E_OK ||
|
||||
newSize != size) return nullptr;
|
||||
return result;
|
||||
}
|
||||
|
||||
cli::array<System::Byte>^ FischR::Wrapper::Compress(cli::array<System::Byte>^ data) {
|
||||
cli::pin_ptr<System::Byte> pData = &data[0];
|
||||
cli::array<System::Byte>^ result = gcnew cli::array<System::Byte>(data->Length + data->Length / 64 + 16 + 3 + 4);
|
||||
cli::pin_ptr<System::Byte> pResult = &result[0];
|
||||
System::UInt32 newSize = 0;
|
||||
cli::pin_ptr<System::UInt32> pSize = &newSize;
|
||||
if (lzo1x_1_compress((const unsigned char*)pData,data->Length,
|
||||
(unsigned char*)pResult, (lzo_uint*)pSize, 0) != LZO_E_OK) return nullptr;
|
||||
System::Array::Resize<System::Byte>(result, newSize);
|
||||
return result;
|
||||
}
|
||||
24
rylCoder_16.02.2008_src/addons/Wrapper/Wrapper.h
Normal file
24
rylCoder_16.02.2008_src/addons/Wrapper/Wrapper.h
Normal file
@@ -0,0 +1,24 @@
|
||||
// DevilWrapper.h
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace FischR {
|
||||
|
||||
public ref class Wrapper {
|
||||
private:
|
||||
static Wrapper();
|
||||
static System::Object^ _mutexLock;
|
||||
static System::Drawing::Bitmap^ LoadDDS(cli::array<System::Byte>^ data, System::Drawing::Rectangle area);
|
||||
static System::Boolean LoadDDS(cli::array<System::Byte>^ data, System::Drawing::Imaging::BitmapData^ bmpData, System::Drawing::Rectangle area);
|
||||
public:
|
||||
static System::Drawing::Bitmap^ LoadDDS(System::String^ file);
|
||||
static System::Drawing::Bitmap^ LoadDDS(System::String^ file, System::Drawing::Rectangle area);
|
||||
static System::Drawing::Bitmap^ LoadMapDDS(System::String^ fileMask);
|
||||
static cli::array<System::Byte>^ Decompress(cli::array<System::Byte>^ data, System::UInt32 size);
|
||||
static cli::array<System::Byte>^ Compress(cli::array<System::Byte>^ data);
|
||||
private:
|
||||
// old
|
||||
static System::Boolean LoadDDS(System::String^ file, cli::array<System::Byte>^ addTo, System::Drawing::Point place, int imageWidth);
|
||||
static System::Boolean LoadDDS(System::String^ file, System::Drawing::Imaging::BitmapData^ bmpData, System::Drawing::Rectangle area);
|
||||
};
|
||||
}
|
||||
229
rylCoder_16.02.2008_src/addons/Wrapper/Wrapper.vcproj
Normal file
229
rylCoder_16.02.2008_src/addons/Wrapper/Wrapper.vcproj
Normal file
@@ -0,0 +1,229 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="Wrapper"
|
||||
ProjectGUID="{F1152DEA-5CE9-41FD-AF94-542157863A88}"
|
||||
RootNamespace="FischR"
|
||||
Keyword="ManagedCProj"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="1"
|
||||
ManagedExtensions="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../DevIL/include;../MiniLZO/include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;IL_STATIC_LIB"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="$(NoInherit) gdi32.lib"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
AssemblyDebug="1"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="1"
|
||||
ManagedExtensions="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="../DevIL/include;../MiniLZO/include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;IL_STATIC_LIB"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="$(NoInherit) gdi32.lib"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
<AssemblyReference
|
||||
RelativePath="System.dll"
|
||||
AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
||||
MinFrameworkVersion="131072"
|
||||
/>
|
||||
<AssemblyReference
|
||||
RelativePath="System.Data.dll"
|
||||
AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86"
|
||||
MinFrameworkVersion="131072"
|
||||
/>
|
||||
<AssemblyReference
|
||||
RelativePath="System.XML.dll"
|
||||
AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
||||
MinFrameworkVersion="131072"
|
||||
/>
|
||||
<AssemblyReference
|
||||
RelativePath="System.Drawing.dll"
|
||||
AssemblyName="System.Drawing, Version=2.0.0.0, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
|
||||
MinFrameworkVersion="131072"
|
||||
/>
|
||||
<ProjectReference
|
||||
ReferencedProjectIdentifier="{0F088168-B0B4-4350-9E6A-7FB271C76D39}"
|
||||
RelativePathToProject=".\addons\DevIL\src-IL\msvc8\IL.vcproj"
|
||||
/>
|
||||
<ProjectReference
|
||||
ReferencedProjectIdentifier="{3E4FC2E0-40B7-4B6B-8BAC-6331E140E856}"
|
||||
RelativePathToProject=".\addons\MiniLZO\MiniLZO.vcproj"
|
||||
/>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\AssemblyInfo.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Wrapper.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Wrapper.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ClassDiagram1.cd"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="ALPHA"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="ALPHA"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="TOM"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="TOM"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
||||
138
rylCoder_16.02.2008_src/addons/Wrapper/Wrapper.vcxproj
Normal file
138
rylCoder_16.02.2008_src/addons/Wrapper/Wrapper.vcxproj
Normal file
@@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{F1152DEA-5CE9-41FD-AF94-542157863A88}</ProjectGuid>
|
||||
<RootNamespace>FischR</RootNamespace>
|
||||
<Keyword>ManagedCProj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<CLRSupport>true</CLRSupport>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<CLRSupport>true</CLRSupport>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>../DevIL/include;../MiniLZO/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;IL_STATIC_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>gdi32.lib</AdditionalDependencies>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AssemblyDebug>true</AssemblyDebug>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>../DevIL/include;../MiniLZO/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;IL_STATIC_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>gdi32.lib</AdditionalDependencies>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System">
|
||||
<CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
|
||||
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
||||
</Reference>
|
||||
<Reference Include="System.Data">
|
||||
<CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
|
||||
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
|
||||
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing">
|
||||
<CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
|
||||
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DevIL\src-IL\msvc8\IL.vcxproj">
|
||||
<Project>{0f088168-b0b4-4350-9e6a-7fb271c76d39}</Project>
|
||||
<CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
|
||||
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\MiniLZO\MiniLZO.vcxproj">
|
||||
<Project>{3e4fc2e0-40b7-4b6b-8bac-6331e140e856}</Project>
|
||||
<CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
|
||||
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="AssemblyInfo.cpp" />
|
||||
<ClCompile Include="Wrapper.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Wrapper.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="ClassDiagram1.cd" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="AssemblyInfo.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Wrapper.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Wrapper.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="ClassDiagram1.cd" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
Reference in New Issue
Block a user