added dependencies and build files (loosely inspired by Sebastian Dorda's love-native-android)

This commit is contained in:
Martin Felis
2013-12-05 17:58:37 +01:00
parent 9604528a96
commit 95a086a47f
3700 changed files with 1691119 additions and 0 deletions
@@ -0,0 +1,97 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IL Unicode", "..\..\src-IL\msvc9\IL Unicode.vcproj", "{B46B180B-6079-4CE6-8647-A7D712774255}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILU Unicode", "..\..\src-ILU\msvc9\ILU Unicode.vcproj", "{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}"
ProjectSection(ProjectDependencies) = postProject
{B46B180B-6079-4CE6-8647-A7D712774255} = {B46B180B-6079-4CE6-8647-A7D712774255}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILUT Unicode", "..\..\src-ILUT\msvc9\ILUT Unicode.vcproj", "{1E0FF575-39C1-4A99-820F-8397E9D1351F}"
ProjectSection(ProjectDependencies) = postProject
{B46B180B-6079-4CE6-8647-A7D712774255} = {B46B180B-6079-4CE6-8647-A7D712774255}
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009} = {CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Text Files", "Solution Text Files", "{F85596A4-DBF8-478C-9EBB-642D8E14DABD}"
ProjectSection(SolutionItems) = preProject
..\..\AUTHORS = ..\..\AUTHORS
..\..\ChangeLog = ..\..\ChangeLog
..\..\CREDITS = ..\..\CREDITS
..\..\libraries.txt = ..\..\libraries.txt
..\..\MSVC++.txt = ..\..\MSVC++.txt
..\..\NEWS = ..\..\NEWS
..\..\README = ..\..\README
..\..\README.unix = ..\..\README.unix
..\..\README.win = ..\..\README.win
..\..\TODO = ..\..\TODO
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Windows Example", "..\..\examples\windows_example\windows_example-vc9.vcproj", "{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}"
ProjectSection(ProjectDependencies) = postProject
{B46B180B-6079-4CE6-8647-A7D712774255} = {B46B180B-6079-4CE6-8647-A7D712774255}
{1E0FF575-39C1-4A99-820F-8397E9D1351F} = {1E0FF575-39C1-4A99-820F-8397E9D1351F}
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009} = {CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Dynamic|Win32 = Dynamic|Win32
Dynamic|x64 = Dynamic|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B46B180B-6079-4CE6-8647-A7D712774255}.Debug|Win32.ActiveCfg = Debug|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Debug|Win32.Build.0 = Debug|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Debug|x64.ActiveCfg = Debug|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Debug|x64.Build.0 = Debug|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Dynamic|Win32.ActiveCfg = Debug|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Dynamic|Win32.Build.0 = Debug|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Dynamic|x64.ActiveCfg = Debug|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Dynamic|x64.Build.0 = Debug|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Release|Win32.ActiveCfg = Release|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Release|Win32.Build.0 = Release|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Release|x64.ActiveCfg = Release|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Release|x64.Build.0 = Release|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Debug|Win32.ActiveCfg = Debug|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Debug|Win32.Build.0 = Debug|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Debug|x64.ActiveCfg = Debug|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Debug|x64.Build.0 = Debug|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Dynamic|Win32.ActiveCfg = Debug|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Dynamic|Win32.Build.0 = Debug|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Dynamic|x64.ActiveCfg = Debug|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Dynamic|x64.Build.0 = Debug|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Release|Win32.ActiveCfg = Release|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Release|Win32.Build.0 = Release|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Release|x64.ActiveCfg = Release|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Release|x64.Build.0 = Release|x64
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Debug|Win32.ActiveCfg = Debug|Win32
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Debug|Win32.Build.0 = Debug|Win32
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Debug|x64.ActiveCfg = Debug|x64
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Debug|x64.Build.0 = Debug|x64
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Dynamic|Win32.ActiveCfg = Debug|Win32
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Dynamic|Win32.Build.0 = Debug|Win32
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Dynamic|x64.ActiveCfg = Debug|x64
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Dynamic|x64.Build.0 = Debug|x64
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Release|Win32.ActiveCfg = Release|Win32
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Release|Win32.Build.0 = Release|Win32
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Release|x64.ActiveCfg = Release|x64
{1E0FF575-39C1-4A99-820F-8397E9D1351F}.Release|x64.Build.0 = Release|x64
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Debug|Win32.ActiveCfg = Debug|Win32
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Debug|Win32.Build.0 = Debug|Win32
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Debug|x64.ActiveCfg = Debug|Win32
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Dynamic|Win32.ActiveCfg = Debug|Win32
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Dynamic|Win32.Build.0 = Debug|Win32
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Dynamic|x64.ActiveCfg = Debug|Win32
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Release|Win32.ActiveCfg = Release|Win32
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Release|Win32.Build.0 = Release|Win32
{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}.Release|x64.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,80 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IL", "..\..\src-IL\msvc9\IL.vcproj", "{B46B180B-6079-4CE6-8647-A7D712774255}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILU", "..\..\src-ILU\msvc9\ILU.vcproj", "{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}"
ProjectSection(ProjectDependencies) = postProject
{B46B180B-6079-4CE6-8647-A7D712774255} = {B46B180B-6079-4CE6-8647-A7D712774255}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILUT", "..\..\src-ILUT\msvc9\ILUT.vcproj", "{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}"
ProjectSection(ProjectDependencies) = postProject
{B46B180B-6079-4CE6-8647-A7D712774255} = {B46B180B-6079-4CE6-8647-A7D712774255}
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009} = {CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Text Files", "Solution Text Files", "{8613D7AA-0767-4567-87E5-E84C82F2FC93}"
ProjectSection(SolutionItems) = preProject
..\..\AUTHORS = ..\..\AUTHORS
..\..\ChangeLog = ..\..\ChangeLog
..\..\CREDITS = ..\..\CREDITS
..\..\libraries.txt = ..\..\libraries.txt
..\..\MSVC++.txt = ..\..\MSVC++.txt
..\..\NEWS = ..\..\NEWS
..\..\README.unix = ..\..\README.unix
..\..\README.win = ..\..\README.win
..\..\TODO = ..\..\TODO
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Dynamic|Win32 = Dynamic|Win32
Dynamic|x64 = Dynamic|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B46B180B-6079-4CE6-8647-A7D712774255}.Debug|Win32.ActiveCfg = Debug|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Debug|Win32.Build.0 = Debug|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Debug|x64.ActiveCfg = Debug|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Debug|x64.Build.0 = Debug|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Dynamic|Win32.ActiveCfg = Debug|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Dynamic|Win32.Build.0 = Debug|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Dynamic|x64.ActiveCfg = Debug|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Dynamic|x64.Build.0 = Debug|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Release|Win32.ActiveCfg = Release|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Release|Win32.Build.0 = Release|Win32
{B46B180B-6079-4CE6-8647-A7D712774255}.Release|x64.ActiveCfg = Release|x64
{B46B180B-6079-4CE6-8647-A7D712774255}.Release|x64.Build.0 = Release|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Debug|Win32.ActiveCfg = Debug|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Debug|Win32.Build.0 = Debug|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Debug|x64.ActiveCfg = Debug|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Debug|x64.Build.0 = Debug|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Dynamic|Win32.ActiveCfg = Debug|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Dynamic|Win32.Build.0 = Debug|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Dynamic|x64.ActiveCfg = Debug|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Dynamic|x64.Build.0 = Debug|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Release|Win32.ActiveCfg = Release|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Release|Win32.Build.0 = Release|Win32
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Release|x64.ActiveCfg = Release|x64
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}.Release|x64.Build.0 = Release|x64
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Debug|Win32.ActiveCfg = Debug|Win32
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Debug|Win32.Build.0 = Debug|Win32
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Debug|x64.ActiveCfg = Debug|x64
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Debug|x64.Build.0 = Debug|x64
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Dynamic|Win32.ActiveCfg = Debug|Win32
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Dynamic|Win32.Build.0 = Debug|Win32
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Dynamic|x64.ActiveCfg = Debug|x64
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Dynamic|x64.Build.0 = Debug|x64
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Release|Win32.ActiveCfg = Release|Win32
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Release|Win32.Build.0 = Release|Win32
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Release|x64.ActiveCfg = Release|x64
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,127 @@
//-----------------------------------------------------------------------------
//
// DevIL GDI+ Sources
// Copyright (C) 2000-2002 by Denton Woods
// Last modified: 02/13/2002 <--Y2K Compliant! =]
//
// Filename: gdi+/devil-gdi+.cpp
//
// Description: GDI+ loading routines
//
//-----------------------------------------------------------------------------
#include "stdafx.h"
#include "DevIL-GDI+.h"
// Basic Palette struct
typedef struct ILpal
{
ILubyte *Palette; // the image palette (if any)
ILuint PalSize; // size of the palette (in bytes)
ILenum PalType; // the palette types below (0x0500 range)
} ILpal;
// The Fundamental Image struct
typedef struct ILimage
{
ILuint Width; // the image's width
ILuint Height; // the image's height
ILuint Depth; // the image's depth
ILubyte Bpp; // bytes per pixel (now number of channels)
ILubyte Bpc; // bytes per channel
ILuint Bps; // bytes per scanline (components for IL)
ILubyte *Data; // the image data
ILuint SizeOfData; // the total size of the data (in bytes)
ILuint SizeOfPlane; // SizeOfData in a 2d image, size of each plane slice in a 3d image (in bytes)
ILenum Format; // image format (in IL enum style)
ILenum Type; // image type (in IL enum style)
ILenum Origin; // origin of the image
ILpal Pal; // palette details
ILuint Duration; // length of the time to display this "frame"
ILenum CubeFlags; // cube map flags for sides present in chain
struct ILimage *Mipmaps; // mipmapped versions of this image terminated by a NULL - usu. NULL
struct ILimage *Next; // next image in the chain - usu. NULL
struct ILimage *Layers; // subsequent layers in the chain - usu. NULL
ILuint NumNext; // number of images following this one (0 when not parent)
ILuint NumMips; // number of mipmaps (0 when not parent)
ILuint NumLayers; // number of layers (0 when not parent)
ILuint *AnimList; // animation list
ILuint AnimSize; // animation list size
ILvoid *Profile; // colour profile
ILuint ProfileSize; // colour profile size
ILuint OffX, OffY; // offset of the image
} ILimage;
ILAPI ILimage* ILAPIENTRY iConvertImage(ILenum DestFormat, ILenum DestType);
ILAPI ILubyte* ILAPIENTRY iGetPaddedData(ILimage *Image);
ILAPI ILimage* ILAPIENTRY ilGetCurImage(void);
ILAPI ILvoid ILAPIENTRY ilCloseImage(ILimage *Image);
ILAPI ILvoid ILAPIENTRY iBindImageTemp(void);
// @TODO: Use 48-bit and 64-bit types.
Bitmap *ilutConvertToBitmap()
{
Bitmap *Bmp = NULL;
ILubyte *Data = NULL;
ILimage *Image = NULL, *GdiCurImage = NULL;
GdiCurImage = ilGetCurImage();
if (GdiCurImage == NULL) {
return NULL;
}
if (GdiCurImage->Format == IL_BGRA && GdiCurImage->Format == IL_UNSIGNED_BYTE) {
Image = GdiCurImage;
return new Bitmap(Image->Width, Image->Height, Image->Bps, PixelFormat32bppARGB, Image->Data);
}
else if (GdiCurImage->Format == IL_BGRA || GdiCurImage->Format == IL_RGBA) {
Image = iConvertImage(IL_BGRA, IL_UNSIGNED_BYTE);
if (Image == NULL)
return NULL;
Bmp = new Bitmap(Image->Width, Image->Height, Image->Bps, PixelFormat32bppARGB, Image->Data);
ilCloseImage(Image);
return Bmp;
}
else if (GdiCurImage->Format == IL_LUMINANCE &&
(GdiCurImage->Type == IL_UNSIGNED_SHORT || GdiCurImage->Type == IL_SHORT)) {
Image = GdiCurImage;
return new Bitmap(Image->Width, Image->Height, Image->Bps, PixelFormat16bppGrayScale, Image->Data);
}
else if (GdiCurImage->Format == IL_LUMINANCE) {
Image = iConvertImage(IL_LUMINANCE, IL_UNSIGNED_SHORT);
if (Image == NULL)
return NULL;
Bmp = new Bitmap(Image->Width, Image->Height, Image->Bps, PixelFormat16bppGrayScale, Image->Data);
ilCloseImage(Image);
return Bmp;
}
else {
Image = iConvertImage(IL_BGR, IL_UNSIGNED_BYTE);
if (Image == NULL)
return NULL;
Bmp = new Bitmap(Image->Width, Image->Height, Image->Bps, PixelFormat24bppRGB, Image->Data);
ilCloseImage(Image);
return Bmp;
}
return NULL; // Something really screwy has happened here...
}
Bitmap *ilutGDILoadImage(const ILstring FileName)
{
Bitmap *Bmp;
iBindImageTemp();
if (!ilLoadImage(FileName))
return NULL;
Bmp = ilutConvertToBitmap();
return Bmp;
}
@@ -0,0 +1,30 @@
//-----------------------------------------------------------------------------
//
// DevIL GDI+ Sources
// Copyright (C) 2000-2002 by Denton Woods
// Last modified: 02/13/2001 <--Y2K Compliant! =]
//
// Filename: gdi+/devil-gdi+.h
//
// Description: GDI+ CBitmap loading routines
//
//-----------------------------------------------------------------------------
#ifndef __gdi_il_h_
#ifndef __GDI_IL_H__
#define __gdi_il_h_
#define __GDI_IL_H__
#include <windows.h>
#include <shlobj.h> // Needed to #include <Gdiplus.h>
#include <Gdiplus.h>
#include <IL/ilut.h>
using namespace Gdiplus;
Bitmap *ilutConvertToBitmap();
Bitmap *ilutGDILoadImage(const ILstring FileName);
#endif // __GDI_IL_H__
#endif // __gdi_il_h__
@@ -0,0 +1,21 @@
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GDI+", "GDI+.vcproj", "{3BE70721-42D4-42C3-A6C6-C01214CC2ABA}"
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
ConfigName.0 = Debug
ConfigName.1 = Release
EndGlobalSection
GlobalSection(ProjectDependencies) = postSolution
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{3BE70721-42D4-42C3-A6C6-C01214CC2ABA}.Debug.ActiveCfg = Debug|Win32
{3BE70721-42D4-42C3-A6C6-C01214CC2ABA}.Debug.Build.0 = Debug|Win32
{3BE70721-42D4-42C3-A6C6-C01214CC2ABA}.Release.ActiveCfg = Release|Win32
{3BE70721-42D4-42C3-A6C6-C01214CC2ABA}.Release.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding = "Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.00"
Name="GDI+"
ProjectGUID="{3BE70721-42D4-42C3-A6C6-C01214CC2ABA}"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="4"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="3"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/GDI+.lib"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="4"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
InlineFunctionExpansion="1"
OmitFramePointers="TRUE"
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
StringPooling="TRUE"
RuntimeLibrary="4"
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="3"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/GDI+.lib"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
</Configuration>
</Configurations>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm">
<File
RelativePath="DevIL-GDI+.cpp">
</File>
<File
RelativePath="stdafx.cpp">
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc">
<File
RelativePath="DevIL-GDI+.h">
</File>
<File
RelativePath="stdafx.h">
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
</Filter>
<File
RelativePath="ReadMe.txt">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
@@ -0,0 +1,8 @@
// stdafx.cpp : source file that includes just the standard includes
// GDI+.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
@@ -0,0 +1,10 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// TODO: reference additional headers your program requires here
+23
View File
@@ -0,0 +1,23 @@
if "%ILNOCOPY%" == "" goto work
goto done
:work
if "%SystemRoot%" == "" goto isnotnt
echo Copying %1 to %SystemRoot%\System32...
copy %1 %SystemRoot%\System32
goto done
:isnotnt
if "%WINDIR%" == "" goto isnot95
echo Copying %1 to %WINDIR%\System...
copy %1 %WINDIR%\System
goto done
:isnot95
echo *** Unrecognised platform! ***
goto done
:done
@@ -0,0 +1,130 @@
//-----------------------------------------------------------------------------
//
// DevIL MFC Sources
// Copyright (C) 2000-2002 by Denton Woods
// Last modified: 02/07/2002 <--Y2K Compliant! =]
//
// Filename: mfc/devil-mfc.cpp
//
// Description: MFC CBitmap loading routines
//
//-----------------------------------------------------------------------------
#include "stdafx.h"
#include "DevIL-MFC.h"
// Basic Palette struct
typedef struct ILpal
{
ILubyte *Palette; // the image palette (if any)
ILuint PalSize; // size of the palette (in bytes)
ILenum PalType; // the palette types below (0x0500 range)
} ILpal;
// The Fundamental Image struct
typedef struct ILimage
{
ILuint Width; // the image's width
ILuint Height; // the image's height
ILuint Depth; // the image's depth
ILubyte Bpp; // bytes per pixel (now number of channels)
ILubyte Bpc; // bytes per channel
ILuint Bps; // bytes per scanline (components for IL)
ILubyte *Data; // the image data
ILuint SizeOfData; // the total size of the data (in bytes)
ILuint SizeOfPlane; // SizeOfData in a 2d image, size of each plane slice in a 3d image (in bytes)
ILenum Format; // image format (in IL enum style)
ILenum Type; // image type (in IL enum style)
ILenum Origin; // origin of the image
ILpal Pal; // palette details
ILuint Duration; // length of the time to display this "frame"
ILenum CubeFlags; // cube map flags for sides present in chain
struct ILimage *Mipmaps; // mipmapped versions of this image terminated by a NULL - usu. NULL
struct ILimage *Next; // next image in the chain - usu. NULL
struct ILimage *Layers; // subsequent layers in the chain - usu. NULL
ILuint NumNext; // number of images following this one (0 when not parent)
ILuint NumMips; // number of mipmaps (0 when not parent)
ILuint NumLayers; // number of layers (0 when not parent)
ILuint *AnimList; // animation list
ILuint AnimSize; // animation list size
ILvoid *Profile; // colour profile
ILuint ProfileSize; // colour profile size
ILuint OffX, OffY; // offset of the image
} ILimage;
ILAPI ILimage* ILAPIENTRY iConvertImage(ILenum DestFormat, ILenum DestType);
ILAPI ILubyte* ILAPIENTRY iGetPaddedData(ILimage *Image);
ILAPI ILimage* ILAPIENTRY ilGetCurImage(void);
ILAPI ILvoid ILAPIENTRY ilCloseImage(ILimage *Image);
ILAPI ILvoid ILAPIENTRY iBindImageTemp(void);
CBitmap *ilutConvertToCBitmap()
{
CBitmap *Bmp = NULL;
ILubyte *Data = NULL;
ILimage *Image = NULL, *MfcCurImage = NULL;
Bmp = new CBitmap;
if (Bmp == NULL)
return NULL;
MfcCurImage = ilGetCurImage();
if (MfcCurImage == NULL) {
return NULL;
}
if (MfcCurImage->Format == IL_BGRA && MfcCurImage->Format == IL_UNSIGNED_BYTE) {
Image = MfcCurImage;
}
else if (MfcCurImage->Format == IL_BGRA || MfcCurImage->Format == IL_RGBA) {
Image = iConvertImage(IL_BGRA, IL_UNSIGNED_BYTE);
if (Image == NULL) {
delete Bmp;
return NULL;
}
}
else {
Image = iConvertImage(IL_BGR, IL_UNSIGNED_BYTE);
if (Image == NULL) {
delete Bmp;
return NULL;
}
}
Data = iGetPaddedData(Image);
if (Data == NULL) {
if (Image != MfcCurImage)
ilCloseImage(Image);
delete Bmp;
return NULL;
}
if (!Bmp->CreateBitmap(Image->Width, Image->Height, 1, Image->Bpp << 3, Image->Data)) {
if (Image != MfcCurImage)
ilCloseImage(Image);
free(Data);
delete Bmp;
return NULL;
}
return Bmp;
}
CBitmap *ilutMFCLoadImage(const ILstring FileName)
{
CBitmap *Bmp;
iBindImageTemp();
if (!ilLoadImage(FileName))
return NULL;
Bmp = ilutConvertToCBitmap();
return Bmp;
}
@@ -0,0 +1,113 @@
# Microsoft Developer Studio Project File - Name="DevIL_MFC" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=DevIL_MFC - 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 "DevIL-MFC.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 "DevIL-MFC.mak" CFG="DevIL_MFC - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "DevIL_MFC - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "DevIL_MFC - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "DevIL_MFC - Win32 Release"
# PROP BASE Use_MFC 2
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 2
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Yu"stdafx.h" /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "DevIL_MFC - Win32 Debug"
# PROP BASE Use_MFC 2
# 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 /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ENDIF
# Begin Target
# Name "DevIL_MFC - Win32 Release"
# Name "DevIL_MFC - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=".\DevIL-MFC.cpp"
# End Source File
# Begin Source File
SOURCE=.\StdAfx.cpp
# ADD CPP /Yc"stdafx.h"
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=".\DevIL-MFC.h"
# End Source File
# Begin Source File
SOURCE=.\StdAfx.h
# End Source File
# End Group
# Begin Source File
SOURCE=.\Readme.txt
# End Source File
# End Target
# End Project
@@ -0,0 +1,29 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "DevIL_MFC"=.\DevIL_MFC.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
@@ -0,0 +1,35 @@
//-----------------------------------------------------------------------------
//
// DevIL MFC Sources
// Copyright (C) 2000-2002 by Denton Woods
// Last modified: 02/13/2002 <--Y2K Compliant! =]
//
// Filename: mfc/devil-mfc.h
//
// Description: MFC CBitmap loading routines
//
//-----------------------------------------------------------------------------
#ifndef __mfcil_h_
#ifndef __MFCIL_H__
#define __mfcil_h_
#define __MFCIL_H__
#include <IL/ilut.h>
// Internal to IL but makes things easier for us:
struct ILimage;
ILAPI ILimage* ILAPIENTRY iConvertImage(ILenum DestFormat, ILenum DestType);
ILAPI ILubyte* ILAPIENTRY iGetPaddedData(ILimage *Image);
ILAPI ILimage* ILAPIENTRY ilGetCurImage(void);
ILAPI ILvoid ILAPIENTRY ilCloseImage(ILimage *Image);
ILAPI ILvoid ILAPIENTRY iBindImageTemp(void);
// Functions for the static library.
CBitmap *ilutConvertToCBitmap();
CBitmap *ilutMFCLoadImage(const ILstring FileName);
#endif // __MFCIL_H__
#endif // __mfcil_h__
@@ -0,0 +1,21 @@
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DevIL-MFC", "DevIL-MFC.vcproj", "{A5D0C1E9-A877-48AF-AF0A-E9795C5B9877}"
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
ConfigName.0 = Debug
ConfigName.1 = Release
EndGlobalSection
GlobalSection(ProjectDependencies) = postSolution
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{A5D0C1E9-A877-48AF-AF0A-E9795C5B9877}.Debug.ActiveCfg = Debug|Win32
{A5D0C1E9-A877-48AF-AF0A-E9795C5B9877}.Debug.Build.0 = Debug|Win32
{A5D0C1E9-A877-48AF-AF0A-E9795C5B9877}.Release.ActiveCfg = Release|Win32
{A5D0C1E9-A877-48AF-AF0A-E9795C5B9877}.Release.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
@@ -0,0 +1,131 @@
<?xml version="1.0" encoding = "Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.00"
Name="DevIL-MFC"
ProjectGUID="{A5D0C1E9-A877-48AF-AF0A-E9795C5B9877}"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="4"
UseOfMFC="2"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="3"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/DevIL-MFC.lib"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="4"
UseOfMFC="2"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
InlineFunctionExpansion="1"
OmitFramePointers="TRUE"
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
StringPooling="TRUE"
RuntimeLibrary="2"
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="3"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/DevIL-MFC.lib"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
</Configuration>
</Configurations>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm">
<File
RelativePath="DevIL-MFC.cpp">
</File>
<File
RelativePath="stdafx.cpp">
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc">
<File
RelativePath="DevIL-MFC.h">
</File>
<File
RelativePath="stdafx.h">
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
</Filter>
<File
RelativePath="ReadMe.txt">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
@@ -0,0 +1,8 @@
// stdafx.cpp : source file that includes just the standard includes
// DevIL-MFC.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
@@ -0,0 +1,18 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#endif
#include <afx.h>
#include <afxwin.h> // MFC core and standard components
// TODO: reference additional headers your program requires here
Binary file not shown.