mirror of
https://github.com/love2d/love-android.git
synced 2026-08-19 20:20:25 +02:00
added dependencies and build files (loosely inspired by Sebastian Dorda's love-native-android)
This commit is contained in:
Executable
+889
@@ -0,0 +1,889 @@
|
||||
[Project]
|
||||
FileName=IL.dev
|
||||
Name=IL
|
||||
UnitCount=84
|
||||
Type=3
|
||||
Ver=1
|
||||
ObjFiles=
|
||||
Includes=C:\Libraries\DevIL\include;C:\Libraries\DevIL\src-IL\include
|
||||
Libs=
|
||||
PrivateResource=
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=-DBUILDING_DLL=1_@@_
|
||||
CppCompiler=-DBUILDING_DLL=1_@@_
|
||||
Linker=--no-export-all-symbols --add-stdcall-alias_@@_-lz_@@_-ltiff_@@_-lpng_@@_-ljpeg_@@_-lmng_@@_-llcms_@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=..\..\..\lib
|
||||
ObjectOutput=.objects
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=IL.dll
|
||||
HostApplication=
|
||||
Folders=
|
||||
CommandLine=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=0
|
||||
CompilerSettings=0000000000000000000000
|
||||
|
||||
[Unit1]
|
||||
FileName=..\..\..\include\IL\il.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit2]
|
||||
FileName=..\..\..\include\IL\config.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit3]
|
||||
FileName=..\..\..\include\IL\devil_internal_exports.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit4]
|
||||
FileName=..\..\..\src-IL\include\il_targa.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit5]
|
||||
FileName=..\..\..\src-IL\include\il_alloc.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit6]
|
||||
FileName=..\..\..\src-IL\include\il_bits.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit7]
|
||||
FileName=..\..\..\src-IL\include\il_bmp.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit8]
|
||||
FileName=..\..\..\src-IL\include\il_dcx.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit9]
|
||||
FileName=..\..\..\src-IL\include\il_dds.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit10]
|
||||
FileName=..\..\..\src-IL\include\il_doompal.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit11]
|
||||
FileName=..\..\..\src-IL\include\il_endian.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit12]
|
||||
FileName=..\..\..\src-IL\include\il_files.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit13]
|
||||
FileName=..\..\..\src-IL\include\il_gif.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit14]
|
||||
FileName=..\..\..\src-IL\include\il_hdr.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit15]
|
||||
FileName=..\..\..\src-IL\include\il_icon.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit16]
|
||||
FileName=..\..\..\src-IL\include\il_internal.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit17]
|
||||
FileName=..\..\..\src-IL\include\il_jpeg.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit18]
|
||||
FileName=..\..\..\src-IL\include\il_lif.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit19]
|
||||
FileName=..\..\..\src-IL\include\il_manip.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit20]
|
||||
FileName=..\..\..\src-IL\include\il_mdl.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit21]
|
||||
FileName=..\..\..\src-IL\include\il_pal.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit22]
|
||||
FileName=..\..\..\src-IL\include\il_pcx.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit23]
|
||||
FileName=..\..\..\src-IL\include\il_pic.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit24]
|
||||
FileName=..\..\..\src-IL\include\il_pnm.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit25]
|
||||
FileName=..\..\..\src-IL\include\il_psd.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit26]
|
||||
FileName=..\..\..\src-IL\include\il_psp.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit27]
|
||||
FileName=..\..\..\src-IL\include\il_q2pal.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit28]
|
||||
FileName=..\..\..\src-IL\include\il_register.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit29]
|
||||
FileName=..\..\..\src-IL\include\il_rle.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit30]
|
||||
FileName=..\..\..\src-IL\include\il_sgi.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit31]
|
||||
FileName=..\..\..\src-IL\include\il_stack.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit32]
|
||||
FileName=..\..\..\src-IL\include\il_states.h
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit33]
|
||||
FileName=..\..\..\src-IL\src\il_xpm.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit34]
|
||||
FileName=..\..\..\src-IL\src\il_alloc.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit35]
|
||||
FileName=..\..\..\src-IL\src\il_bits.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit36]
|
||||
FileName=..\..\..\src-IL\src\il_bmp.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit37]
|
||||
FileName=..\..\..\src-IL\src\il_convbuff.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit38]
|
||||
FileName=..\..\..\src-IL\src\il_convert.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit39]
|
||||
FileName=..\..\..\src-IL\src\il_cut.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit40]
|
||||
FileName=..\..\..\src-IL\src\il_dcx.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit41]
|
||||
FileName=..\..\..\src-IL\src\il_dds.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit42]
|
||||
FileName=..\..\..\src-IL\src\il_dds-save.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit43]
|
||||
FileName=..\..\..\src-IL\src\il_devil.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit44]
|
||||
FileName=..\..\..\src-IL\src\il_doom.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit45]
|
||||
FileName=..\..\..\src-IL\src\il_endian.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit46]
|
||||
FileName=..\..\..\src-IL\src\il_error.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit47]
|
||||
FileName=..\..\..\src-IL\src\il_fastconv.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit48]
|
||||
FileName=..\..\..\src-IL\src\il_files.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit49]
|
||||
FileName=..\..\..\src-IL\src\il_gif.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit50]
|
||||
FileName=..\..\..\src-IL\src\il_hdr.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit51]
|
||||
FileName=..\..\..\src-IL\src\il_header.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit52]
|
||||
FileName=..\..\..\src-IL\src\il_icon.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit53]
|
||||
FileName=..\..\..\src-IL\src\il_internal.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit54]
|
||||
FileName=..\..\..\src-IL\src\il_io.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit55]
|
||||
FileName=..\..\..\src-IL\src\il_jpeg.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit56]
|
||||
FileName=..\..\..\src-IL\src\il_lif.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit57]
|
||||
FileName=..\..\..\src-IL\src\il_main.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit58]
|
||||
FileName=..\..\..\src-IL\src\il_manip.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit59]
|
||||
FileName=..\..\..\src-IL\src\il_mdl.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit60]
|
||||
FileName=..\..\..\src-IL\src\il_mng.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit61]
|
||||
FileName=..\..\..\src-IL\src\il_neuquant.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit62]
|
||||
FileName=..\..\..\src-IL\src\il_pal.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit63]
|
||||
FileName=..\..\..\src-IL\src\il_pcd.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit64]
|
||||
FileName=..\..\..\src-IL\src\il_pcx.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit65]
|
||||
FileName=..\..\..\src-IL\src\il_pic.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit66]
|
||||
FileName=..\..\..\src-IL\src\il_pix.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit67]
|
||||
FileName=..\..\..\src-IL\src\il_png.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit68]
|
||||
FileName=..\..\..\src-IL\src\il_pnm.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit69]
|
||||
FileName=..\..\..\src-IL\src\il_profiles.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit70]
|
||||
FileName=..\..\..\src-IL\src\il_psd.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit71]
|
||||
FileName=..\..\..\src-IL\src\il_psp.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit72]
|
||||
FileName=..\..\..\src-IL\src\il_pxr.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit73]
|
||||
FileName=..\..\..\src-IL\src\il_quantizer.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit74]
|
||||
FileName=..\..\..\src-IL\src\il_raw.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit75]
|
||||
FileName=..\..\..\src-IL\src\il_rawdata.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit76]
|
||||
FileName=..\..\..\src-IL\src\il_register.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit77]
|
||||
FileName=..\..\..\src-IL\src\il_rle.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit78]
|
||||
FileName=..\..\..\src-IL\src\il_sgi.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit79]
|
||||
FileName=..\..\..\src-IL\src\il_stack.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit80]
|
||||
FileName=..\..\..\src-IL\src\il_states.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit81]
|
||||
FileName=..\..\..\src-IL\src\il_targa.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit82]
|
||||
FileName=..\..\..\src-IL\src\il_tiff.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit83]
|
||||
FileName=..\..\..\src-IL\src\il_utility.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit84]
|
||||
FileName=..\..\..\src-IL\src\il_wal.c
|
||||
CompileCpp=0
|
||||
Folder=IL
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[VersionInfo]
|
||||
Major=0
|
||||
Minor=1
|
||||
Release=1
|
||||
Build=1
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=
|
||||
AutoIncBuildNr=0
|
||||
|
||||
Executable
+283
@@ -0,0 +1,283 @@
|
||||
[Editor_0]
|
||||
CursorCol=6
|
||||
CursorRow=105
|
||||
TopLine=75
|
||||
LeftChar=1
|
||||
Open=0
|
||||
Top=0
|
||||
[Editors]
|
||||
Order=
|
||||
Focused=-1
|
||||
[Editor_1]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_2]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_3]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_4]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_5]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_6]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_7]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_8]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_9]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_10]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_11]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_12]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_13]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_14]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_15]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=5
|
||||
CursorRow=237
|
||||
TopLine=222
|
||||
LeftChar=1
|
||||
[Editor_16]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_17]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_18]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_19]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_20]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_21]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_22]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_23]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_24]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_25]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_26]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_27]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_28]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_29]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_30]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_31]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_32]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=2
|
||||
CursorRow=24
|
||||
TopLine=1
|
||||
LeftChar=1
|
||||
[Editor_33]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_34]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_35]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_36]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_37]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_38]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_39]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_40]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_41]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_42]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=92
|
||||
CursorRow=84
|
||||
TopLine=55
|
||||
LeftChar=1
|
||||
[Editor_43]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_44]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_45]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_46]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_47]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_48]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_49]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_50]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_51]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_52]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_53]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_54]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_55]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_56]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_57]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_58]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_59]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_60]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_61]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_62]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_63]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_64]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_65]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_66]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_67]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_68]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=36
|
||||
CursorRow=26
|
||||
TopLine=1
|
||||
LeftChar=1
|
||||
[Editor_69]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_70]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_71]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=2
|
||||
CursorRow=21
|
||||
TopLine=1
|
||||
LeftChar=1
|
||||
[Editor_72]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_73]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_74]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_75]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_76]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_77]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_78]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_79]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_80]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_81]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=1
|
||||
CursorRow=348
|
||||
TopLine=331
|
||||
LeftChar=1
|
||||
[Editor_82]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_83]
|
||||
Open=0
|
||||
Top=0
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
# Project: IL
|
||||
# Makefile created by Dev-C++ 4.9.8.10
|
||||
|
||||
CPP = g++.exe
|
||||
CC = gcc.exe
|
||||
WINDRES = windres.exe
|
||||
RES =
|
||||
OBJ = .objects/il_xpm.o .objects/il_alloc.o .objects/il_bits.o .objects/il_bmp.o .objects/il_convbuff.o .objects/il_convert.o .objects/il_cut.o .objects/il_dcx.o .objects/il_dds.o .objects/il_dds-save.o .objects/il_devil.o .objects/il_doom.o .objects/il_endian.o .objects/il_error.o .objects/il_fastconv.o .objects/il_files.o .objects/il_gif.o .objects/il_hdr.o .objects/il_header.o .objects/il_icon.o .objects/il_internal.o .objects/il_io.o .objects/il_jpeg.o .objects/il_lif.o .objects/il_main.o .objects/il_manip.o .objects/il_mdl.o .objects/il_mng.o .objects/il_neuquant.o .objects/il_pal.o .objects/il_pcd.o .objects/il_pcx.o .objects/il_pic.o .objects/il_pix.o .objects/il_png.o .objects/il_pnm.o .objects/il_profiles.o .objects/il_psd.o .objects/il_psp.o .objects/il_pxr.o .objects/il_quantizer.o .objects/il_raw.o .objects/il_rawdata.o .objects/il_register.o .objects/il_rle.o .objects/il_sgi.o .objects/il_stack.o .objects/il_states.o .objects/il_targa.o .objects/il_tiff.o .objects/il_utility.o .objects/il_wal.o $(RES)
|
||||
LINKOBJ = .objects/il_xpm.o .objects/il_alloc.o .objects/il_bits.o .objects/il_bmp.o .objects/il_convbuff.o .objects/il_convert.o .objects/il_cut.o .objects/il_dcx.o .objects/il_dds.o .objects/il_dds-save.o .objects/il_devil.o .objects/il_doom.o .objects/il_endian.o .objects/il_error.o .objects/il_fastconv.o .objects/il_files.o .objects/il_gif.o .objects/il_hdr.o .objects/il_header.o .objects/il_icon.o .objects/il_internal.o .objects/il_io.o .objects/il_jpeg.o .objects/il_lif.o .objects/il_main.o .objects/il_manip.o .objects/il_mdl.o .objects/il_mng.o .objects/il_neuquant.o .objects/il_pal.o .objects/il_pcd.o .objects/il_pcx.o .objects/il_pic.o .objects/il_pix.o .objects/il_png.o .objects/il_pnm.o .objects/il_profiles.o .objects/il_psd.o .objects/il_psp.o .objects/il_pxr.o .objects/il_quantizer.o .objects/il_raw.o .objects/il_rawdata.o .objects/il_register.o .objects/il_rle.o .objects/il_sgi.o .objects/il_stack.o .objects/il_states.o .objects/il_targa.o .objects/il_tiff.o .objects/il_utility.o .objects/il_wal.o $(RES)
|
||||
LIBS = -L"C:/Dev-Cpp/lib" -L"C:/Libraries/libjpeg/lib" -L"C:/Libraries/libpng/lib" -L"C:/Libraries/libmng/lib" -L"C:/Libraries/tiff-v3.6.1/lib" -L"C:/Libraries/lcms/lib/DevCpp" -L"C:/Libraries/zlib/lib" --no-export-all-symbols --add-stdcall-alias -lz -ltiff -lpng -ljpeg -lmng -llcms
|
||||
INCS = -I"C:/Dev-Cpp/include" -I"C:/Libraries/libjpeg" -I"C:/Libraries/libpng" -I"C:/Libraries/tiff-v3.6.1/libtiff" -I"C:/Libraries/libmng" -I"C:/Libraries/zlib" -I"C:/Libraries/lcms/include" -I"C:/Libraries/DevIL/include" -I"C:/Libraries/DevIL/src-IL/include"
|
||||
CXXINCS = -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/Libraries/DevIL/include" -I"C:/Libraries/DevIL/src-IL/include"
|
||||
BIN = ../../../lib/IL.dll
|
||||
CXXFLAGS = $(CXXINCS)-DBUILDING_DLL=1
|
||||
CFLAGS = $(INCS)-DBUILDING_DLL=1
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before ../../../lib/IL.dll all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
rm -f $(OBJ) $(BIN)
|
||||
|
||||
DLLWRAP=dllwrap.exe
|
||||
DEFFILE=../../../lib/libIL.def
|
||||
STATICLIB=../../../lib/libIL.a
|
||||
|
||||
$(BIN): $(LINKOBJ)
|
||||
$(DLLWRAP) --output-def $(DEFFILE) --implib $(STATICLIB) $(LINKOBJ) $(LIBS) -o $(BIN)
|
||||
|
||||
.objects/il_xpm.o: ../../../src-IL/src/il_xpm.c
|
||||
$(CC) -c ../../../src-IL/src/il_xpm.c -o .objects/il_xpm.o $(CFLAGS)
|
||||
|
||||
.objects/il_alloc.o: ../../../src-IL/src/il_alloc.c
|
||||
$(CC) -c ../../../src-IL/src/il_alloc.c -o .objects/il_alloc.o $(CFLAGS)
|
||||
|
||||
.objects/il_bits.o: ../../../src-IL/src/il_bits.c
|
||||
$(CC) -c ../../../src-IL/src/il_bits.c -o .objects/il_bits.o $(CFLAGS)
|
||||
|
||||
.objects/il_bmp.o: ../../../src-IL/src/il_bmp.c
|
||||
$(CC) -c ../../../src-IL/src/il_bmp.c -o .objects/il_bmp.o $(CFLAGS)
|
||||
|
||||
.objects/il_convbuff.o: ../../../src-IL/src/il_convbuff.c
|
||||
$(CC) -c ../../../src-IL/src/il_convbuff.c -o .objects/il_convbuff.o $(CFLAGS)
|
||||
|
||||
.objects/il_convert.o: ../../../src-IL/src/il_convert.c
|
||||
$(CC) -c ../../../src-IL/src/il_convert.c -o .objects/il_convert.o $(CFLAGS)
|
||||
|
||||
.objects/il_cut.o: ../../../src-IL/src/il_cut.c
|
||||
$(CC) -c ../../../src-IL/src/il_cut.c -o .objects/il_cut.o $(CFLAGS)
|
||||
|
||||
.objects/il_dcx.o: ../../../src-IL/src/il_dcx.c
|
||||
$(CC) -c ../../../src-IL/src/il_dcx.c -o .objects/il_dcx.o $(CFLAGS)
|
||||
|
||||
.objects/il_dds.o: ../../../src-IL/src/il_dds.c
|
||||
$(CC) -c ../../../src-IL/src/il_dds.c -o .objects/il_dds.o $(CFLAGS)
|
||||
|
||||
.objects/il_dds-save.o: ../../../src-IL/src/il_dds-save.c
|
||||
$(CC) -c ../../../src-IL/src/il_dds-save.c -o .objects/il_dds-save.o $(CFLAGS)
|
||||
|
||||
.objects/il_devil.o: ../../../src-IL/src/il_devil.c
|
||||
$(CC) -c ../../../src-IL/src/il_devil.c -o .objects/il_devil.o $(CFLAGS)
|
||||
|
||||
.objects/il_doom.o: ../../../src-IL/src/il_doom.c
|
||||
$(CC) -c ../../../src-IL/src/il_doom.c -o .objects/il_doom.o $(CFLAGS)
|
||||
|
||||
.objects/il_endian.o: ../../../src-IL/src/il_endian.c
|
||||
$(CC) -c ../../../src-IL/src/il_endian.c -o .objects/il_endian.o $(CFLAGS)
|
||||
|
||||
.objects/il_error.o: ../../../src-IL/src/il_error.c
|
||||
$(CC) -c ../../../src-IL/src/il_error.c -o .objects/il_error.o $(CFLAGS)
|
||||
|
||||
.objects/il_fastconv.o: ../../../src-IL/src/il_fastconv.c
|
||||
$(CC) -c ../../../src-IL/src/il_fastconv.c -o .objects/il_fastconv.o $(CFLAGS)
|
||||
|
||||
.objects/il_files.o: ../../../src-IL/src/il_files.c
|
||||
$(CC) -c ../../../src-IL/src/il_files.c -o .objects/il_files.o $(CFLAGS)
|
||||
|
||||
.objects/il_gif.o: ../../../src-IL/src/il_gif.c
|
||||
$(CC) -c ../../../src-IL/src/il_gif.c -o .objects/il_gif.o $(CFLAGS)
|
||||
|
||||
.objects/il_hdr.o: ../../../src-IL/src/il_hdr.c
|
||||
$(CC) -c ../../../src-IL/src/il_hdr.c -o .objects/il_hdr.o $(CFLAGS)
|
||||
|
||||
.objects/il_header.o: ../../../src-IL/src/il_header.c
|
||||
$(CC) -c ../../../src-IL/src/il_header.c -o .objects/il_header.o $(CFLAGS)
|
||||
|
||||
.objects/il_icon.o: ../../../src-IL/src/il_icon.c
|
||||
$(CC) -c ../../../src-IL/src/il_icon.c -o .objects/il_icon.o $(CFLAGS)
|
||||
|
||||
.objects/il_internal.o: ../../../src-IL/src/il_internal.c
|
||||
$(CC) -c ../../../src-IL/src/il_internal.c -o .objects/il_internal.o $(CFLAGS)
|
||||
|
||||
.objects/il_io.o: ../../../src-IL/src/il_io.c
|
||||
$(CC) -c ../../../src-IL/src/il_io.c -o .objects/il_io.o $(CFLAGS)
|
||||
|
||||
.objects/il_jpeg.o: ../../../src-IL/src/il_jpeg.c
|
||||
$(CC) -c ../../../src-IL/src/il_jpeg.c -o .objects/il_jpeg.o $(CFLAGS)
|
||||
|
||||
.objects/il_lif.o: ../../../src-IL/src/il_lif.c
|
||||
$(CC) -c ../../../src-IL/src/il_lif.c -o .objects/il_lif.o $(CFLAGS)
|
||||
|
||||
.objects/il_main.o: ../../../src-IL/src/il_main.c
|
||||
$(CC) -c ../../../src-IL/src/il_main.c -o .objects/il_main.o $(CFLAGS)
|
||||
|
||||
.objects/il_manip.o: ../../../src-IL/src/il_manip.c
|
||||
$(CC) -c ../../../src-IL/src/il_manip.c -o .objects/il_manip.o $(CFLAGS)
|
||||
|
||||
.objects/il_mdl.o: ../../../src-IL/src/il_mdl.c
|
||||
$(CC) -c ../../../src-IL/src/il_mdl.c -o .objects/il_mdl.o $(CFLAGS)
|
||||
|
||||
.objects/il_mng.o: ../../../src-IL/src/il_mng.c
|
||||
$(CC) -c ../../../src-IL/src/il_mng.c -o .objects/il_mng.o $(CFLAGS)
|
||||
|
||||
.objects/il_neuquant.o: ../../../src-IL/src/il_neuquant.c
|
||||
$(CC) -c ../../../src-IL/src/il_neuquant.c -o .objects/il_neuquant.o $(CFLAGS)
|
||||
|
||||
.objects/il_pal.o: ../../../src-IL/src/il_pal.c
|
||||
$(CC) -c ../../../src-IL/src/il_pal.c -o .objects/il_pal.o $(CFLAGS)
|
||||
|
||||
.objects/il_pcd.o: ../../../src-IL/src/il_pcd.c
|
||||
$(CC) -c ../../../src-IL/src/il_pcd.c -o .objects/il_pcd.o $(CFLAGS)
|
||||
|
||||
.objects/il_pcx.o: ../../../src-IL/src/il_pcx.c
|
||||
$(CC) -c ../../../src-IL/src/il_pcx.c -o .objects/il_pcx.o $(CFLAGS)
|
||||
|
||||
.objects/il_pic.o: ../../../src-IL/src/il_pic.c
|
||||
$(CC) -c ../../../src-IL/src/il_pic.c -o .objects/il_pic.o $(CFLAGS)
|
||||
|
||||
.objects/il_pix.o: ../../../src-IL/src/il_pix.c
|
||||
$(CC) -c ../../../src-IL/src/il_pix.c -o .objects/il_pix.o $(CFLAGS)
|
||||
|
||||
.objects/il_png.o: ../../../src-IL/src/il_png.c
|
||||
$(CC) -c ../../../src-IL/src/il_png.c -o .objects/il_png.o $(CFLAGS)
|
||||
|
||||
.objects/il_pnm.o: ../../../src-IL/src/il_pnm.c
|
||||
$(CC) -c ../../../src-IL/src/il_pnm.c -o .objects/il_pnm.o $(CFLAGS)
|
||||
|
||||
.objects/il_profiles.o: ../../../src-IL/src/il_profiles.c
|
||||
$(CC) -c ../../../src-IL/src/il_profiles.c -o .objects/il_profiles.o $(CFLAGS)
|
||||
|
||||
.objects/il_psd.o: ../../../src-IL/src/il_psd.c
|
||||
$(CC) -c ../../../src-IL/src/il_psd.c -o .objects/il_psd.o $(CFLAGS)
|
||||
|
||||
.objects/il_psp.o: ../../../src-IL/src/il_psp.c
|
||||
$(CC) -c ../../../src-IL/src/il_psp.c -o .objects/il_psp.o $(CFLAGS)
|
||||
|
||||
.objects/il_pxr.o: ../../../src-IL/src/il_pxr.c
|
||||
$(CC) -c ../../../src-IL/src/il_pxr.c -o .objects/il_pxr.o $(CFLAGS)
|
||||
|
||||
.objects/il_quantizer.o: ../../../src-IL/src/il_quantizer.c
|
||||
$(CC) -c ../../../src-IL/src/il_quantizer.c -o .objects/il_quantizer.o $(CFLAGS)
|
||||
|
||||
.objects/il_raw.o: ../../../src-IL/src/il_raw.c
|
||||
$(CC) -c ../../../src-IL/src/il_raw.c -o .objects/il_raw.o $(CFLAGS)
|
||||
|
||||
.objects/il_rawdata.o: ../../../src-IL/src/il_rawdata.c
|
||||
$(CC) -c ../../../src-IL/src/il_rawdata.c -o .objects/il_rawdata.o $(CFLAGS)
|
||||
|
||||
.objects/il_register.o: ../../../src-IL/src/il_register.c
|
||||
$(CC) -c ../../../src-IL/src/il_register.c -o .objects/il_register.o $(CFLAGS)
|
||||
|
||||
.objects/il_rle.o: ../../../src-IL/src/il_rle.c
|
||||
$(CC) -c ../../../src-IL/src/il_rle.c -o .objects/il_rle.o $(CFLAGS)
|
||||
|
||||
.objects/il_sgi.o: ../../../src-IL/src/il_sgi.c
|
||||
$(CC) -c ../../../src-IL/src/il_sgi.c -o .objects/il_sgi.o $(CFLAGS)
|
||||
|
||||
.objects/il_stack.o: ../../../src-IL/src/il_stack.c
|
||||
$(CC) -c ../../../src-IL/src/il_stack.c -o .objects/il_stack.o $(CFLAGS)
|
||||
|
||||
.objects/il_states.o: ../../../src-IL/src/il_states.c
|
||||
$(CC) -c ../../../src-IL/src/il_states.c -o .objects/il_states.o $(CFLAGS)
|
||||
|
||||
.objects/il_targa.o: ../../../src-IL/src/il_targa.c
|
||||
$(CC) -c ../../../src-IL/src/il_targa.c -o .objects/il_targa.o $(CFLAGS)
|
||||
|
||||
.objects/il_tiff.o: ../../../src-IL/src/il_tiff.c
|
||||
$(CC) -c ../../../src-IL/src/il_tiff.c -o .objects/il_tiff.o $(CFLAGS)
|
||||
|
||||
.objects/il_utility.o: ../../../src-IL/src/il_utility.c
|
||||
$(CC) -c ../../../src-IL/src/il_utility.c -o .objects/il_utility.o $(CFLAGS)
|
||||
|
||||
.objects/il_wal.o: ../../../src-IL/src/il_wal.c
|
||||
$(CC) -c ../../../src-IL/src/il_wal.c -o .objects/il_wal.o $(CFLAGS)
|
||||
Executable
+299
@@ -0,0 +1,299 @@
|
||||
[Project]
|
||||
FileName=ILU.dev
|
||||
Name=ILU
|
||||
UnitCount=25
|
||||
Type=3
|
||||
Ver=1
|
||||
ObjFiles=
|
||||
Includes=C:\Libraries\DevIL\include;C:\Libraries\DevIL\src-ILU\include
|
||||
Libs=
|
||||
PrivateResource=
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=
|
||||
CppCompiler=
|
||||
Linker=../../../lib/libIL.a_@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=..\..\..\lib
|
||||
ObjectOutput=.objects
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=ILU.a
|
||||
HostApplication=
|
||||
Folders=
|
||||
CommandLine=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=0
|
||||
CompilerSettings=0000000000000000000000
|
||||
|
||||
[Unit1]
|
||||
FileName=..\..\..\include\IL\ilu_region.h
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit2]
|
||||
FileName=..\..\..\include\IL\ilu.h
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit3]
|
||||
FileName=..\..\..\src-ILU\include\ilu_states.h
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit4]
|
||||
FileName=..\..\..\src-ILU\include\ilu_alloc.h
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit5]
|
||||
FileName=..\..\..\src-ILU\include\ilu_filter.h
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit6]
|
||||
FileName=..\..\..\src-ILU\include\ilu_internal.h
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit7]
|
||||
FileName=..\..\..\src-ILU\include\ilu_mipmap.h
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit8]
|
||||
FileName=..\..\..\src-ILU\include\ilu_region.h
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit9]
|
||||
FileName=..\..\..\src-ILU\src\ilu_utilities.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit10]
|
||||
FileName=..\..\..\src-ILU\src\ilu_alloc.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit11]
|
||||
FileName=..\..\..\src-ILU\src\ilu_error.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit12]
|
||||
FileName=..\..\..\src-ILU\src\ilu_filter.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit13]
|
||||
FileName=..\..\..\src-ILU\src\ilu_filter_rcg.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit14]
|
||||
FileName=..\..\..\src-ILU\src\ilu_internal.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit15]
|
||||
FileName=..\..\..\src-ILU\src\ilu_main.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit16]
|
||||
FileName=..\..\..\src-ILU\src\ilu_manip.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit17]
|
||||
FileName=..\..\..\src-ILU\src\ilu_mipmap.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit18]
|
||||
FileName=..\..\..\src-ILU\src\ilu_noise.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit19]
|
||||
FileName=..\..\..\src-ILU\src\ilu_region.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit20]
|
||||
FileName=..\..\..\src-ILU\src\ilu_rotate.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit21]
|
||||
FileName=..\..\..\src-ILU\src\ilu_scale2d.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit22]
|
||||
FileName=..\..\..\src-ILU\src\ilu_scale3d.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit23]
|
||||
FileName=..\..\..\src-ILU\src\ilu_scale.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit24]
|
||||
FileName=..\..\..\src-ILU\src\ilu_scaling.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit25]
|
||||
FileName=..\..\..\src-ILU\src\ilu_states.c
|
||||
CompileCpp=0
|
||||
Folder=ILU
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[VersionInfo]
|
||||
Major=0
|
||||
Minor=1
|
||||
Release=1
|
||||
Build=1
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=
|
||||
AutoIncBuildNr=0
|
||||
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
# Project: ILU
|
||||
# Makefile created by Dev-C++ 4.9.8.10
|
||||
|
||||
CPP = g++.exe
|
||||
CC = gcc.exe
|
||||
WINDRES = windres.exe
|
||||
RES =
|
||||
OBJ = .objects/ilu_utilities.o .objects/ilu_alloc.o .objects/ilu_error.o .objects/ilu_filter.o .objects/ilu_filter_rcg.o .objects/ilu_internal.o .objects/ilu_main.o .objects/ilu_manip.o .objects/ilu_mipmap.o .objects/ilu_noise.o .objects/ilu_region.o .objects/ilu_rotate.o .objects/ilu_scale2d.o .objects/ilu_scale3d.o .objects/ilu_scale.o .objects/ilu_scaling.o .objects/ilu_states.o $(RES)
|
||||
LINKOBJ = .objects/ilu_utilities.o .objects/ilu_alloc.o .objects/ilu_error.o .objects/ilu_filter.o .objects/ilu_filter_rcg.o .objects/ilu_internal.o .objects/ilu_main.o .objects/ilu_manip.o .objects/ilu_mipmap.o .objects/ilu_noise.o .objects/ilu_region.o .objects/ilu_rotate.o .objects/ilu_scale2d.o .objects/ilu_scale3d.o .objects/ilu_scale.o .objects/ilu_scaling.o .objects/ilu_states.o $(RES)
|
||||
LIBS = -L"C:/Dev-Cpp/lib" -L"C:/Libraries/libjpeg/lib" -L"C:/Libraries/libpng/lib" -L"C:/Libraries/libmng/lib" -L"C:/Libraries/libtiff/lib" -L"C:/Libraries/lcms/lib/Dev-Cpp" ../../../lib/libIL.a
|
||||
INCS = -I"C:/Dev-Cpp/include" -I"C:/Libraries/libjpeg" -I"C:/Libraries/libpng" -I"C:/Libraries/libtiff" -I"C:/Libraries/libmng" -I"C:/Libraries/zlib" -I"C:/Libraries/lcms/include" -I"C:/Libraries/DevIL/include" -I"C:/Libraries/DevIL/src-ILU/include"
|
||||
CXXINCS = -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/Libraries/DevIL/include" -I"C:/Libraries/DevIL/src-ILU/include"
|
||||
BIN = ../../../lib/ILU.dll
|
||||
CXXFLAGS = $(CXXINCS)
|
||||
CFLAGS = $(INCS)
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before ../../../lib/ILU.dll all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
rm -f $(OBJ) $(BIN)
|
||||
|
||||
DLLWRAP=dllwrap.exe
|
||||
DEFFILE=../../../lib/libILU.def
|
||||
STATICLIB=../../../lib/libILU.a
|
||||
|
||||
$(BIN): $(LINKOBJ)
|
||||
$(DLLWRAP) --output-def $(DEFFILE) --implib $(STATICLIB) $(LINKOBJ) $(LIBS) -o $(BIN)
|
||||
|
||||
.objects/ilu_utilities.o: ../../../src-ILU/src/ilu_utilities.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_utilities.c -o .objects/ilu_utilities.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_alloc.o: ../../../src-ILU/src/ilu_alloc.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_alloc.c -o .objects/ilu_alloc.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_error.o: ../../../src-ILU/src/ilu_error.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_error.c -o .objects/ilu_error.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_filter.o: ../../../src-ILU/src/ilu_filter.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_filter.c -o .objects/ilu_filter.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_filter_rcg.o: ../../../src-ILU/src/ilu_filter_rcg.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_filter_rcg.c -o .objects/ilu_filter_rcg.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_internal.o: ../../../src-ILU/src/ilu_internal.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_internal.c -o .objects/ilu_internal.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_main.o: ../../../src-ILU/src/ilu_main.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_main.c -o .objects/ilu_main.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_manip.o: ../../../src-ILU/src/ilu_manip.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_manip.c -o .objects/ilu_manip.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_mipmap.o: ../../../src-ILU/src/ilu_mipmap.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_mipmap.c -o .objects/ilu_mipmap.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_noise.o: ../../../src-ILU/src/ilu_noise.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_noise.c -o .objects/ilu_noise.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_region.o: ../../../src-ILU/src/ilu_region.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_region.c -o .objects/ilu_region.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_rotate.o: ../../../src-ILU/src/ilu_rotate.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_rotate.c -o .objects/ilu_rotate.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_scale2d.o: ../../../src-ILU/src/ilu_scale2d.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_scale2d.c -o .objects/ilu_scale2d.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_scale3d.o: ../../../src-ILU/src/ilu_scale3d.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_scale3d.c -o .objects/ilu_scale3d.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_scale.o: ../../../src-ILU/src/ilu_scale.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_scale.c -o .objects/ilu_scale.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_scaling.o: ../../../src-ILU/src/ilu_scaling.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_scaling.c -o .objects/ilu_scaling.o $(CFLAGS)
|
||||
|
||||
.objects/ilu_states.o: ../../../src-ILU/src/ilu_states.c
|
||||
$(CC) -c ../../../src-ILU/src/ilu_states.c -o .objects/ilu_states.o $(CFLAGS)
|
||||
+189
@@ -0,0 +1,189 @@
|
||||
[Project]
|
||||
FileName=ILUT.dev
|
||||
Name=ILUT
|
||||
UnitCount=14
|
||||
Type=3
|
||||
Ver=1
|
||||
ObjFiles=
|
||||
Includes=C:\Libraries\DevIL\include;C:\Libraries\DevIL\src-ILUT\include
|
||||
Libs=
|
||||
PrivateResource=
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=
|
||||
CppCompiler=
|
||||
Linker=../../../lib/libIL.a_@@_../../../lib/libILU.a_@@_-lopengl32_@@_-lglu32_@@_-lgdi32_@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=..\..\..\lib
|
||||
ObjectOutput=.objects
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=ILUT.dll
|
||||
HostApplication=
|
||||
Folders=
|
||||
CommandLine=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=0
|
||||
CompilerSettings=0000000000000000000000
|
||||
|
||||
[VersionInfo]
|
||||
Major=0
|
||||
Minor=1
|
||||
Release=1
|
||||
Build=1
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=
|
||||
AutoIncBuildNr=0
|
||||
|
||||
[Unit1]
|
||||
FileName=..\..\..\include\IL\ilut.h
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit2]
|
||||
FileName=..\..\..\src-ILUT\include\ilut_states.h
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit3]
|
||||
FileName=..\..\..\src-ILUT\include\ilut_allegro.h
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit4]
|
||||
FileName=..\..\..\src-ILUT\include\ilut_internal.h
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit5]
|
||||
FileName=..\..\..\src-ILUT\include\ilut_opengl.h
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit6]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_win32.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit7]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_allegro.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit8]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_directx9.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit9]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_directx.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit10]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_internal.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit11]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_main.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit12]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_opengl.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit13]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_sdlsurface.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit14]
|
||||
FileName=..\..\..\src-ILUT\src\ilut_states.c
|
||||
CompileCpp=0
|
||||
Folder=ILUT
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
# Project: ILUT
|
||||
# Makefile created by Dev-C++ 4.9.8.10
|
||||
|
||||
CPP = g++.exe
|
||||
CC = gcc.exe
|
||||
WINDRES = windres.exe
|
||||
RES =
|
||||
OBJ = .objects/ilut_win32.o .objects/ilut_allegro.o .objects/ilut_directx9.o .objects/ilut_directx.o .objects/ilut_internal.o .objects/ilut_main.o .objects/ilut_opengl.o .objects/ilut_sdlsurface.o .objects/ilut_states.o $(RES)
|
||||
LINKOBJ = .objects/ilut_win32.o .objects/ilut_allegro.o .objects/ilut_directx9.o .objects/ilut_directx.o .objects/ilut_internal.o .objects/ilut_main.o .objects/ilut_opengl.o .objects/ilut_sdlsurface.o .objects/ilut_states.o $(RES)
|
||||
LIBS = -L"C:/Dev-Cpp/lib" -L"C:/Libraries/libjpeg/lib" -L"C:/Libraries/libpng/lib" -L"C:/Libraries/libmng/lib" -L"C:/Libraries/libtiff/lib" -L"C:/Libraries/lcms/lib/Dev-Cpp" ../../../lib/libIL.a ../../../lib/libILU.a -lopengl32 -lglu32 -lgdi32
|
||||
INCS = -I"C:/Dev-Cpp/include" -I"C:/Libraries/libjpeg" -I"C:/Libraries/libpng" -I"C:/Libraries/libtiff" -I"C:/Libraries/libmng" -I"C:/Libraries/zlib" -I"C:/Libraries/lcms/include" -I"C:/Libraries/DevIL/include" -I"C:/Libraries/DevIL/src-ILUT/include"
|
||||
CXXINCS = -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/Libraries/DevIL/include" -I"C:/Libraries/DevIL/src-ILUT/include"
|
||||
BIN = ../../../lib/ILUT.dll
|
||||
CXXFLAGS = $(CXXINCS)
|
||||
CFLAGS = $(INCS)
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before ../../../lib/ILUT.dll all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
rm -f $(OBJ) $(BIN)
|
||||
|
||||
DLLWRAP=dllwrap.exe
|
||||
DEFFILE=../../../lib/libILUT.def
|
||||
STATICLIB=../../../lib/libILUT.a
|
||||
|
||||
$(BIN): $(LINKOBJ)
|
||||
$(DLLWRAP) --output-def $(DEFFILE) --implib $(STATICLIB) $(LINKOBJ) $(LIBS) -o $(BIN)
|
||||
|
||||
.objects/ilut_win32.o: ../../../src-ILUT/src/ilut_win32.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_win32.c -o .objects/ilut_win32.o $(CFLAGS)
|
||||
|
||||
.objects/ilut_allegro.o: ../../../src-ILUT/src/ilut_allegro.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_allegro.c -o .objects/ilut_allegro.o $(CFLAGS)
|
||||
|
||||
.objects/ilut_directx9.o: ../../../src-ILUT/src/ilut_directx9.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_directx9.c -o .objects/ilut_directx9.o $(CFLAGS)
|
||||
|
||||
.objects/ilut_directx.o: ../../../src-ILUT/src/ilut_directx.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_directx.c -o .objects/ilut_directx.o $(CFLAGS)
|
||||
|
||||
.objects/ilut_internal.o: ../../../src-ILUT/src/ilut_internal.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_internal.c -o .objects/ilut_internal.o $(CFLAGS)
|
||||
|
||||
.objects/ilut_main.o: ../../../src-ILUT/src/ilut_main.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_main.c -o .objects/ilut_main.o $(CFLAGS)
|
||||
|
||||
.objects/ilut_opengl.o: ../../../src-ILUT/src/ilut_opengl.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_opengl.c -o .objects/ilut_opengl.o $(CFLAGS)
|
||||
|
||||
.objects/ilut_sdlsurface.o: ../../../src-ILUT/src/ilut_sdlsurface.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_sdlsurface.c -o .objects/ilut_sdlsurface.o $(CFLAGS)
|
||||
|
||||
.objects/ilut_states.o: ../../../src-ILUT/src/ilut_states.c
|
||||
$(CC) -c ../../../src-ILUT/src/ilut_states.c -o .objects/ilut_states.o $(CFLAGS)
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#include "stdafx.h"
|
||||
|
||||
using namespace System::Reflection;
|
||||
using namespace System::Runtime::CompilerServices;
|
||||
|
||||
//
|
||||
// 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("DevIL.NET")];
|
||||
[assembly:AssemblyDescriptionAttribute("DevIL.NET - Image Library for .NET framework")];
|
||||
[assembly:AssemblyConfigurationAttribute("")];
|
||||
[assembly:AssemblyCompanyAttribute("(C) 2005 - Marco Mastropaolo (http://www.mastropaolo.com)")];
|
||||
[assembly:AssemblyProductAttribute("(C) 2005 - Marco Mastropaolo (http://www.mastropaolo.com)")];
|
||||
[assembly:AssemblyCopyrightAttribute("(C) 2005 - Marco Mastropaolo (http://www.mastropaolo.com) - Released under BSD license")];
|
||||
[assembly:AssemblyTrademarkAttribute("(C) 2005 - Marco Mastropaolo (http://www.mastropaolo.com) - Released under BSD license")];
|
||||
[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.1.*")];
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project directory.
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly:AssemblyDelaySignAttribute(false)];
|
||||
[assembly:AssemblyKeyFileAttribute("")];
|
||||
[assembly:AssemblyKeyNameAttribute("")];
|
||||
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
DevIL.NET
|
||||
Copyright (c) 2005, Marco Mastropaolo
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of DevIL.NET nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
+308
@@ -0,0 +1,308 @@
|
||||
// DevIL.NET
|
||||
// Copyright (c) 2005, Marco Mastropaolo
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
// following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
// following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
// following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of DevIL.NET nor the names of its contributors may be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#using <mscorlib.dll>
|
||||
#using <System.Drawing.dll>
|
||||
#include <windows.h>
|
||||
#include "IL/il.h"
|
||||
#include "IL/ilu.h"
|
||||
|
||||
#undef LoadBitmap // brain damaged windows.h macros..
|
||||
|
||||
typedef ILboolean (*PFNILUSCALE)(ILuint Width, ILuint Height, ILuint Depth);
|
||||
typedef ILvoid (*PFNILUIMAGEPARAMETER)(ILenum PName, ILenum Param);
|
||||
|
||||
|
||||
|
||||
namespace DevIL
|
||||
{
|
||||
class StringAutoMarshal
|
||||
{
|
||||
char* m_string;
|
||||
|
||||
inline explicit StringAutoMarshal(const StringAutoMarshal& i_Source) : m_string(NULL) {}
|
||||
inline StringAutoMarshal& operator= (const StringAutoMarshal& i_Source) {}
|
||||
|
||||
public:
|
||||
inline explicit StringAutoMarshal(const System::String __gc* i_strString) : m_string(NULL)
|
||||
{
|
||||
m_string = (char*)(void*)System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(const_cast<System::String __gc*>(i_strString));
|
||||
}
|
||||
|
||||
|
||||
inline ~StringAutoMarshal()
|
||||
{
|
||||
System::Runtime::InteropServices::Marshal::FreeHGlobal((void*)m_string);
|
||||
}
|
||||
|
||||
inline char* GetNativeString()
|
||||
{
|
||||
return m_string;
|
||||
}
|
||||
|
||||
inline operator char*()
|
||||
{
|
||||
return m_string;
|
||||
}
|
||||
};
|
||||
|
||||
public __value enum DevILScaleFilter
|
||||
{
|
||||
NEAREST = ILU_NEAREST,
|
||||
LINEAR = ILU_LINEAR,
|
||||
BILINEAR = ILU_BILINEAR,
|
||||
BOX = ILU_SCALE_BOX,
|
||||
TRIANGLE = ILU_SCALE_TRIANGLE,
|
||||
BELL = ILU_SCALE_BELL,
|
||||
BSPLINE = ILU_SCALE_BSPLINE,
|
||||
LANCZOS3 = ILU_SCALE_LANCZOS3,
|
||||
MITCHELL = ILU_SCALE_MITCHELL
|
||||
};
|
||||
|
||||
public __value enum DevILScaleKind
|
||||
{
|
||||
DO_NOT_SCALE,
|
||||
WIDTH_AND_HEIGHT,
|
||||
WIDTH_ONLY,
|
||||
HEIGHT_ONLY,
|
||||
KEEPRATIO_USING_WIDTH,
|
||||
KEEPRATIO_USING_HEIGHT
|
||||
};
|
||||
|
||||
|
||||
public __value enum DevILErrorCode
|
||||
{
|
||||
OK = 0,
|
||||
ILU_DLL_NOT_FOUND = 0x0001,
|
||||
INVALID_ENUM = IL_INVALID_ENUM,
|
||||
OUT_OF_MEMORY = IL_OUT_OF_MEMORY,
|
||||
FORMAT_NOT_SUPPORTED = IL_FORMAT_NOT_SUPPORTED,
|
||||
INTERNAL_ERROR = IL_INTERNAL_ERROR,
|
||||
INVALID_VALUE = IL_INVALID_VALUE,
|
||||
ILLEGAL_OPERATION = IL_ILLEGAL_OPERATION,
|
||||
ILLEGAL_FILE_VALUE = IL_ILLEGAL_FILE_VALUE,
|
||||
INVALID_FILE_HEADER = IL_INVALID_FILE_HEADER,
|
||||
INVALID_PARAM = IL_INVALID_PARAM,
|
||||
COULD_NOT_OPEN_FILE = IL_COULD_NOT_OPEN_FILE,
|
||||
INVALID_EXTENSION = IL_INVALID_EXTENSION,
|
||||
FILE_ALREADY_EXISTS = IL_FILE_ALREADY_EXISTS,
|
||||
OUT_FORMAT_SAME = IL_OUT_FORMAT_SAME,
|
||||
STACK_OVERFLOW = IL_STACK_OVERFLOW,
|
||||
STACK_UNDERFLOW = IL_STACK_UNDERFLOW,
|
||||
INVALID_CONVERSION = IL_INVALID_CONVERSION,
|
||||
BAD_DIMENSIONS = IL_BAD_DIMENSIONS,
|
||||
FILE_READ_ERROR = IL_FILE_READ_ERROR,
|
||||
FILE_WRITE_ERROR = IL_FILE_WRITE_ERROR,
|
||||
LIB_GIF_ERROR = IL_LIB_GIF_ERROR,
|
||||
LIB_JPEG_ERROR = IL_LIB_JPEG_ERROR,
|
||||
LIB_PNG_ERROR = IL_LIB_PNG_ERROR,
|
||||
LIB_TIFF_ERROR = IL_LIB_TIFF_ERROR,
|
||||
LIB_MNG_ERROR = IL_LIB_MNG_ERROR,
|
||||
UNKNOWN_ERROR = IL_UNKNOWN_ERROR
|
||||
};
|
||||
|
||||
|
||||
public __gc class DevIL
|
||||
{
|
||||
protected:
|
||||
static ILuint s_iImageID = 0;
|
||||
static bool s_bInitDone = false;
|
||||
static bool s_bIluLoaded = false;
|
||||
static DevILErrorCode s_eErrCode = OK;
|
||||
static PFNILUSCALE pfnIluScale = NULL;
|
||||
static PFNILUIMAGEPARAMETER pfnIluImageParameter = NULL;
|
||||
static void LoadILU();
|
||||
public:
|
||||
static System::Drawing::Bitmap __gc* LoadBitmap(System::String __gc* i_szFileName);
|
||||
static System::Drawing::Bitmap __gc* LoadBitmapAndScale(System::String __gc* i_szFileName,
|
||||
int i_iWidth, int i_iHeight,
|
||||
DevILScaleFilter i_eFilter, DevILScaleKind i_eKind);
|
||||
static bool SaveBitmap(System::String __gc* i_szFileName, System::Drawing::Bitmap __gc* i_poBitmap);
|
||||
static DevILErrorCode GetErrorCode();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DevIL::DevIL::LoadILU()
|
||||
{
|
||||
HMODULE hM = LoadLibrary("ILU.dll");
|
||||
|
||||
if (hM)
|
||||
{
|
||||
pfnIluScale = (PFNILUSCALE)GetProcAddress(hM, "iluScale");
|
||||
pfnIluImageParameter = (PFNILUIMAGEPARAMETER)GetProcAddress(hM, "iluImageParameter");
|
||||
s_bIluLoaded = (pfnIluScale != NULL) && (pfnIluImageParameter != NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
System::Drawing::Bitmap __gc* DevIL::DevIL::LoadBitmap(System::String __gc* i_szFileName)
|
||||
{
|
||||
return LoadBitmapAndScale(i_szFileName, 0, 0, NEAREST, DO_NOT_SCALE);
|
||||
}
|
||||
|
||||
DevIL::DevILErrorCode DevIL::DevIL::GetErrorCode()
|
||||
{
|
||||
if (s_eErrCode == OK)
|
||||
{
|
||||
return DevILErrorCode(ilGetError());
|
||||
}
|
||||
else
|
||||
{
|
||||
DevILErrorCode eErr = s_eErrCode;
|
||||
s_eErrCode = OK;
|
||||
return eErr;
|
||||
}
|
||||
}
|
||||
|
||||
System::Drawing::Bitmap __gc* DevIL::DevIL::LoadBitmapAndScale(System::String __gc* i_szFileName,
|
||||
int i_iWidth, int i_iHeight,
|
||||
DevILScaleFilter i_eFilter,
|
||||
DevILScaleKind i_eKind)
|
||||
{
|
||||
if (!s_bInitDone)
|
||||
{
|
||||
ilInit();
|
||||
s_bInitDone = true;
|
||||
}
|
||||
ilGenImages(1, &s_iImageID);
|
||||
ilBindImage(s_iImageID);
|
||||
|
||||
if (0==ilLoadImage(StringAutoMarshal(i_szFileName)))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int iW = ilGetInteger(IL_IMAGE_WIDTH);
|
||||
int iH = ilGetInteger(IL_IMAGE_HEIGHT);
|
||||
bool bResize = true;
|
||||
|
||||
switch(i_eKind)
|
||||
{
|
||||
case WIDTH_AND_HEIGHT:
|
||||
iW = i_iWidth;
|
||||
iH = i_iHeight;
|
||||
break;
|
||||
case WIDTH_ONLY:
|
||||
iW = i_iWidth;
|
||||
break;
|
||||
case HEIGHT_ONLY:
|
||||
iH = i_iHeight;
|
||||
break;
|
||||
case KEEPRATIO_USING_WIDTH:
|
||||
iH = int(double(iH) * double(i_iWidth) / double(iW));
|
||||
iW = i_iWidth;
|
||||
break;
|
||||
case KEEPRATIO_USING_HEIGHT:
|
||||
iW = int(double(iW) * double(i_iHeight) / double(iH));
|
||||
iH = i_iHeight;
|
||||
break;
|
||||
case DO_NOT_SCALE:
|
||||
bResize = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
System::Drawing::Bitmap __gc* pBmp = __gc new System::Drawing::Bitmap(iW, iH, System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
|
||||
System::Drawing::Rectangle rect; rect.X = 0; rect.Y = 0; rect.Width = iW; rect.Height = iH;
|
||||
|
||||
System::Drawing::Imaging::BitmapData __gc* pBd = pBmp->LockBits(rect,
|
||||
System::Drawing::Imaging::ImageLockMode::WriteOnly,
|
||||
System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
|
||||
void* pScan0 = (void*)(pBd->Scan0);
|
||||
|
||||
// this is dangerous bc we ignore stride.. but it works and is FAST! ;)
|
||||
|
||||
if (bResize)
|
||||
{
|
||||
if (!s_bIluLoaded)
|
||||
{
|
||||
LoadILU();
|
||||
}
|
||||
|
||||
if (s_bIluLoaded)
|
||||
{
|
||||
pfnIluImageParameter(ILU_FILTER, (int)(i_eFilter));
|
||||
pfnIluScale(iW, iH, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
s_eErrCode = ILU_DLL_NOT_FOUND;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
ilConvertImage(IL_BGRA, IL_UNSIGNED_BYTE); // support for non 32bit images..
|
||||
ilCopyPixels(0, 0, 0, iW, iH, 1, IL_BGRA, IL_UNSIGNED_BYTE, pScan0);
|
||||
|
||||
ilDeleteImages(1, &s_iImageID);
|
||||
|
||||
pBmp->UnlockBits(pBd);
|
||||
|
||||
return pBmp;
|
||||
}
|
||||
|
||||
bool DevIL::DevIL::SaveBitmap(System::String __gc* i_szFileName, System::Drawing::Bitmap __gc* i_poBitmap)
|
||||
{
|
||||
if (!s_bInitDone)
|
||||
{
|
||||
ilInit();
|
||||
s_bInitDone = true;
|
||||
}
|
||||
ilGenImages(1, &s_iImageID);
|
||||
ilBindImage(s_iImageID);
|
||||
|
||||
int iW = i_poBitmap->get_Width();
|
||||
int iH = i_poBitmap->get_Height();
|
||||
|
||||
System::Drawing::Rectangle rect; rect.X = 0; rect.Y = 0; rect.Width = iW; rect.Height = iH;
|
||||
|
||||
i_poBitmap->RotateFlip(System::Drawing::RotateFlipType::RotateNoneFlipY);
|
||||
|
||||
System::Drawing::Imaging::BitmapData __gc* pBd = i_poBitmap->LockBits(rect,
|
||||
System::Drawing::Imaging::ImageLockMode::ReadOnly,
|
||||
System::Drawing::Imaging::PixelFormat::Format32bppArgb);
|
||||
|
||||
void* pScan0 = (void*)(pBd->Scan0);
|
||||
|
||||
bool bSuccess = 0!= ilTexImage(iW, iH, 1, 4, IL_BGRA, IL_UNSIGNED_BYTE, pScan0);
|
||||
|
||||
if (!bSuccess)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool bRes = ilSaveImage(StringAutoMarshal(i_szFileName))!=0;
|
||||
|
||||
ilDeleteImages(1, &s_iImageID);
|
||||
|
||||
i_poBitmap->UnlockBits(pBd);
|
||||
i_poBitmap->RotateFlip(System::Drawing::RotateFlipType::RotateNoneFlipY);
|
||||
|
||||
return bRes;
|
||||
}
|
||||
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 7.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DevIL.NET", "DevIL.NET.vcproj", "{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThumbView", "..\ThumbView\ThumbView.csproj", "{1541F8B7-DBE4-490B-9E1A-8D0122339F09}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageViewCs", "..\ImageViewCs\ImageViewCs.csproj", "{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}"
|
||||
EndProject
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ImageViewVb", "..\ImageViewVb\ImageViewVb.vbproj", "{F073580C-F355-4F4A-98B7-83D571B96B9E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(DPCodeReviewSolutionGUID) = preSolution
|
||||
DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
ConfigName.0 = Debug
|
||||
ConfigName.1 = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectDependencies) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug.Build.0 = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release.Build.0 = Release|Win32
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug.ActiveCfg = Debug|.NET
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug.Build.0 = Debug|.NET
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release.ActiveCfg = Release|.NET
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release.Build.0 = Release|.NET
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug.ActiveCfg = Debug|.NET
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug.Build.0 = Debug|.NET
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release.ActiveCfg = Release|.NET
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release.Build.0 = Release|.NET
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug.ActiveCfg = Debug|.NET
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug.Build.0 = Debug|.NET
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release.ActiveCfg = Release|.NET
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release.Build.0 = Release|.NET
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding = "Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.00"
|
||||
Name="DevIL.NET"
|
||||
ProjectGUID="{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
Keyword="ManagedCProj">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="g:\prg\devil\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG"
|
||||
GeneratePreprocessedFile="0"
|
||||
MinimalRebuild="FALSE"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="devil.lib"
|
||||
OutputFile="$(OutDir)/DevIL.NET.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="g:\prg\devil\lib"
|
||||
GenerateDebugInformation="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="g:\prg\devil\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG"
|
||||
MinimalRebuild="FALSE"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="devil.lib"
|
||||
OutputFile="$(OutDir)/DevIL.NET.dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="g:\prg\devil\lib"
|
||||
GenerateDebugInformation="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm">
|
||||
<File
|
||||
RelativePath="DevIL.NET.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
GeneratePreprocessedFile="0"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc">
|
||||
<File
|
||||
RelativePath="DotNetIlu.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;r">
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="ReadMe.txt">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,58 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// 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: AssemblyTitle("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
||||
@@ -0,0 +1,117 @@
|
||||
<VisualStudioProject>
|
||||
<CSHARP
|
||||
ProjectType = "Local"
|
||||
ProductVersion = "7.0.9466"
|
||||
SchemaVersion = "1.0"
|
||||
ProjectGuid = "{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}"
|
||||
>
|
||||
<Build>
|
||||
<Settings
|
||||
ApplicationIcon = "App.ico"
|
||||
AssemblyKeyContainerName = ""
|
||||
AssemblyName = "ImageViewCs"
|
||||
AssemblyOriginatorKeyFile = ""
|
||||
DefaultClientScript = "JScript"
|
||||
DefaultHTMLPageLayout = "Grid"
|
||||
DefaultTargetSchema = "IE50"
|
||||
DelaySign = "false"
|
||||
OutputType = "WinExe"
|
||||
RootNamespace = "ImageViewCs"
|
||||
StartupObject = ""
|
||||
>
|
||||
<Config
|
||||
Name = "Debug"
|
||||
AllowUnsafeBlocks = "false"
|
||||
BaseAddress = "285212672"
|
||||
CheckForOverflowUnderflow = "false"
|
||||
ConfigurationOverrideFile = ""
|
||||
DefineConstants = "DEBUG;TRACE"
|
||||
DocumentationFile = ""
|
||||
DebugSymbols = "true"
|
||||
FileAlignment = "4096"
|
||||
IncrementalBuild = "true"
|
||||
Optimize = "false"
|
||||
OutputPath = "bin\Debug\"
|
||||
RegisterForComInterop = "false"
|
||||
RemoveIntegerChecks = "false"
|
||||
TreatWarningsAsErrors = "false"
|
||||
WarningLevel = "4"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
AllowUnsafeBlocks = "false"
|
||||
BaseAddress = "285212672"
|
||||
CheckForOverflowUnderflow = "false"
|
||||
ConfigurationOverrideFile = ""
|
||||
DefineConstants = "TRACE"
|
||||
DocumentationFile = ""
|
||||
DebugSymbols = "false"
|
||||
FileAlignment = "4096"
|
||||
IncrementalBuild = "false"
|
||||
Optimize = "true"
|
||||
OutputPath = "bin\Release\"
|
||||
RegisterForComInterop = "false"
|
||||
RemoveIntegerChecks = "false"
|
||||
TreatWarningsAsErrors = "false"
|
||||
WarningLevel = "4"
|
||||
/>
|
||||
</Settings>
|
||||
<References>
|
||||
<Reference
|
||||
Name = "System"
|
||||
AssemblyName = "System"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Data"
|
||||
AssemblyName = "System.Data"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Drawing"
|
||||
AssemblyName = "System.Drawing"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Windows.Forms"
|
||||
AssemblyName = "System.Windows.Forms"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.XML"
|
||||
AssemblyName = "System.XML"
|
||||
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
|
||||
/>
|
||||
<Reference
|
||||
Name = "DevIL.NET"
|
||||
Project = "{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
Package = "{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}"
|
||||
/>
|
||||
</References>
|
||||
</Build>
|
||||
<Files>
|
||||
<Include>
|
||||
<File
|
||||
RelPath = "App.ico"
|
||||
BuildAction = "Content"
|
||||
/>
|
||||
<File
|
||||
RelPath = "AssemblyInfo.cs"
|
||||
SubType = "Code"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "frmImageView.cs"
|
||||
SubType = "Form"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "frmImageView.resx"
|
||||
DependentUpon = "frmImageView.cs"
|
||||
BuildAction = "EmbeddedResource"
|
||||
/>
|
||||
</Include>
|
||||
</Files>
|
||||
</CSHARP>
|
||||
</VisualStudioProject>
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<VisualStudioProject>
|
||||
<CSHARP>
|
||||
<Build>
|
||||
<Settings ReferencePath = "" >
|
||||
<Config
|
||||
Name = "Debug"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "false"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "false"
|
||||
/>
|
||||
</Settings>
|
||||
</Build>
|
||||
<OtherProjectSettings
|
||||
CopyProjectDestinationFolder = ""
|
||||
CopyProjectUncPath = ""
|
||||
CopyProjectOption = "0"
|
||||
ProjectView = "ProjectFiles"
|
||||
ProjectTrust = "0"
|
||||
/>
|
||||
</CSHARP>
|
||||
</VisualStudioProject>
|
||||
|
||||
+247
@@ -0,0 +1,247 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
using System.Data;
|
||||
|
||||
namespace ImageViewCs
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for Form1.
|
||||
/// </summary>
|
||||
public class frmImageView : System.Windows.Forms.Form
|
||||
{
|
||||
private System.Windows.Forms.MainMenu mainMenu;
|
||||
private System.Windows.Forms.PictureBox pictureBox;
|
||||
private System.Windows.Forms.MenuItem mnuFile;
|
||||
private System.Windows.Forms.MenuItem mnuFileOpen;
|
||||
private System.Windows.Forms.MenuItem mnuFileSaveAs;
|
||||
private System.Windows.Forms.MenuItem mnuFileSep1;
|
||||
private System.Windows.Forms.MenuItem mnuFileExit;
|
||||
private System.Windows.Forms.MenuItem mnuHelp;
|
||||
private System.Windows.Forms.MenuItem mnuHelpAbout;
|
||||
private System.Windows.Forms.Panel panel;
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.Container components = null;
|
||||
|
||||
public frmImageView()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add any constructor code after InitializeComponent call
|
||||
//
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if (components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.mainMenu = new System.Windows.Forms.MainMenu();
|
||||
this.mnuFile = new System.Windows.Forms.MenuItem();
|
||||
this.mnuFileOpen = new System.Windows.Forms.MenuItem();
|
||||
this.mnuFileSaveAs = new System.Windows.Forms.MenuItem();
|
||||
this.mnuFileSep1 = new System.Windows.Forms.MenuItem();
|
||||
this.mnuFileExit = new System.Windows.Forms.MenuItem();
|
||||
this.mnuHelp = new System.Windows.Forms.MenuItem();
|
||||
this.mnuHelpAbout = new System.Windows.Forms.MenuItem();
|
||||
this.panel = new System.Windows.Forms.Panel();
|
||||
this.pictureBox = new System.Windows.Forms.PictureBox();
|
||||
this.panel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// mainMenu
|
||||
//
|
||||
this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.mnuFile,
|
||||
this.mnuHelp});
|
||||
//
|
||||
// mnuFile
|
||||
//
|
||||
this.mnuFile.Index = 0;
|
||||
this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.mnuFileOpen,
|
||||
this.mnuFileSaveAs,
|
||||
this.mnuFileSep1,
|
||||
this.mnuFileExit});
|
||||
this.mnuFile.Text = "&File";
|
||||
//
|
||||
// mnuFileOpen
|
||||
//
|
||||
this.mnuFileOpen.Index = 0;
|
||||
this.mnuFileOpen.Text = "&Open...";
|
||||
this.mnuFileOpen.Click += new System.EventHandler(this.mnuFileOpen_Click);
|
||||
//
|
||||
// mnuFileSaveAs
|
||||
//
|
||||
this.mnuFileSaveAs.Index = 1;
|
||||
this.mnuFileSaveAs.Text = "Save &as...";
|
||||
this.mnuFileSaveAs.Click += new System.EventHandler(this.mnuFileSaveAs_Click);
|
||||
//
|
||||
// mnuFileSep1
|
||||
//
|
||||
this.mnuFileSep1.Index = 2;
|
||||
this.mnuFileSep1.Text = "-";
|
||||
//
|
||||
// mnuFileExit
|
||||
//
|
||||
this.mnuFileExit.Index = 3;
|
||||
this.mnuFileExit.Text = "E&xit";
|
||||
this.mnuFileExit.Click += new System.EventHandler(this.mnuFileExit_Click);
|
||||
//
|
||||
// mnuHelp
|
||||
//
|
||||
this.mnuHelp.Index = 1;
|
||||
this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.mnuHelpAbout});
|
||||
this.mnuHelp.Text = "&?";
|
||||
//
|
||||
// mnuHelpAbout
|
||||
//
|
||||
this.mnuHelpAbout.Index = 0;
|
||||
this.mnuHelpAbout.Text = "&About...";
|
||||
this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click);
|
||||
//
|
||||
// panel
|
||||
//
|
||||
this.panel.AutoScroll = true;
|
||||
this.panel.Controls.AddRange(new System.Windows.Forms.Control[] {
|
||||
this.pictureBox});
|
||||
this.panel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel.Name = "panel";
|
||||
this.panel.Size = new System.Drawing.Size(720, 414);
|
||||
this.panel.TabIndex = 1;
|
||||
//
|
||||
// pictureBox
|
||||
//
|
||||
this.pictureBox.Name = "pictureBox";
|
||||
this.pictureBox.Size = new System.Drawing.Size(720, 414);
|
||||
this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
||||
this.pictureBox.TabIndex = 0;
|
||||
this.pictureBox.TabStop = false;
|
||||
//
|
||||
// frmImageView
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(720, 414);
|
||||
this.Controls.AddRange(new System.Windows.Forms.Control[] {
|
||||
this.panel});
|
||||
this.Menu = this.mainMenu;
|
||||
this.Name = "frmImageView";
|
||||
this.Text = "ImageView C#";
|
||||
this.panel.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.Run(new frmImageView());
|
||||
}
|
||||
|
||||
private System.Drawing.Bitmap m_bmp;
|
||||
|
||||
private void mnuFileOpen_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog();
|
||||
ofd.Filter = "All Image Files(*.BMP;*.CUT;*.DCX;*.DDS;*.ICO;*.GIF;*.JPG;*.LBM;*.LIF;*.MDL;*.PCD;*.PCX;*.PIC;*.PNG;*.PNM;*.PSD;*.PSP;*.RAW;*.SGI;*.TGA;*.TIF;*.WAL;*.ACT;*.PAL;)|*.BMP;*.CUT;*.DCX;*.DDS;*.ICO;*.GIF;*.JPG;*.LBM;*.LIF;*.MDL;*.PCD;*.PCX;*.PIC;*.PNG;*.PNM;*.PSD;*.PSP;*.RAW;*.SGI;*.TGA;*.TIF;*.WAL;*.ACT;*.PAL|All files (*.*)|*.*";
|
||||
ofd.Filter += "|BMP files (*.BMP)|*.BMP";
|
||||
ofd.Filter += "|CUT files (*.CUT)|*.CUT";
|
||||
ofd.Filter += "|DCX files (*.DCX)|*.DCX";
|
||||
ofd.Filter += "|DDS files (*.DDS)|*.DDS";
|
||||
ofd.Filter += "|ICO files (*.ICO)|*.ICO";
|
||||
ofd.Filter += "|GIF files (*.GIF)|*.GIF";
|
||||
ofd.Filter += "|JPG files (*.JPG)|*.JPG";
|
||||
ofd.Filter += "|LBM files (*.LBM)|*.LBM";
|
||||
ofd.Filter += "|LIF files (*.LIF)|*.LIF";
|
||||
ofd.Filter += "|MDL files (*.MDL)|*.MDL";
|
||||
ofd.Filter += "|PCD files (*.PCD)|*.PCD";
|
||||
ofd.Filter += "|PCX files (*.PCX)|*.PCX";
|
||||
ofd.Filter += "|PIC files (*.PIC)|*.PIC";
|
||||
ofd.Filter += "|PNG files (*.PNG)|*.PNG";
|
||||
ofd.Filter += "|PNM files (*.PNM)|*.PNM";
|
||||
ofd.Filter += "|PSD files (*.PSD)|*.PSD";
|
||||
ofd.Filter += "|PSP files (*.PSP)|*.PSP";
|
||||
ofd.Filter += "|RAW files (*.RAW)|*.RAW";
|
||||
ofd.Filter += "|SGI files (*.SGI)|*.SGI";
|
||||
ofd.Filter += "|TGA files (*.TGA)|*.TGA";
|
||||
ofd.Filter += "|TIF files (*.TIF)|*.TIF";
|
||||
ofd.Filter += "|WAL files (*.WAL)|*.WAL";
|
||||
ofd.Filter += "|ACT files (*.ACT)|*.ACT";
|
||||
ofd.Filter += "|PAL files (*.PAL)|*.PAL";
|
||||
ofd.Filter += "|All files (*.*)|*.*";
|
||||
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
m_bmp = DevIL.DevIL.LoadBitmap(ofd.FileName);
|
||||
if (m_bmp != null)
|
||||
{
|
||||
pictureBox.Image = m_bmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void mnuFileExit_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void mnuHelpAbout_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Program by Marco Mastropaolo\n\nThis is a C# example for the DevIL.NET library.\n\nhttp://www.mastropaolo.com", "About");
|
||||
}
|
||||
|
||||
private void mnuFileSaveAs_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
if (m_bmp != null)
|
||||
{
|
||||
System.Windows.Forms.SaveFileDialog sfd = new System.Windows.Forms.SaveFileDialog();
|
||||
sfd.Filter = "BMP format (*.BMP)|*.BMP";
|
||||
sfd.Filter += "|DDS format (*.DDS)|*.DDS";
|
||||
sfd.Filter += "|JPG format (*.JPG)|*.JPG";
|
||||
sfd.Filter += "|PCX format (*.PCX)|*.PCX";
|
||||
sfd.Filter += "|PNG format (*.PNG)|*.PNG";
|
||||
sfd.Filter += "|PNM format (*.PNM)|*.PNM";
|
||||
sfd.Filter += "|RAW format (*.RAW)|*.RAW";
|
||||
sfd.Filter += "|SGI format (*.SGI)|*.SGI";
|
||||
sfd.Filter += "|TGA format (*.TGA)|*.TGA";
|
||||
sfd.Filter += "|TIF format (*.TIF)|*.TIF";
|
||||
sfd.Filter += "|PAL format (*.PAL)|*.PAL";
|
||||
|
||||
if (sfd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DevIL.DevIL.SaveBitmap(sfd.FileName, m_bmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="mainMenu.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>frmImageView</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,31 @@
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' 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.
|
||||
|
||||
' Review the values of the assembly attributes
|
||||
|
||||
<Assembly: AssemblyTitle("")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("")>
|
||||
<Assembly: AssemblyCopyright("")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
<Assembly: CLSCompliant(True)>
|
||||
|
||||
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
<Assembly: Guid("1B50578B-A3AB-4AA2-858B-267B61D35579")>
|
||||
|
||||
' Version information for an assembly consists of the following four values:
|
||||
'
|
||||
' Major Version
|
||||
' Minor Version
|
||||
' Build Number
|
||||
' Revision
|
||||
'
|
||||
' You can specify all the values or you can default the Build and Revision Numbers
|
||||
' by using the '*' as shown below:
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.*")>
|
||||
@@ -0,0 +1,117 @@
|
||||
<VisualStudioProject>
|
||||
<VisualBasic
|
||||
ProjectType = "Local"
|
||||
ProductVersion = "7.0.9466"
|
||||
SchemaVersion = "1.0"
|
||||
ProjectGuid = "{F073580C-F355-4F4A-98B7-83D571B96B9E}"
|
||||
>
|
||||
<Build>
|
||||
<Settings
|
||||
ApplicationIcon = ""
|
||||
AssemblyKeyContainerName = ""
|
||||
AssemblyName = "ImageViewVb"
|
||||
AssemblyOriginatorKeyFile = ""
|
||||
AssemblyOriginatorKeyMode = "None"
|
||||
DefaultClientScript = "JScript"
|
||||
DefaultHTMLPageLayout = "Grid"
|
||||
DefaultTargetSchema = "IE50"
|
||||
DelaySign = "false"
|
||||
OutputType = "WinExe"
|
||||
OptionCompare = "Binary"
|
||||
OptionExplicit = "On"
|
||||
OptionStrict = "Off"
|
||||
RootNamespace = "ImageViewVb"
|
||||
StartupObject = "ImageViewVb.frmImageView"
|
||||
>
|
||||
<Config
|
||||
Name = "Debug"
|
||||
BaseAddress = "285212672"
|
||||
ConfigurationOverrideFile = ""
|
||||
DefineConstants = ""
|
||||
DefineDebug = "true"
|
||||
DefineTrace = "true"
|
||||
DebugSymbols = "true"
|
||||
IncrementalBuild = "true"
|
||||
Optimize = "false"
|
||||
OutputPath = "bin\"
|
||||
RegisterForComInterop = "false"
|
||||
RemoveIntegerChecks = "false"
|
||||
TreatWarningsAsErrors = "false"
|
||||
WarningLevel = "1"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
BaseAddress = "285212672"
|
||||
ConfigurationOverrideFile = ""
|
||||
DefineConstants = ""
|
||||
DefineDebug = "false"
|
||||
DefineTrace = "true"
|
||||
DebugSymbols = "false"
|
||||
IncrementalBuild = "false"
|
||||
Optimize = "true"
|
||||
OutputPath = "bin\"
|
||||
RegisterForComInterop = "false"
|
||||
RemoveIntegerChecks = "false"
|
||||
TreatWarningsAsErrors = "false"
|
||||
WarningLevel = "1"
|
||||
/>
|
||||
</Settings>
|
||||
<References>
|
||||
<Reference
|
||||
Name = "System"
|
||||
AssemblyName = "System"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Data"
|
||||
AssemblyName = "System.Data"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Drawing"
|
||||
AssemblyName = "System.Drawing"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.Windows.Forms"
|
||||
AssemblyName = "System.Windows.Forms"
|
||||
/>
|
||||
<Reference
|
||||
Name = "System.XML"
|
||||
AssemblyName = "System.Xml"
|
||||
/>
|
||||
<Reference
|
||||
Name = "DevIL.NET"
|
||||
Project = "{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
Package = "{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}"
|
||||
/>
|
||||
</References>
|
||||
<Imports>
|
||||
<Import Namespace = "Microsoft.VisualBasic" />
|
||||
<Import Namespace = "System" />
|
||||
<Import Namespace = "System.Collections" />
|
||||
<Import Namespace = "System.Data" />
|
||||
<Import Namespace = "System.Drawing" />
|
||||
<Import Namespace = "System.Diagnostics" />
|
||||
<Import Namespace = "System.Windows.Forms" />
|
||||
</Imports>
|
||||
</Build>
|
||||
<Files>
|
||||
<Include>
|
||||
<File
|
||||
RelPath = "AssemblyInfo.vb"
|
||||
SubType = "Code"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "frmImageView.vb"
|
||||
SubType = "Form"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "frmImageView.resx"
|
||||
DependentUpon = "frmImageView.vb"
|
||||
BuildAction = "EmbeddedResource"
|
||||
/>
|
||||
</Include>
|
||||
</Files>
|
||||
</VisualBasic>
|
||||
</VisualStudioProject>
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<VisualStudioProject>
|
||||
<VisualBasic>
|
||||
<Build>
|
||||
<Settings ReferencePath = "" >
|
||||
<Config
|
||||
Name = "Debug"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "true"
|
||||
/>
|
||||
<Config
|
||||
Name = "Release"
|
||||
EnableASPDebugging = "false"
|
||||
EnableASPXDebugging = "false"
|
||||
EnableUnmanagedDebugging = "false"
|
||||
EnableSQLServerDebugging = "false"
|
||||
RemoteDebugEnabled = "false"
|
||||
RemoteDebugMachine = ""
|
||||
StartAction = "Project"
|
||||
StartArguments = ""
|
||||
StartPage = ""
|
||||
StartProgram = ""
|
||||
StartURL = ""
|
||||
StartWorkingDirectory = ""
|
||||
StartWithIE = "false"
|
||||
/>
|
||||
</Settings>
|
||||
</Build>
|
||||
<OtherProjectSettings
|
||||
CopyProjectDestinationFolder = ""
|
||||
CopyProjectUncPath = ""
|
||||
CopyProjectOption = "0"
|
||||
ProjectView = "ProjectFiles"
|
||||
ProjectTrust = "0"
|
||||
/>
|
||||
</VisualBasic>
|
||||
</VisualStudioProject>
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="mainMenu.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>159, 0</value>
|
||||
</data>
|
||||
<data name="mainMenu.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFile.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFileOpen.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFileSaveAs.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFileSep1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuFileExit.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuHelp.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="mnuHelpAbout.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="pictureBox.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Assembly</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>frmImageView</value>
|
||||
</data>
|
||||
</root>
|
||||
+184
@@ -0,0 +1,184 @@
|
||||
Public Class frmImageView
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
#Region " Windows Form Designer generated code "
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
'This call is required by the Windows Form Designer.
|
||||
InitializeComponent()
|
||||
|
||||
'Add any initialization after the InitializeComponent() call
|
||||
|
||||
End Sub
|
||||
|
||||
'Form overrides dispose to clean up the component list.
|
||||
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing Then
|
||||
If Not (components Is Nothing) Then
|
||||
components.Dispose()
|
||||
End If
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
'Required by the Windows Form Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Windows Form Designer
|
||||
'It can be modified using the Windows Form Designer.
|
||||
'Do not modify it using the code editor.
|
||||
Friend WithEvents mainMenu As System.Windows.Forms.MainMenu
|
||||
Friend WithEvents mnuFile As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuFileOpen As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuFileSaveAs As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuFileSep1 As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuFileExit As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuHelp As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents mnuHelpAbout As System.Windows.Forms.MenuItem
|
||||
Friend WithEvents pictureBox As System.Windows.Forms.PictureBox
|
||||
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||
Me.mainMenu = New System.Windows.Forms.MainMenu()
|
||||
Me.mnuFile = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuFileOpen = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuFileSaveAs = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuFileSep1 = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuFileExit = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuHelp = New System.Windows.Forms.MenuItem()
|
||||
Me.mnuHelpAbout = New System.Windows.Forms.MenuItem()
|
||||
Me.pictureBox = New System.Windows.Forms.PictureBox()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'mainMenu
|
||||
'
|
||||
Me.mainMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuFile, Me.mnuHelp})
|
||||
'
|
||||
'mnuFile
|
||||
'
|
||||
Me.mnuFile.Index = 0
|
||||
Me.mnuFile.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuFileOpen, Me.mnuFileSaveAs, Me.mnuFileSep1, Me.mnuFileExit})
|
||||
Me.mnuFile.Text = "&File"
|
||||
'
|
||||
'mnuFileOpen
|
||||
'
|
||||
Me.mnuFileOpen.Index = 0
|
||||
Me.mnuFileOpen.Text = "&Open..."
|
||||
'
|
||||
'mnuFileSaveAs
|
||||
'
|
||||
Me.mnuFileSaveAs.Index = 1
|
||||
Me.mnuFileSaveAs.Text = "Save &as..."
|
||||
'
|
||||
'mnuFileSep1
|
||||
'
|
||||
Me.mnuFileSep1.Index = 2
|
||||
Me.mnuFileSep1.Text = "-"
|
||||
'
|
||||
'mnuFileExit
|
||||
'
|
||||
Me.mnuFileExit.Index = 3
|
||||
Me.mnuFileExit.Text = "E&xit"
|
||||
'
|
||||
'mnuHelp
|
||||
'
|
||||
Me.mnuHelp.Index = 1
|
||||
Me.mnuHelp.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuHelpAbout})
|
||||
Me.mnuHelp.Text = "&?"
|
||||
'
|
||||
'mnuHelpAbout
|
||||
'
|
||||
Me.mnuHelpAbout.Index = 0
|
||||
Me.mnuHelpAbout.Text = "&About..."
|
||||
'
|
||||
'pictureBox
|
||||
'
|
||||
Me.pictureBox.Name = "pictureBox"
|
||||
Me.pictureBox.Size = New System.Drawing.Size(720, 414)
|
||||
Me.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize
|
||||
Me.pictureBox.TabIndex = 1
|
||||
Me.pictureBox.TabStop = False
|
||||
'
|
||||
'frmImageView
|
||||
'
|
||||
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
|
||||
Me.ClientSize = New System.Drawing.Size(720, 434)
|
||||
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.pictureBox})
|
||||
Me.Menu = Me.mainMenu
|
||||
Me.Name = "frmImageView"
|
||||
Me.Text = "ImageView VB.NET"
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
Private m_bmp As System.Drawing.Bitmap
|
||||
|
||||
|
||||
Private Sub mnuFileOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileOpen.Click
|
||||
Dim ofd As New System.Windows.Forms.OpenFileDialog()
|
||||
ofd.Filter = "All Image Files(*.BMP;*.CUT;*.DCX;*.DDS;*.ICO;*.GIF;*.JPG;*.LBM;*.LIF;*.MDL;*.PCD;*.PCX;*.PIC;*.PNG;*.PNM;*.PSD;*.PSP;*.RAW;*.SGI;*.TGA;*.TIF;*.WAL;*.ACT;*.PAL;)|*.BMP;*.CUT;*.DCX;*.DDS;*.ICO;*.GIF;*.JPG;*.LBM;*.LIF;*.MDL;*.PCD;*.PCX;*.PIC;*.PNG;*.PNM;*.PSD;*.PSP;*.RAW;*.SGI;*.TGA;*.TIF;*.WAL;*.ACT;*.PAL|All files (*.*)|*.*"
|
||||
ofd.Filter += "|BMP files (*.BMP)|*.BMP"
|
||||
ofd.Filter += "|CUT files (*.CUT)|*.CUT"
|
||||
ofd.Filter += "|DCX files (*.DCX)|*.DCX"
|
||||
ofd.Filter += "|DDS files (*.DDS)|*.DDS"
|
||||
ofd.Filter += "|ICO files (*.ICO)|*.ICO"
|
||||
ofd.Filter += "|GIF files (*.GIF)|*.GIF"
|
||||
ofd.Filter += "|JPG files (*.JPG)|*.JPG"
|
||||
ofd.Filter += "|LBM files (*.LBM)|*.LBM"
|
||||
ofd.Filter += "|LIF files (*.LIF)|*.LIF"
|
||||
ofd.Filter += "|MDL files (*.MDL)|*.MDL"
|
||||
ofd.Filter += "|PCD files (*.PCD)|*.PCD"
|
||||
ofd.Filter += "|PCX files (*.PCX)|*.PCX"
|
||||
ofd.Filter += "|PIC files (*.PIC)|*.PIC"
|
||||
ofd.Filter += "|PNG files (*.PNG)|*.PNG"
|
||||
ofd.Filter += "|PNM files (*.PNM)|*.PNM"
|
||||
ofd.Filter += "|PSD files (*.PSD)|*.PSD"
|
||||
ofd.Filter += "|PSP files (*.PSP)|*.PSP"
|
||||
ofd.Filter += "|RAW files (*.RAW)|*.RAW"
|
||||
ofd.Filter += "|SGI files (*.SGI)|*.SGI"
|
||||
ofd.Filter += "|TGA files (*.TGA)|*.TGA"
|
||||
ofd.Filter += "|TIF files (*.TIF)|*.TIF"
|
||||
ofd.Filter += "|WAL files (*.WAL)|*.WAL"
|
||||
ofd.Filter += "|ACT files (*.ACT)|*.ACT"
|
||||
ofd.Filter += "|PAL files (*.PAL)|*.PAL"
|
||||
ofd.Filter += "|All files (*.*)|*.*"
|
||||
|
||||
If (ofd.ShowDialog() = DialogResult.OK) Then
|
||||
m_bmp = DevIL.DevIL.LoadBitmap(ofd.FileName)
|
||||
If Not (m_bmp Is Nothing) Then
|
||||
pictureBox.Image = m_bmp
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub mnuFileSaveAs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileSaveAs.Click
|
||||
If Not (m_bmp Is Nothing) Then
|
||||
Dim sfd As New System.Windows.Forms.SaveFileDialog()
|
||||
sfd.Filter = "BMP format (*.BMP)|*.BMP"
|
||||
sfd.Filter += "|DDS format (*.DDS)|*.DDS"
|
||||
sfd.Filter += "|JPG format (*.JPG)|*.JPG"
|
||||
sfd.Filter += "|PCX format (*.PCX)|*.PCX"
|
||||
sfd.Filter += "|PNG format (*.PNG)|*.PNG"
|
||||
sfd.Filter += "|PNM format (*.PNM)|*.PNM"
|
||||
sfd.Filter += "|RAW format (*.RAW)|*.RAW"
|
||||
sfd.Filter += "|SGI format (*.SGI)|*.SGI"
|
||||
sfd.Filter += "|TGA format (*.TGA)|*.TGA"
|
||||
sfd.Filter += "|TIF format (*.TIF)|*.TIF"
|
||||
sfd.Filter += "|PAL format (*.PAL)|*.PAL"
|
||||
|
||||
If (sfd.ShowDialog() = DialogResult.OK) Then
|
||||
DevIL.DevIL.SaveBitmap(sfd.FileName, m_bmp)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub mnuFileExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileExit.Click
|
||||
Me.Close()
|
||||
End Sub
|
||||
|
||||
Private Sub mnuHelpAbout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuHelpAbout.Click
|
||||
MessageBox.Show("Program by Marco Mastropaolo\n\nThis is a VB.NET example for the DevIL.NET library.\n\nhttp://www.mastropaolo.com", "About")
|
||||
End Sub
|
||||
End Class
|
||||
@@ -0,0 +1,79 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DevIL.NET", "DevIL.NET.vcproj", "{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThumbView", "..\ThumbView\ThumbView.csproj", "{1541F8B7-DBE4-490B-9E1A-8D0122339F09}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageViewCs", "..\ImageViewCs\ImageViewCs.csproj", "{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}"
|
||||
EndProject
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ImageViewVb", "..\ImageViewVb\ImageViewVb.vbproj", "{F073580C-F355-4F4A-98B7-83D571B96B9E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|Mixed Platforms = Release|Mixed Platforms
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Any CPU.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Mixed Platforms.Build.0 = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Any CPU.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Mixed Platforms.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Mixed Platforms.Build.0 = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|Win32.Build.0 = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|x86.ActiveCfg = Release|Win32
|
||||
{30D94686-D452-4A73-B59D-178288807EE5}.Release|x86.Build.0 = Release|Win32
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{1541F8B7-DBE4-490B-9E1A-8D0122339F09}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Debug|x86.Build.0 = Debug|x86
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|x86.ActiveCfg = Release|x86
|
||||
{C6EF7F8A-0CCB-4DAD-A70E-CCCB25608A5E}.Release|x86.Build.0 = Release|x86
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Debug|x86.Build.0 = Debug|x86
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|x86.ActiveCfg = Release|x86
|
||||
{F073580C-F355-4F4A-98B7-83D571B96B9E}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(DPCodeReviewSolutionGUID) = preSolution
|
||||
DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,219 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="DevIL.NET"
|
||||
ProjectGUID="{30D94686-D452-4A73-B59D-178288807EE5}"
|
||||
Keyword="ManagedCProj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="4"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="g:\prg\devil\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG"
|
||||
GeneratePreprocessedFile="0"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="devil.lib"
|
||||
OutputFile="$(OutDir)/DevIL.NET.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="g:\prg\devil\lib"
|
||||
GenerateDebugInformation="true"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="4"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="c:\prg\devil\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG"
|
||||
MinimalRebuild="false"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="devil.lib"
|
||||
OutputFile="$(OutDir)/DevIL.NET.dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="c:\prg\devil\lib"
|
||||
GenerateDebugInformation="true"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm"
|
||||
>
|
||||
<File
|
||||
RelativePath="DevIL.NET.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
GeneratePreprocessedFile="0"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc"
|
||||
>
|
||||
<File
|
||||
RelativePath="DotNetIlu.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;r"
|
||||
>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="ReadMe.txt"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
#include <IL/IL.h>
|
||||
#include <IL/ILU.h>
|
||||
#include <IL/ILUT.h>
|
||||
#include <mathlink.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int retval;
|
||||
int image;
|
||||
|
||||
ilInit();
|
||||
iluInit();
|
||||
ilutInit();
|
||||
|
||||
ilGenImages(1, &image);
|
||||
ilBindImage(image);
|
||||
ilOriginFunc(IL_ORIGIN_LOWER_LEFT);
|
||||
|
||||
retval = MLMain(argc, argv);
|
||||
|
||||
ilDeleteImages(1, &image);
|
||||
|
||||
ilShutDown(); // Only need to shut down DevIL, not ILU or ILUT
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
/*int f(int x, int y)
|
||||
{
|
||||
return x+y;
|
||||
}
|
||||
|
||||
|
||||
void bits(int i)
|
||||
{
|
||||
int a[32], k;
|
||||
for(k=0; k<32; k++) {
|
||||
a[k] = i%2;
|
||||
i >>= 1;
|
||||
if (i==0) break;
|
||||
}
|
||||
|
||||
if (k<32) k++;
|
||||
MLPutInteger32List(stdlink, a, k);
|
||||
return;
|
||||
}*/
|
||||
|
||||
int mlLoad(char *Filename)
|
||||
{
|
||||
int ret = ilLoadImage(Filename);
|
||||
if (ilGetInteger(IL_ORIGIN_MODE) != IL_ORIGIN_UPPER_LEFT)
|
||||
iluFlipImage();
|
||||
ilConvertImage(IL_RGBA, IL_DOUBLE);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int mlWidth(void)
|
||||
{
|
||||
return ilGetInteger(IL_IMAGE_WIDTH);
|
||||
}
|
||||
|
||||
int mlHeight(void)
|
||||
{
|
||||
return ilGetInteger(IL_IMAGE_HEIGHT);
|
||||
}
|
||||
|
||||
void mlData(void)
|
||||
{
|
||||
/*int x, y, c;
|
||||
int *Data;
|
||||
ILubyte *OrigData = ilGetData();
|
||||
|
||||
Data = malloc(ilGetInteger(IL_IMAGE_WIDTH) * ilGetInteger(IL_IMAGE_HEIGHT) * 4 * sizeof(int));
|
||||
for (y = 0; y < ilGetInteger(IL_IMAGE_HEIGHT); y++) {
|
||||
for (x = 0; x < ilGetInteger(IL_IMAGE_WIDTH); x++) {
|
||||
for (c = 0; c < 4; c++) {
|
||||
Data[y * ilGetInteger(IL_IMAGE_WIDTH) * 4 + x * 4 + c] = OrigData[y * ilGetInteger(IL_IMAGE_WIDTH) * 4 + x * 4 + c];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MLPutInteger32List(stdlink, Data, ilGetInteger(IL_IMAGE_WIDTH) * ilGetInteger(IL_IMAGE_HEIGHT) * 4);
|
||||
|
||||
free(Data);*/
|
||||
|
||||
MLPutReal64List(stdlink, (ILdouble*)ilGetData(), ilGetInteger(IL_IMAGE_WIDTH) * ilGetInteger(IL_IMAGE_HEIGHT) * 4);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DevIL Mathematica", "DevIL Mathematica.vcproj", "{A73E8E53-2A08-405E-B462-E1541FE3E00F}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A73E8E53-2A08-405E-B462-E1541FE3E00F}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{A73E8E53-2A08-405E-B462-E1541FE3E00F}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{A73E8E53-2A08-405E-B462-E1541FE3E00F}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{A73E8E53-2A08-405E-B462-E1541FE3E00F}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,204 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="DevIL Mathematica"
|
||||
ProjectGUID="{A73E8E53-2A08-405E-B462-E1541FE3E00F}"
|
||||
RootNamespace="DevILMathematica"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="ml32i3m.lib devil.lib ilu.lib ilut.lib comdlg32.lib user32.lib advapi32.lib gdi32.lib shell32.lib"
|
||||
OutputFile="DevIL.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="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="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="ml32i3m.lib devil.lib ilu.lib ilut.lib comdlg32.lib user32.lib advapi32.lib gdi32.lib shell32.lib"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
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>
|
||||
</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=".\DevIL Interface.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\test.c"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
(* Content-type: application/mathematica *)
|
||||
|
||||
(*** Wolfram Notebook File ***)
|
||||
(* http://www.wolfram.com/nb *)
|
||||
|
||||
(* CreatedBy='Mathematica 6.0' *)
|
||||
|
||||
(*CacheID: 234*)
|
||||
(* Internal cache information:
|
||||
NotebookFileLineBreakTest
|
||||
NotebookFileLineBreakTest
|
||||
NotebookDataPosition[ 145, 7]
|
||||
NotebookDataLength[ 4305, 133]
|
||||
NotebookOptionsPosition[ 3741, 109]
|
||||
NotebookOutlinePosition[ 4105, 125]
|
||||
CellTagsIndexPosition[ 4062, 122]
|
||||
WindowFrame->Normal
|
||||
ContainsDynamic->False*)
|
||||
|
||||
(* Beginning of Notebook Content *)
|
||||
Notebook[{
|
||||
Cell[BoxData[
|
||||
RowBox[{"link", " ", "=", " ",
|
||||
RowBox[{
|
||||
"Install", "[", "\"\<E:\\DevIL\\projects\\Mathematica\\devil.exe\>\"",
|
||||
"]"}]}]], "Input",
|
||||
CellChangeTimes->{{3.44382235517484*^9, 3.4438223572684565`*^9}}],
|
||||
|
||||
Cell[BoxData[
|
||||
RowBox[{
|
||||
RowBox[{
|
||||
"Imagename", " ", "=", " ",
|
||||
"\"\<E:\\DevIL\\projects\\Mathematica\\rgb32.tga\>\""}], ";"}]], "Input",
|
||||
CellChangeTimes->{{3.433336425992341*^9, 3.433336437270916*^9}, {
|
||||
3.433336500650648*^9, 3.4333365039531717`*^9}, {3.433336644044791*^9,
|
||||
3.433336644308446*^9}, {3.43333691883775*^9, 3.4333369191961255`*^9}, {
|
||||
3.4438223711542864`*^9, 3.4438223802972555`*^9}, {3.4438224311895065`*^9,
|
||||
3.443822433804573*^9}}],
|
||||
|
||||
Cell[CellGroupData[{
|
||||
|
||||
Cell[BoxData[
|
||||
RowBox[{
|
||||
RowBox[{"If", "[",
|
||||
RowBox[{
|
||||
RowBox[{
|
||||
RowBox[{"mlLoad", "[", "Imagename", "]"}], "\[Equal]", "1"}], ",",
|
||||
"\[IndentingNewLine]",
|
||||
RowBox[{"(",
|
||||
RowBox[{
|
||||
RowBox[{"width", " ", "=", " ",
|
||||
RowBox[{"mlWidth", "[", "1", "]"}]}], ";", "\[IndentingNewLine]",
|
||||
RowBox[{"height", "=",
|
||||
RowBox[{"mlHeight", "[", "1", "]"}]}], ";", "\[IndentingNewLine]",
|
||||
RowBox[{"data", " ", "=", " ",
|
||||
RowBox[{"mlData", "[", "1", "]"}]}], ";", "\[IndentingNewLine]",
|
||||
RowBox[{"r", " ", "=", " ",
|
||||
RowBox[{"Table", "[",
|
||||
RowBox[{
|
||||
RowBox[{"Table", "[",
|
||||
RowBox[{
|
||||
RowBox[{"Table", "[",
|
||||
RowBox[{
|
||||
RowBox[{"data", "[",
|
||||
RowBox[{"[",
|
||||
RowBox[{
|
||||
RowBox[{"y", " ", "*", " ", "width", " ", "*", " ", "4"}],
|
||||
" ", "+", " ",
|
||||
RowBox[{"x", "*", "4"}], " ", "+", " ", "c"}], "]"}], "]"}],
|
||||
",",
|
||||
RowBox[{"{",
|
||||
RowBox[{"c", ",", "4"}], "}"}]}], "]"}], ",",
|
||||
RowBox[{"{",
|
||||
RowBox[{"x", ",", "0", ",",
|
||||
RowBox[{"width", "-", "1"}]}], "}"}]}], "]"}], ",",
|
||||
RowBox[{"{",
|
||||
RowBox[{"y", ",", "0", ",",
|
||||
RowBox[{"height", "-", "1"}]}], "}"}]}], "]"}]}], ";",
|
||||
"\[IndentingNewLine]",
|
||||
RowBox[{"image", " ", "=",
|
||||
RowBox[{"Graphics", "[",
|
||||
RowBox[{"Raster", "[", "r", "]"}], "]"}]}]}], ")"}], ",",
|
||||
"\[IndentingNewLine]",
|
||||
RowBox[{"Print", "[", "\"\<Could not load image.\>\"", "]"}]}], "]"}],
|
||||
";"}]], "Input",
|
||||
CellChangeTimes->{{3.433336299124484*^9, 3.433336308652195*^9}, {
|
||||
3.433336340650147*^9, 3.4333364425606165`*^9}, {3.4333365088102827`*^9,
|
||||
3.4333365154026337`*^9}, {3.433336600067137*^9, 3.4333366264160366`*^9},
|
||||
3.4333370439234943`*^9}],
|
||||
|
||||
Cell[BoxData["\<\"Could not load image.\"\>"], "Print",
|
||||
CellChangeTimes->{3.4438224626357355`*^9, 3.443822636813064*^9}]
|
||||
}, Open ]],
|
||||
|
||||
Cell[BoxData[
|
||||
RowBox[{"Show", "[", "image", "]"}]], "Input",
|
||||
CellChangeTimes->{{3.4333366309743385`*^9, 3.4333366324136996`*^9}}],
|
||||
|
||||
Cell[CellGroupData[{
|
||||
|
||||
Cell[BoxData[
|
||||
RowBox[{"Uninstall", "[", "link", "]"}]], "Input"],
|
||||
|
||||
Cell[BoxData["\<\"\\\"E:\\\\DevIL\\\\projects\\\\Mathematica\\\\devil.exe\\\"\
|
||||
\"\>"], "Output",
|
||||
CellChangeTimes->{3.4438224816530733`*^9, 3.4438226422609577`*^9,
|
||||
3.4438227036476536`*^9}]
|
||||
}, Open ]]
|
||||
},
|
||||
WindowSize->{1161, 898},
|
||||
WindowMargins->{{54, Automatic}, {Automatic, -1}},
|
||||
ShowSelection->True,
|
||||
FrontEndVersion->"6.0 for Microsoft Windows (32-bit) (April 28, 2007)",
|
||||
StyleDefinitions->"Default.nb"
|
||||
]
|
||||
(* End of Notebook Content *)
|
||||
|
||||
(* Internal cache information *)
|
||||
(*CellTagsOutline
|
||||
CellTagsIndex->{}
|
||||
*)
|
||||
(*CellTagsIndex
|
||||
CellTagsIndex->{}
|
||||
*)
|
||||
(*NotebookFileOutline
|
||||
Notebook[{
|
||||
Cell[568, 21, 220, 5, 31, "Input"],
|
||||
Cell[791, 28, 459, 9, 31, "Input"],
|
||||
Cell[CellGroupData[{
|
||||
Cell[1275, 41, 1896, 47, 152, "Input"],
|
||||
Cell[3174, 90, 121, 1, 23, "Print"]
|
||||
}, Open ]],
|
||||
Cell[3310, 94, 131, 2, 31, "Input"],
|
||||
Cell[CellGroupData[{
|
||||
Cell[3466, 100, 65, 1, 31, "Input"],
|
||||
Cell[3534, 103, 191, 3, 30, "Output"]
|
||||
}, Open ]]
|
||||
}
|
||||
]
|
||||
*)
|
||||
|
||||
(* End of internal cache information *)
|
||||
@@ -0,0 +1,518 @@
|
||||
unit OpenIL;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//
|
||||
// ImageLib Sources
|
||||
// Copyright (C) 2000-2003 by Denton Woods
|
||||
// Last modified: 06/23/2002 <--Y2K Compliant! =]
|
||||
//
|
||||
// Filename: il/il.h
|
||||
//
|
||||
// Description: The main include file for DevIL
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
{******************************************************************************}
|
||||
{ Converted to Delphi by Alexander Blach (alexander@abee.de) }
|
||||
{ Version: DevIL v1.6.6 }
|
||||
{ Last modified: 08/08/2003 }
|
||||
{******************************************************************************}
|
||||
|
||||
interface
|
||||
uses
|
||||
Windows;
|
||||
|
||||
//{$DEFINE IL_NO_BMP}
|
||||
//{$DEFINE IL_NO_CUT}
|
||||
//{$DEFINE IL_NO_CHEAD}
|
||||
//{$DEFINE IL_NO_DCX}
|
||||
//{$DEFINE IL_NO_DDS}
|
||||
//{$DEFINE IL_NO_DOOM}
|
||||
//{$DEFINE IL_NO_GIF}
|
||||
//{$DEFINE IL_NO_ICO}
|
||||
//{$DEFINE IL_NO_JPG}
|
||||
//{$DEFINE IL_NO_LIF}
|
||||
//{$DEFINE IL_NO_LBM}
|
||||
//{$DEFINE IL_NO_MDL}
|
||||
//{$DEFINE IL_NO_PCD}
|
||||
//{$DEFINE IL_NO_PCX}
|
||||
//{$DEFINE IL_NO_PIC}
|
||||
//{$DEFINE IL_NO_PNG}
|
||||
//{$DEFINE IL_NO_PNM}
|
||||
//{$DEFINE IL_NO_PSD}
|
||||
//{$DEFINE IL_NO_RAW}
|
||||
//{$DEFINE IL_NO_SGI}
|
||||
//{$DEFINE IL_NO_TGA}
|
||||
//{$DEFINE IL_NO_TIF}
|
||||
//{$DEFINE IL_NO_WAL}
|
||||
|
||||
//{$DEFINE IL_USE_IJL}
|
||||
|
||||
type
|
||||
TILenum = LongWord;
|
||||
TILboolean = Byte;
|
||||
TILbitfield = LongWord;
|
||||
TILbyte = ShortInt;
|
||||
TILshort = SmallInt;
|
||||
TILint = Integer;
|
||||
TILsizei = Integer;
|
||||
TILubyte = Byte;
|
||||
TILushort = Word;
|
||||
TILuint = LongWord;
|
||||
TILfloat = Single;
|
||||
TILclampf = Single;
|
||||
TILdouble = Double;
|
||||
TILclampd = Double;
|
||||
|
||||
PILboolean = ^Byte;
|
||||
PILbitfield = ^LongWord;
|
||||
PILbyte = ^ShortInt;
|
||||
PILshort = ^SmallInt;
|
||||
PILint = ^Integer;
|
||||
PILsizei = ^Integer;
|
||||
PILubyte = ^Byte;
|
||||
PILushort = ^Word;
|
||||
PILuint = ^LongWord;
|
||||
PILfloat = ^Single;
|
||||
PILclampf = ^Single;
|
||||
PILdouble = ^Double;
|
||||
PILclampd = ^Double;
|
||||
|
||||
const
|
||||
IL_FALSE = 0;
|
||||
IL_TRUE = 1;
|
||||
|
||||
|
||||
// Matches OpenGL's right now.
|
||||
IL_COLOUR_INDEX = $1900;
|
||||
IL_COLOR_INDEX = $1900;
|
||||
IL_RGB = $1907;
|
||||
IL_RGBA = $1908;
|
||||
IL_BGR = $80E0;
|
||||
IL_BGRA = $80E1;
|
||||
IL_LUMINANCE = $1909;
|
||||
|
||||
|
||||
IL_BYTE = $1400;
|
||||
IL_UNSIGNED_BYTE = $1401;
|
||||
IL_SHORT = $1402;
|
||||
IL_UNSIGNED_SHORT = $1403;
|
||||
IL_INT = $1404;
|
||||
IL_UNSIGNED_INT = $1405;
|
||||
IL_FLOAT = $1406;
|
||||
IL_DOUBLE = $140A;
|
||||
|
||||
|
||||
IL_VENDOR = $1F00;
|
||||
|
||||
|
||||
//
|
||||
// IL-specific 's
|
||||
//
|
||||
|
||||
IL_VERSION_1_5_6 = 1;
|
||||
IL_VERSION = 156;
|
||||
IL_LOAD_EXT = $1F01;
|
||||
IL_SAVE_EXT = $1F02;
|
||||
|
||||
|
||||
|
||||
// Attribute Bits
|
||||
IL_ORIGIN_BIT = $00000001;
|
||||
IL_FILE_BIT = $00000002;
|
||||
IL_PAL_BIT = $00000004;
|
||||
IL_FORMAT_BIT = $00000008;
|
||||
IL_TYPE_BIT = $00000010;
|
||||
IL_COMPRESS_BIT = $00000020;
|
||||
IL_LOADFAIL_BIT = $00000040;
|
||||
IL_FORMAT_SPECIFIC_BIT = $00000080;
|
||||
IL_ALL_ATTRIB_BITS = $000FFFFF;
|
||||
|
||||
|
||||
// Palette types
|
||||
IL_PAL_NONE = $0400;
|
||||
IL_PAL_RGB24 = $0401;
|
||||
IL_PAL_RGB32 = $0402;
|
||||
IL_PAL_RGBA32 = $0403;
|
||||
IL_PAL_BGR24 = $0404;
|
||||
IL_PAL_BGR32 = $0405;
|
||||
IL_PAL_BGRA32 = $0406;
|
||||
|
||||
|
||||
// Image types
|
||||
IL_TYPE_UNKNOWN = $0000;
|
||||
IL_BMP = $0420;
|
||||
IL_CUT = $0421;
|
||||
IL_DOOM = $0422;
|
||||
IL_DOOM_FLAT = $0423;
|
||||
IL_ICO = $0424;
|
||||
IL_JPG = $0424;
|
||||
IL_LBM = $0426;
|
||||
IL_PCD = $0427;
|
||||
IL_PCX = $0428;
|
||||
IL_PIC = $0429;
|
||||
IL_PNG = $042A;
|
||||
IL_PNM = $042B;
|
||||
IL_SGI = $042C;
|
||||
IL_TGA = $042D;
|
||||
IL_TIF = $042E;
|
||||
IL_CHEAD = $042F;
|
||||
IL_RAW = $0430;
|
||||
IL_MDL = $0431;
|
||||
IL_WAL = $0432;
|
||||
IL_LIF = $0434;
|
||||
IL_MNG = $0435;
|
||||
IL_JNG = $0435;
|
||||
IL_GIF = $0436;
|
||||
IL_DDS = $0437;
|
||||
IL_DCX = $0438;
|
||||
IL_PSD = $0439;
|
||||
IL_EXIF = $043A;
|
||||
IL_PSP = $043B;
|
||||
IL_PIX = $043C;
|
||||
IL_PXR = $043D;
|
||||
IL_XPM = $043E;
|
||||
|
||||
IL_JASC_PAL = $0475;
|
||||
|
||||
|
||||
// Error Types
|
||||
IL_NO_ERROR = $0000;
|
||||
IL_INVALID_ENUM = $0501;
|
||||
IL_OUT_OF_MEMORY = $0502;
|
||||
IL_FORMAT_NOT_SUPPORTED = $0503;
|
||||
IL_INTERNAL_ERROR = $0504;
|
||||
IL_INVALID_VALUE = $0505;
|
||||
IL_ILLEGAL_OPERATION = $0506;
|
||||
IL_ILLEGAL_FILE_VALUE = $0507;
|
||||
IL_INVALID_FILE_HEADER = $0508;
|
||||
IL_INVALID_PARAM = $0509;
|
||||
IL_COULD_NOT_OPEN_FILE = $050A;
|
||||
IL_INVALID_EXTENSION = $050B;
|
||||
IL_FILE_ALREADY_EXISTS = $050C;
|
||||
IL_OUT_FORMAT_SAME = $050D;
|
||||
IL_STACK_OVERFLOW = $050E;
|
||||
IL_STACK_UNDERFLOW = $050F;
|
||||
IL_INVALID_CONVERSION = $0510;
|
||||
IL_BAD_DIMENSIONS = $0511;
|
||||
IL_FILE_READ_ERROR = $0512;
|
||||
|
||||
IL_LIB_GIF_ERROR = $05E1;
|
||||
IL_LIB_JPEG_ERROR = $05E2;
|
||||
IL_LIB_PNG_ERROR = $05E3;
|
||||
IL_LIB_TIFF_ERROR = $05E4;
|
||||
IL_LIB_MNG_ERROR = $05E5;
|
||||
IL_UNKNOWN_ERROR = $05FF;
|
||||
|
||||
|
||||
// Origin Definitions
|
||||
IL_ORIGIN_SET = $0600;
|
||||
IL_ORIGIN_LOWER_LEFT = $0601;
|
||||
IL_ORIGIN_UPPER_LEFT = $0602;
|
||||
IL_ORIGIN_MODE = $0603;
|
||||
|
||||
|
||||
// Format and Type Mode Definitions
|
||||
IL_FORMAT_SET = $0610;
|
||||
IL_FORMAT_MODE = $0611;
|
||||
IL_TYPE_SET = $0612;
|
||||
IL_TYPE_MODE = $0613;
|
||||
|
||||
|
||||
// File definitions
|
||||
IL_FILE_OVERWRITE = $0620;
|
||||
IL_FILE_MODE = $0621;
|
||||
|
||||
|
||||
// Palette definitions
|
||||
IL_CONV_PAL = $0630;
|
||||
|
||||
|
||||
// Load fail definitions
|
||||
IL_DEFAULT_ON_FAIL = $0632;
|
||||
|
||||
|
||||
// Key colour definitions
|
||||
IL_USE_KEY_COLOUR = $0635;
|
||||
IL_USE_KEY_COLOR = $0635;
|
||||
|
||||
|
||||
// Interlace definitions
|
||||
IL_SAVE_INTERLACED = $0639;
|
||||
IL_INTERLACE_MODE = $063A;
|
||||
|
||||
|
||||
// Quantization definitions
|
||||
IL_QUANTIZATION_MODE = $0640;
|
||||
IL_WU_QUANT = $0641;
|
||||
IL_NEU_QUANT = $0642;
|
||||
IL_NEU_QUANT_SAMPLE = $0643;
|
||||
|
||||
|
||||
// Hints
|
||||
IL_FASTEST = $0660;
|
||||
IL_LESS_MEM = $0661;
|
||||
IL_DONT_CARE = $0662;
|
||||
IL_MEM_SPEED_HINT = $0665;
|
||||
IL_USE_COMPRESSION = $0666;
|
||||
IL_NO_COMPRESSION = $0667;
|
||||
IL_COMPRESSION_HINT = $0668;
|
||||
|
||||
|
||||
// Subimage
|
||||
IL_SUB_NEXT = $0680;
|
||||
IL_SUB_MIPMAP = $0681;
|
||||
IL_SUB_LAYER = $0682;
|
||||
|
||||
|
||||
// Compression definitions (mostly for .oil)
|
||||
IL_COMPRESS_MODE = $0700;
|
||||
IL_COMPRESS_NONE = $0701;
|
||||
IL_COMPRESS_RLE = $0702;
|
||||
IL_COMPRESS_LZO = $0703;
|
||||
IL_COMPRESS_ZLIB = $0704;
|
||||
|
||||
|
||||
// File format-specific values
|
||||
IL_TGA_CREATE_STAMP = $0710;
|
||||
IL_JPG_QUALITY = $0711;
|
||||
IL_PNG_INTERLACE = $0712;
|
||||
IL_TGA_RLE = $0713;
|
||||
IL_BMP_RLE = $0714;
|
||||
IL_SGI_RLE = $0715;
|
||||
IL_TGA_ID_STRING = $0717;
|
||||
IL_TGA_AUTHNAME_STRING = $0718;
|
||||
IL_TGA_AUTHCOMMENT_STRING = $0719;
|
||||
IL_PNG_AUTHNAME_STRING = $071A;
|
||||
IL_PNG_TITLE_STRING = $071B;
|
||||
IL_PNG_DESCRIPTION_STRING = $071C;
|
||||
IL_TIF_DESCRIPTION_STRING = $071D;
|
||||
IL_TIF_HOSTCOMPUTER_STRING = $071E;
|
||||
IL_TIF_DOCUMENTNAME_STRING = $071F;
|
||||
IL_TIF_AUTHNAME_STRING = $0720;
|
||||
IL_JPG_SAVE_FORMAT = $0721;
|
||||
IL_CHEAD_HEADER_STRING = $0722;
|
||||
IL_PCD_PICNUM = $0723;
|
||||
|
||||
|
||||
// DXTC definitions
|
||||
IL_DXTC_FORMAT = $0705;
|
||||
IL_DXT1 = $0706;
|
||||
IL_DXT2 = $0707;
|
||||
IL_DXT3 = $0708;
|
||||
IL_DXT4 = $0709;
|
||||
IL_DXT5 = $070A;
|
||||
IL_DXT_NO_COMP = $070B;
|
||||
IL_KEEP_DXTC_DATA = $070C;
|
||||
IL_DXTC_DATA_FORMAT = $070D;
|
||||
|
||||
|
||||
// Cube map definitions
|
||||
IL_CUBEMAP_POSITIVEX = $00000400;
|
||||
IL_CUBEMAP_NEGATIVEX = $00000800;
|
||||
IL_CUBEMAP_POSITIVEY = $00001000;
|
||||
IL_CUBEMAP_NEGATIVEY = $00002000;
|
||||
IL_CUBEMAP_POSITIVEZ = $00004000;
|
||||
IL_CUBEMAP_NEGATIVEZ = $00008000;
|
||||
|
||||
|
||||
// Values
|
||||
IL_VERSION_NUM = $0DE2;
|
||||
IL_IMAGE_WIDTH = $0DE4;
|
||||
IL_IMAGE_HEIGHT = $0DE5;
|
||||
IL_IMAGE_DEPTH = $0DE6;
|
||||
IL_IMAGE_SIZE_OF_DATA = $0DE7;
|
||||
IL_IMAGE_BPP = $0DE8;
|
||||
IL_IMAGE_BYTES_PER_PIXEL = $0DE8;
|
||||
IL_IMAGE_BITS_PER_PIXEL = $0DE9;
|
||||
IL_IMAGE_FORMAT = $0DEA;
|
||||
IL_IMAGE_TYPE = $0DEB;
|
||||
IL_PALETTE_TYPE = $0DEC;
|
||||
IL_PALETTE_SIZE = $0DED;
|
||||
IL_PALETTE_BPP = $0DEE;
|
||||
IL_PALETTE_NUM_COLS = $0DEF;
|
||||
IL_PALETTE_BASE_TYPE = $0DF0;
|
||||
IL_NUM_IMAGES = $0DF1;
|
||||
IL_NUM_MIPMAPS = $0DF2;
|
||||
IL_NUM_LAYERS = $0DF3;
|
||||
IL_ACTIVE_IMAGE = $0DF4;
|
||||
IL_ACTIVE_MIPMAP = $0DF5;
|
||||
IL_ACTIVE_LAYER = $0DF6;
|
||||
IL_CUR_IMAGE = $0DF7;
|
||||
IL_IMAGE_DURATION = $0DF8;
|
||||
IL_IMAGE_PLANESIZE = $0DF9;
|
||||
IL_IMAGE_BPC = $0DFA;
|
||||
IL_IMAGE_OFFX = $0DFB;
|
||||
IL_IMAGE_OFFY = $0DFC;
|
||||
IL_IMAGE_CUBEFLAGS = $0DFD;
|
||||
|
||||
|
||||
const
|
||||
{$IFDEF OPENIL_DEBUG}
|
||||
OPENILDLL = 'DevIL-d.DLL';
|
||||
{$ELSE}
|
||||
OPENILDLL = 'DevIL.DLL';
|
||||
{$ENDIF}
|
||||
|
||||
IL_SEEK_SET = 0;
|
||||
IL_SEEK_CUR = 1;
|
||||
IL_SEEK_END = 2;
|
||||
IL_EOF = -1;
|
||||
|
||||
// Callback functions for file reading
|
||||
type
|
||||
TILHandle = Pointer;
|
||||
// Callback functions for file reading
|
||||
TfCloseRProc = procedure(Handle: TILHandle); stdcall;
|
||||
TfEofProc = function(Handle: TILHandle): TILboolean; stdcall;
|
||||
TfGetcProc = function(Handle: TILHandle): TILint; stdcall;
|
||||
TfOpenRProc = function(FileName: PChar): TILHandle; stdcall;
|
||||
TfReadProc = function(Buffer: Pointer; Size, Count: TILint;
|
||||
Handle: TILHandle): TILint; stdcall;
|
||||
TfSeekRProc = function(Handle: TILHandle; Offset, Origin: TILint): TILint;
|
||||
stdcall;
|
||||
TfTellRProc = function(Handle: TILHandle): TILint; stdcall;
|
||||
|
||||
// Callback function for file writing
|
||||
TfCloseWProc = procedure(Handle: TILHandle); stdcall;
|
||||
TfOpenWProc = function(FileName: PChar): TILHandle; stdcall;
|
||||
TfPutcProc = function(c: TILubyte; Handle: TILHandle): TILint; stdcall;
|
||||
TfSeekWProc = function(Handle: TILHandle; Offset, Origin: TILint): TILint;
|
||||
stdcall;
|
||||
TfTellWProc = function(Handle: TILHandle): TILint; stdcall;
|
||||
TfWriteProc = function(Buffer: Pointer; Size: TILuint; Count: TILuint;
|
||||
Handle: TILHandle): TILint; stdcall;
|
||||
|
||||
// Registered format procedures
|
||||
TIL_LOADPROC = function(FileName: PChar): TILboolean; stdcall;
|
||||
TIL_SAVEPROC = function(FileName: PChar): TILboolean; stdcall;
|
||||
|
||||
|
||||
// ImageLib Functions
|
||||
function ilActiveImage(Number: TILuint): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilActiveLayer(Number: TILuint): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilActiveMipmap(Number: TILuint): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilApplyPal(FileName: PChar): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilApplyProfile(InProfile, OutProfile: PChar): TILboolean; stdcall; external OPENILDLL;
|
||||
procedure ilBindImage(Image: TILuint); stdcall; external
|
||||
OPENILDLL;
|
||||
function ilBlit(Src: TILuint; DestX, DestY, DestZ: TILint; SrcX, SrcY, SrcZ, Width, Height, Depth: TILuint): TILboolean; stdcall; external OPENILDLL;
|
||||
procedure ilClearColour(Red, Green, Blue, Alpha: TILclampf); stdcall; external OPENILDLL;
|
||||
procedure ilClearColor(Red, Green, Blue, Alpha: TILclampf); stdcall; external OPENILDLL name 'ilClearColour';
|
||||
function ilClearImage: TILboolean; stdcall; external OPENILDLL;
|
||||
function ilCloneCurImage: TILuint; stdcall; external OPENILDLL;
|
||||
function ilCompressFunc(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilConvertImage(DestFormat, DestType: TILenum): TILboolean; stdcall; external
|
||||
OPENILDLL;
|
||||
function ilConvertPal(DestFormat: TILenum): TILboolean; stdcall; external
|
||||
OPENILDLL;
|
||||
function ilCopyImage(Src: TILuint): TILboolean; stdcall; external OPENILDLL;
|
||||
procedure ilCopyPixels(XOff, YOff, ZOff, Width, Height, Depth: TILuint;
|
||||
Format, _Type: TILenum; Data: Pointer); stdcall; external OPENILDLL;
|
||||
procedure ilCreateSubImage(SubType: TILenum; Num: TILuint); stdcall; external OPENILDLL;
|
||||
procedure ilDefaultImage; stdcall; external OPENILDLL;
|
||||
procedure ilDeleteImages(Num: TILsizei; const Images: PILuint); stdcall;
|
||||
external OPENILDLL;
|
||||
function ilDisable(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilEnable(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilFormatFunc(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
procedure ilGenImages(Num: TILsizei; Images: PILuint); stdcall; external
|
||||
OPENILDLL;
|
||||
function ilGetAlpha(_Type: TILenum): PILubyte; stdcall; external OPENILDLL;
|
||||
function ilGetBoolean(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
procedure ilGetBooleanv(Mode: TILenum; Param: PILboolean); stdcall; external
|
||||
OPENILDLL;
|
||||
function ilGetData: PILubyte; stdcall; external OPENILDLL;
|
||||
function ilGetDXTCData(Buffer: PILubyte; BufferSize: TILuint; DXTCFormat: TILenum):
|
||||
TILuint; stdcall; external OPENILDLL;
|
||||
function ilGetError: TILenum; stdcall; external OPENILDLL;
|
||||
function ilGetInteger(Mode: TILenum): TILint; stdcall; external OPENILDLL;
|
||||
procedure ilGetIntegerv(Mode: TILenum; Param: PILint); stdcall; external
|
||||
OPENILDLL;
|
||||
function ilGetLumpPos: TILuint; stdcall; external OPENILDLL;
|
||||
function ilGetPalette: PILubyte; stdcall; external OPENILDLL;
|
||||
function ilGetString(StringName: TILenum): PChar; stdcall; external OPENILDLL;
|
||||
procedure ilHint(Target, Mode: TILenum); stdcall; external OPENILDLL;
|
||||
procedure ilInit; stdcall; external OPENILDLL;
|
||||
function ilIsDisabled(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilIsEnabled(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilIsImage(Image: TILuint): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilIsValid(_Type: TILenum; FileName: PChar): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilIsValidF(_Type: TILenum; _File: TILHandle): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilIsValidL(_Type: TILenum; Lump: Pointer; Size: TILuint): TILboolean;
|
||||
stdcall; external OPENILDLL;
|
||||
procedure ilKeyColor(Red: TILubyte; Green: TILubyte; Blue: TILubyte; PalNum: TILubyte);
|
||||
stdcall; external OPENILDLL name 'ilKeyColour';
|
||||
procedure ilKeyColour(Red: TILubyte; Green: TILubyte; Blue: TILubyte; PalNum: TILubyte);
|
||||
stdcall; external OPENILDLL;
|
||||
function ilLoad(_Type: TILenum; FileName: PChar): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilLoadF(_Type: TILenum; _File: TILHandle): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilLoadImage(FileName: PChar): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilLoadL(_Type: TILenum; Lump: Pointer; Size: TILuint): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilLoadPal(FileName: PChar): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilOriginFunc(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilOverlayImage(Src: TILuint; XCoord, YCoord, ZCoord: TILint):
|
||||
TILboolean; stdcall; external OPENILDLL;
|
||||
procedure ilPopAttrib; stdcall; external OPENILDLL;
|
||||
procedure ilPushAttrib(Bits: TILuint); stdcall; external OPENILDLL;
|
||||
procedure ilRegisterFormat(Format: TILenum); stdcall; external OPENILDLL;
|
||||
function ilRegisterLoad(Ext: PChar; Load: TIL_LOADPROC): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilRegisterMipNum(Num: TILuint): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilRegisterNumImages(Num: TILuint): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
procedure ilRegisterOrigin(Origin: TILenum); stdcall; external OPENILDLL;
|
||||
procedure ilRegisterPal(Pal: Pointer; Size: TILuint; _Type: TILenum); stdcall;
|
||||
external OPENILDLL;
|
||||
function ilRegisterSave(Ext: PChar; Save: TIL_SAVEPROC): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
procedure ilRegisterType(_Type: TILenum); stdcall; external OPENILDLL;
|
||||
function ilRemoveLoad(Ext: PChar): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilRemoveSave(Ext: PChar): TILboolean; stdcall; external OPENILDLL;
|
||||
procedure ilResetRead; stdcall; external OPENILDLL;
|
||||
procedure ilResetWrite; stdcall; external OPENILDLL;
|
||||
function ilSave(_Type: TILenum; FileName: PChar): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilSaveF(_Type: TILenum; _File: TILHandle): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
function ilSaveImage(FileName: PChar): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilSaveL(_Type: TILenum; Lump: Pointer; Size: TILuint): TILboolean;
|
||||
stdcall; external OPENILDLL;
|
||||
function ilSavePal(FileName: PChar): TILboolean; stdcall; external
|
||||
OPENILDLL;
|
||||
function ilSetData(Data: Pointer): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilSetDuration(Duration: TILuint): TILboolean; stdcall;
|
||||
external OPENILDLL;
|
||||
procedure ilSetInteger(Mode: TILenum; Param: TILint); stdcall; external OPENILDLL;
|
||||
procedure ilSetPixels(XOff, YOff, ZOff, Width, Height, Depth: TILuint;
|
||||
Format, _Type: TILenum; Data: Pointer); stdcall; external OPENILDLL;
|
||||
procedure ilSetRead(Open: TfOpenRProc; Close: TfCloseRProc;
|
||||
Eof: TfEofProc; Getc: TfGetcProc; Read: TfReadProc; Seek: TfSeekRProc;
|
||||
Tell: TfTellRProc); stdcall; external OPENILDLL;
|
||||
procedure ilSetString(Mode: TILenum; Param: PChar); stdcall; external OPENILDLL;
|
||||
procedure ilSetWrite(Open: TfOpenWProc; Close: TfCloseWProc;
|
||||
Putc: TfPutcProc; Seek: TfSeekWProc;
|
||||
Tell: TfTellWProc; Write: TfWriteProc); stdcall; external OPENILDLL;
|
||||
function ilTexImage(Width, Height, Depth: TILuint; Bpp: TILubyte; Format, _Type:
|
||||
TILenum; Data: Pointer): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilTypeFunc(Mode: TILenum): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilLoadData(FileName: PChar; Width, Height, Depth: TILuint;
|
||||
Bpp: TILubyte): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilLoadDataF(_File: TILHandle; Width, Height, Depth: TILuint;
|
||||
Bpp: TILubyte): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilLoadDataL(Lump: Pointer; Size: TILuint; Width, Height, Depth: TILuint;
|
||||
Bpp: TILubyte): TILboolean; stdcall; external OPENILDLL;
|
||||
function ilSaveData(FileName: PChar): TILboolean; stdcall; external OPENILDLL;
|
||||
|
||||
implementation
|
||||
|
||||
end.
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
unit OpenILU;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//
|
||||
// ImageLib Utility Sources
|
||||
// Copyright (C) 2000-2002 by Denton Woods
|
||||
// Last modified: 06/23/2002 <--Y2K Compliant! =]
|
||||
//
|
||||
// Filename: il/ilu.h
|
||||
//
|
||||
// Description: The main include file for ILU
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
{******************************************************************************}
|
||||
{ Converted to Delphi by Alexander Blach (alexander@abee.de) }
|
||||
{ Version: ILU v1.6.1 }
|
||||
{ Last modified: 06/23/2002 }
|
||||
{******************************************************************************}
|
||||
|
||||
|
||||
interface
|
||||
uses
|
||||
OpenIL,
|
||||
Windows;
|
||||
|
||||
const
|
||||
ILU_VERSION_1_5_6 = 1;
|
||||
ILU_VERSION = 156;
|
||||
|
||||
ILU_FILTER = $2600;
|
||||
ILU_NEAREST = $2601;
|
||||
ILU_LINEAR = $2602;
|
||||
ILU_BILINEAR = $2603;
|
||||
ILU_SCALE_BOX = $2604;
|
||||
ILU_SCALE_TRIANGLE = $2605;
|
||||
ILU_SCALE_BELL = $2606;
|
||||
ILU_SCALE_BSPLINE = $2607;
|
||||
ILU_SCALE_LANCZOS3 = $2608;
|
||||
ILU_SCALE_MITCHELL = $2609;
|
||||
|
||||
|
||||
// Error types
|
||||
const
|
||||
ILU_INVALID_ENUM = $0501;
|
||||
ILU_OUT_OF_MEMORY = $0502;
|
||||
ILU_INTERNAL_ERROR = $0504;
|
||||
ILU_INVALID_VALUE = $0505;
|
||||
ILU_ILLEGAL_OPERATION = $0506;
|
||||
ILU_INVALID_PARAM = $0509;
|
||||
|
||||
// Values
|
||||
const
|
||||
ILU_PLACEMENT = $0700;
|
||||
ILU_LOWER_LEFT = $0701;
|
||||
ILU_LOWER_RIGHT = $0702;
|
||||
ILU_UPPER_LEFT = $0703;
|
||||
ILU_UPPER_RIGHT = $0704;
|
||||
ILU_CENTER = $0705;
|
||||
ILU_CONVOLUTION_MATRIX = $0710;
|
||||
ILU_VERSION_NUM = $0DE2;
|
||||
|
||||
// Filters
|
||||
const
|
||||
ILU_FILTER_BLUR = $0803;
|
||||
ILU_FILTER_GAUSSIAN_3x3 = $0804;
|
||||
ILU_FILTER_GAUSSIAN_5x5 = $0805;
|
||||
ILU_FILTER_EMBOSS1 = $0807;
|
||||
ILU_FILTER_EMBOSS2 = $0808;
|
||||
ILU_FILTER_LAPLACIAN1 = $080A;
|
||||
ILU_FILTER_LAPLACIAN2 = $080B;
|
||||
ILU_FILTER_LAPLACIAN3 = $080C;
|
||||
ILU_FILTER_LAPLACIAN4 = $080D;
|
||||
ILU_FILTER_SHARPEN1 = $080E;
|
||||
ILU_FILTER_SHARPEN2 = $080F;
|
||||
ILU_FILTER_SHARPEN3 = $0810;
|
||||
|
||||
type
|
||||
PILinfo = ^TILinfo;
|
||||
TILinfo = record
|
||||
Id: TILuint; // the image's id
|
||||
Data: TILuint; // the image's data
|
||||
Width: TILuint; // the image's width
|
||||
Height: TILuint; // the image's height
|
||||
Depth: TILuint; // the image's depth
|
||||
Bpp: TILubyte; // bytes per pixel (not bits) of the image
|
||||
SizeOfData: TILuint; // the total size of the data (in bytes)
|
||||
Format: TILenum; // image format (in IL enum style)
|
||||
_Type: TILenum; // image type (in IL enum style)
|
||||
Origin: TILenum; // origin of the image
|
||||
Palette: PILubyte; // the image's palette
|
||||
PalType: TILenum; // palette type
|
||||
PalSize: TILuint; // palette size
|
||||
CubeFlags: TILenum; // flags for what cube map sides are present
|
||||
NumNext: TILuint; // number of images following
|
||||
NumMips: TILuint; // number of mipmaps
|
||||
NumLayers: TILuint; // number of layers
|
||||
end;
|
||||
|
||||
|
||||
|
||||
const
|
||||
{$IFDEF OPENIL_DEBUG}
|
||||
ILUDLL = 'ILU-d.DLL';
|
||||
{$ELSE}
|
||||
ILUDLL = 'ILU.DLL';
|
||||
{$ENDIF}
|
||||
|
||||
|
||||
// ImageLib Utility Functions
|
||||
function iluAlienify: TILboolean; stdcall; external ILUDLL;
|
||||
function iluBitFilter1: TILboolean; stdcall; external ILUDLL;
|
||||
function iluBitFilter2: TILboolean; stdcall; external ILUDLL;
|
||||
function iluBitFilter3: TILboolean; stdcall; external ILUDLL;
|
||||
function iluBlurAvg(Iter: TILuint): TILboolean; stdcall; external ILUDLL;
|
||||
function iluBlurGaussian(Iter: TILuint): TILboolean; stdcall; external ILUDLL;
|
||||
function iluBuildMipmaps: TILboolean; stdcall; external ILUDLL;
|
||||
function iluColoursUsed: TILuint; stdcall; external ILUDLL;
|
||||
function iluColorsUsed: TILuint; stdcall; external ILUDLL name 'iluColoursUsed';
|
||||
function iluCompareImage(Comp: TILuint): TILboolean; stdcall; external ILUDLL;
|
||||
function iluContrast(Contrast: TILfloat): TILboolean; stdcall; external ILUDLL;
|
||||
function iluCrop(XOff, YOff, ZOff, Width, Height, Depth: TILuint): TILboolean;
|
||||
stdcall; external ILUDLL;
|
||||
procedure iluDeleteImage(Id: TILuint); stdcall; external ILUDLL;
|
||||
function iluEdgeDetectE: TILboolean; stdcall; external ILUDLL;
|
||||
function iluEdgeDetectP: TILboolean; stdcall; external ILUDLL;
|
||||
function iluEdgeDetectS: TILboolean; stdcall; external ILUDLL;
|
||||
function iluEmboss: TILboolean; stdcall; external ILUDLL;
|
||||
function iluEnlargeCanvas(Width, Height, Depth: TILuint): TILboolean; stdcall;
|
||||
external ILUDLL;
|
||||
function iluEnlargeImage(XDim, YDim, ZDim: TILfloat): TILboolean; stdcall;
|
||||
external ILUDLL;
|
||||
function iluEqualize: TILboolean; stdcall; external ILUDLL;
|
||||
function iluErrorString(Error: TILenum): PChar; stdcall; external ILUDLL;
|
||||
function iluFlipImage: TILboolean; stdcall; external ILUDLL;
|
||||
function iluGammaCorrect(Gamma: TILfloat): TILboolean; stdcall; external ILUDLL;
|
||||
function iluGenImage: TILuint; stdcall; external ILUDLL;
|
||||
procedure iluGetImageInfo(Info: PILinfo); stdcall; external ILUDLL;
|
||||
function iluGetInteger(Mode: TILenum): TILint; stdcall; external ILUDLL;
|
||||
procedure iluGetIntegerv(Mode: TILenum; var Param: TILint); stdcall; external ILUDLL;
|
||||
function iluGetString(StringName: TILenum): PChar; stdcall; external ILUDLL;
|
||||
procedure iluImageParameter(PName, Param: TILenum); stdcall; external ILUDLL;
|
||||
procedure iluInit; stdcall; external ILUDLL;
|
||||
function iluInvertAlpha: TILboolean; stdcall; external ILUDLL;
|
||||
function iluLoadImage(FileName: PChar): TILuint; stdcall; external ILUDLL;
|
||||
function iluMirror: TILboolean; stdcall; external ILUDLL;
|
||||
function iluNegative: TILboolean; stdcall; external ILUDLL;
|
||||
function iluNoisify(Factor: TILubyte): TILboolean; stdcall; external ILUDLL;
|
||||
function iluPixelize(PixSize: TILuint): TILboolean; stdcall; external ILUDLL;
|
||||
//procedure iluRegionf(ULx, ULy, BRx, BRy: TILfloat); stdcall; external ILUDLL;
|
||||
//procedure iluRegioni(ULx, ULy, BRx, BRy: TILuint); stdcall; external ILUDLL;
|
||||
function iluReplaceColour(Red, Green, Blue: TILubyte; Tolerance: TILfloat):
|
||||
TILboolean; stdcall; external ILUDLL;
|
||||
function iluReplaceColor(Red, Green, Blue: TILubyte; Tolerance: TILfloat):
|
||||
TILboolean; stdcall; external ILUDLL name 'iluReplaceColour';
|
||||
function iluRotate(Angle: TILfloat): TILboolean; stdcall; external ILUDLL;
|
||||
function iluRotate3D(x, y, z, Angle: TILfloat): TILboolean; stdcall;
|
||||
external ILUDLL;
|
||||
function iluSaturate1f(Saturation: TILfloat): TILboolean; stdcall; external ILUDLL;
|
||||
function iluSaturate4f(r, g, b, Saturation: TILfloat): TILboolean; stdcall;
|
||||
external ILUDLL;
|
||||
function iluScale(Width, Height, Depth: TILuint): TILboolean;
|
||||
stdcall; external ILUDLL;
|
||||
function iluScaleColours(r, g, b: TILfloat): TILboolean; stdcall; external ILUDLL;
|
||||
function iluScaleColors(r, g, b: TILfloat): TILboolean; stdcall;
|
||||
external ILUDLL name 'iluScaleColours';
|
||||
function iluSharpen(Factor: TILfloat; Iter: TILuint): TILboolean; stdcall; external
|
||||
ILUDLL;
|
||||
function iluSwapColours: TILboolean; stdcall; external ILUDLL;
|
||||
function iluSwapColors: TILboolean; stdcall; external ILUDLL name 'iluSwapColours';
|
||||
function iluWave(Angle: TILfloat): TILboolean; stdcall; external ILUDLL;
|
||||
|
||||
implementation
|
||||
|
||||
end.
|
||||
|
||||
@@ -0,0 +1,167 @@
|
||||
unit OpenILUT;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//
|
||||
// ImageLib Utility Toolkit Sources
|
||||
// Copyright (C) 2000-2002 by Denton Woods
|
||||
// Last modified: 06/23/2002 <--Y2K Compliant! =]
|
||||
//
|
||||
// Filename: il/ilut.h
|
||||
//
|
||||
// Description: The main include file for ILUT
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
{******************************************************************************}
|
||||
{ Converted to Delphi by Alexander Blach (alexander@abee.de) }
|
||||
{ Version: ILUT v1.6.1 }
|
||||
{ Last modified: 06/23/2002 }
|
||||
{ }
|
||||
{ You will need the latest OpenGL units for Delphi. I recommend those on }
|
||||
{ http://www.delphi3d.net }
|
||||
{******************************************************************************}
|
||||
|
||||
|
||||
interface
|
||||
|
||||
// Note by ABee: I had to move this here so that I can look it up in "uses"
|
||||
//{$DEFINE ILUT_USE_ALLEGRO)
|
||||
{$DEFINE ILUT_USE_WIN32}
|
||||
{$DEFINE ILUT_USE_OPENGL}
|
||||
|
||||
uses
|
||||
OpenIL,
|
||||
OpenILU,
|
||||
{$IFDEF ILUT_USE_OPENGL}
|
||||
GL,
|
||||
//OpenGL12,
|
||||
{$ENDIF}
|
||||
Windows;
|
||||
|
||||
|
||||
const
|
||||
ILUT_VERSION_1_5_6 = 1;
|
||||
ILUT_VERSION = 156;
|
||||
|
||||
const
|
||||
// Attribute Bits
|
||||
ILUT_OPENGL_BIT = $00000001;
|
||||
ILUT_D3D_BIT = $00000002;
|
||||
ILUT_ALL_ATTRIB_BITS = $000FFFFF;
|
||||
|
||||
// Error Types
|
||||
ILUT_INVALID_ENUM = $0501;
|
||||
ILUT_OUT_OF_MEMORY = $0502;
|
||||
ILUT_INVALID_VALUE = $0505;
|
||||
ILUT_ILLEGAL_OPERATION = $0506;
|
||||
ILUT_INVALID_PARAM = $0509;
|
||||
ILUT_COULD_NOT_OPEN_FILE = $050A;
|
||||
ILUT_STACK_OVERFLOW = $050E;
|
||||
ILUT_STACK_UNDERFLOW = $050F;
|
||||
ILUT_NOT_SUPPORTED = $0550;
|
||||
|
||||
|
||||
// State Definitions
|
||||
ILUT_PALETTE_MODE = $0600;
|
||||
ILUT_OPENGL_CONV = $0610;
|
||||
ILUT_D3D_MIPLEVELS = $0620;
|
||||
ILUT_MAXTEX_WIDTH = $0630;
|
||||
ILUT_MAXTEX_HEIGHT = $0631;
|
||||
ILUT_MAXTEX_DEPTH = $0632;
|
||||
ILUT_GL_USE_S3TC = $0634;
|
||||
ILUT_D3D_USE_DXTC = $0634;
|
||||
ILUT_GL_GEN_S3TC = $0635;
|
||||
ILUT_D3D_GEN_DXTC = $0635;
|
||||
ILUT_S3TC_FORMAT = $0705;
|
||||
ILUT_DXTC_FORMAT = $0706;
|
||||
|
||||
|
||||
|
||||
// Values
|
||||
ILUT_VERSION_NUM = $0DE2;
|
||||
|
||||
|
||||
const
|
||||
{$IFDEF OPENIL_DEBUG}
|
||||
ILUTDLL = 'ILUT-d.DLL';
|
||||
{$ELSE}
|
||||
ILUTDLL = 'ILUT.DLL';
|
||||
{$ENDIF}
|
||||
|
||||
// ImageLib Utility Toolkit Functions
|
||||
function ilutDisable(Mode: TILenum): TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutEnable(Mode: TILenum): TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutGetBoolean(Mode: TILenum): TILboolean; stdcall; external
|
||||
ILUTDLL;
|
||||
procedure ilutGetBooleanv(Mode: TILenum; Param: PILboolean); stdcall; external
|
||||
ILUTDLL;
|
||||
function ilutGetInteger(Mode: TILenum): TILint; stdcall; external
|
||||
ILUTDLL;
|
||||
procedure ilutGetIntegerv(Mode: TILenum; Param: PILint); stdcall; external
|
||||
ILUTDLL;
|
||||
function ilutGetString(StringName: TILenum): PChar; stdcall; external ILUTDLL;
|
||||
procedure ilutInit; stdcall; external ILUTDLL;
|
||||
function ilutIsDisabled(Mode: TILenum): TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutIsEnabled(Mode: TILenum): TILboolean; stdcall; external ILUTDLL;
|
||||
procedure ilutPopAttrib; stdcall; external ILUTDLL;
|
||||
procedure ilutPushAttrib(Bits: TILuint); stdcall; external ILUTDLL;
|
||||
procedure ilutSetInteger(Mode: TILenum; Param: TILint); stdcall; external ILUTDLL;
|
||||
|
||||
|
||||
// The different rendering api's...more to be added later?
|
||||
const
|
||||
IL_OPENGL = 0;
|
||||
IL_ALLEGRO = 1;
|
||||
IL_WIN32 = 2;
|
||||
|
||||
function ilutRenderer(Renderer: TILenum): TILboolean; stdcall; external ILUTDLL;
|
||||
|
||||
// ImageLib Utility Toolkit's OpenGL Functions
|
||||
{$IFDEF ILUT_USE_OPENGL}
|
||||
function ilutGLBindTexImage: GLuint; stdcall; external ILUTDLL;
|
||||
function ilutGLBindMipmaps: GLuint; stdcall; external ILUTDLL;
|
||||
function ilutGLBuildMipmaps: TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutGLLoadImage(FileName: PChar): GLuint; stdcall; external ILUTDLL;
|
||||
function ilutGLScreen: TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutGLScreenie: TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutGLSaveImage(FileName: PChar; TexID: GLuint): TILboolean;
|
||||
stdcall; external ILUTDLL;
|
||||
function ilutGLSetTex(TexID: GLuint): TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutGLTexImage(Level: GLuint): TILboolean; stdcall; external ILUTDLL;
|
||||
{$ENDIF}
|
||||
|
||||
// note by ABee: no Allegro in Delphi
|
||||
// ImageLib Utility ToolKit's Allegro Functions
|
||||
{$IFDEF ILUT_USE_ALLEGRO}
|
||||
//function ilutConvertToAlleg(var Pal: PALETTE): PBitmap; stdcall; external
|
||||
//ILUTDLL;
|
||||
{$ENDIF}
|
||||
|
||||
// ImageLib Utility Toolkit's Win32 (DirectX/GDI) Functions
|
||||
{$IFDEF ILUT_USE_WIN32}
|
||||
function ilutConvertToHBitmap(DC: HDC): HBITMAP; stdcall; external ILUTDLL;
|
||||
procedure ilutGetBmpInfo(Info: PBitmapInfo); stdcall; external ILUTDLL;
|
||||
function ilutGetHPal: HPalette; stdcall; external ILUTDLL;
|
||||
function ilutGetPaddedData: PILubyte; stdcall; external ILUTDLL;
|
||||
function ilutGetWinClipboard: TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutLoadResource(hInst: LongWord; ID: TILint; ResourceType: PChar;
|
||||
_Type: TILenum): TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutSetHBitmap(Bitmap: HBITMAP): TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutSetHPal(Pal: HPALETTE): TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutSetWinClipboard: TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutWinLoadImage(FileName: PChar; DC: HDC): HBITMAP; stdcall;
|
||||
external ILUTDLL;
|
||||
function ilutWinLoadUrl(Url: PChar): TILboolean; stdcall; external ILUTDLL;
|
||||
function ilutWinSaveImage(FileName: PChar; Bitmap: HBITMAP): TILboolean;
|
||||
stdcall; external ILUTDLL;
|
||||
{
|
||||
//#ifdef ILUT_USE_DIRECTX7
|
||||
// LPDIRECTDRAWSURFACE7 ILAPIENTRY ilutDX7Surface(char *FileName, LPDIRECTDRAW7 DDraw);
|
||||
//#endif//ILUT_USE_DIRECTX7
|
||||
}
|
||||
{$ENDIF}
|
||||
|
||||
implementation
|
||||
|
||||
end.
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
To debug Delphi apps with DevIL, you must define OPENIL_DEBUG and rebuild your project. Do not define OPENIL_DEBUG for release builds. Sorry for the inconvenience.
|
||||
|
||||
- Denton Woods and Alexander Blach
|
||||
@@ -0,0 +1,150 @@
|
||||
###################################
|
||||
# Djgpp Makefile for DevIL #
|
||||
# Last Modified: 07/13/2002 #
|
||||
###################################
|
||||
|
||||
# Uncomment any of the following lines to define them
|
||||
|
||||
# Halts on warnings and errors
|
||||
#WERROR=1
|
||||
# Turns on debugging options
|
||||
#DEBUG=1
|
||||
|
||||
|
||||
.PHONY = baddjgpp badpath ilbad
|
||||
#.PRECIOUS = $(OBJ)/%.o
|
||||
|
||||
|
||||
# check that the DJGPP environment variable is set
|
||||
ifndef DJDIR
|
||||
baddjgpp:
|
||||
@echo Your DJGPP environment variable is not set correctly! It should
|
||||
@echo point to the djgpp.env file: see the djgpp readme.1st for details.
|
||||
endif
|
||||
|
||||
# check that djgpp/bin is pathed
|
||||
ifeq ($(wildcard $(addsuffix /djasm.exe,$(subst ;, ,$(PATH)))),)
|
||||
badpath:
|
||||
@echo Your PATH is not set correctly! This must include the
|
||||
@echo djgpp bin directory: see the djgpp readme.1st for details.
|
||||
endif
|
||||
|
||||
ifeq ($(wildcard ../../src-IL/src/il_devil.c),)
|
||||
ilbad:
|
||||
@echo Bad DevIL installation! You did not preserve the directory structure
|
||||
@echo while unzipping it: did you remember to use the -d flag with pkunzip?
|
||||
endif
|
||||
|
||||
|
||||
#ifneq ($(wildcard $(DJDIR)/bin/rm.exe),)
|
||||
RM = $(DJDIR)/bin/rm.exe
|
||||
#else
|
||||
RM = del
|
||||
#endif
|
||||
|
||||
|
||||
#Enables debugging features
|
||||
ifdef DEBUG
|
||||
DFLAGS = -DDEBUG
|
||||
else
|
||||
DFLAGS =
|
||||
endif
|
||||
|
||||
|
||||
ILDIR= ./../../src-IL/src
|
||||
ILODIR= .\..\..\src-IL\src\obj
|
||||
#ILLIB= ./../../lib/djgpp/libil.a
|
||||
ILLIB= libil.a
|
||||
ILDEST= $(DJDIR)/lib/libil.a
|
||||
ILINC= $(DJDIR)/include/il/il.h
|
||||
ILOBJ= $(ILODIR)/il_bits.o $(ILODIR)/il_bmp.o $(ILODIR)/il_convert.o $(ILODIR)/il_cut.o \
|
||||
$(ILODIR)/il_doom.o $(ILODIR)/il_endian.o $(ILODIR)/il_error.o \
|
||||
$(ILODIR)/il_header.o $(ILODIR)/il_stack.o $(ILODIR)/il_internal.o \
|
||||
$(ILODIR)/il_manip.o $(ILODIR)/il_main.o $(ILODIR)/il_devil.o \
|
||||
$(ILODIR)/il_pal.o $(ILODIR)/il_pcd.o $(ILODIR)/il_pcx.o $(ILODIR)/il_pic.o \
|
||||
$(ILODIR)/il_pnm.o $(ILODIR)/il_raw.o $(ILODIR)/il_register.o $(ILODIR)/il_rawdata.o \
|
||||
$(ILODIR)/il_rle.o $(ILODIR)/il_sgi.o $(ILODIR)/il_states.o \
|
||||
$(ILODIR)/il_targa.o $(ILODIR)/il_utility.o $(ILODIR)/il_io.o \
|
||||
$(ILODIR)/il_files.o $(ILODIR)/il_icon.o $(ILODIR)/il_wal.o \
|
||||
$(ILODIR)/il_mdl.o $(ILODIR)/il_quantizer.o $(ILODIR)/il_convbuff.o \
|
||||
$(ILODIR)/il_lif.o $(ILODIR)/il_alloc.o $(ILODIR)/il_dds.o $(ILODIR)/il_profiles.o \
|
||||
$(ILODIR)/il_dcx.o $(ILODIR)/il_psd.o $(ILODIR)/il_fastconv.o \
|
||||
$(ILODIR)/il_psp.o $(ILODIR)/il_dds-save.o $(ILODIR)/il_neuquant.o \
|
||||
$(ILODIR)/il_pix.o $(ILODIR)/il_pxr.o $(ILODIR)/il_xpm.o
|
||||
|
||||
|
||||
ILUDIR= ./../../src-ILU/src
|
||||
ILUODIR= .\..\..\src-ILU\src\obj
|
||||
#ILULIB= ./../../lib/djgpp/libilu.a
|
||||
ILULIB= libilu.a
|
||||
ILUDEST= $(DJDIR)/lib/libilu.a
|
||||
ILUINC= $(DJDIR)/include/il/ilu.h
|
||||
ILUOBJ= $(ILUODIR)/ilu_error.o $(ILUODIR)/ilu_filter.o $(ILUODIR)/ilu_internal.o \
|
||||
$(ILUODIR)/ilu_manip.o $(ILUODIR)/ilu_mipmap.o $(ILUODIR)/ilu_filter_rcg.o \
|
||||
$(ILUODIR)/ilu_noise.o $(ILUODIR)/ilu_rotate.o $(ILUODIR)/ilu_scale.o \
|
||||
$(ILUODIR)/ilu_states.o $(ILUODIR)/ilu_utilities.o $(ILUODIR)/ilu_main.o \
|
||||
$(ILUODIR)/ilu_alloc.o $(ILUODIR)/ilu_scale2d.o $(ILUODIR)/ilu_scale3d.o \
|
||||
$(ILUODIR)/ilu_region.o
|
||||
|
||||
|
||||
ILUTDIR= ./../../src-ILUT/src
|
||||
ILUTODIR= .\..\..\src-ILUT\src\obj
|
||||
#ILUTLIB= ./../../lib/djgpp/libilut.a
|
||||
ILUTLIB= libilut.a
|
||||
ILUTDEST= $(DJDIR)/lib/libilut.a
|
||||
ILUTINC= $(DJDIR)/include/il/ilut.h
|
||||
ILUTOBJ= $(ILUTODIR)/ilut_allegro.o $(ILUTODIR)/ilut_internal.o $(ILUTODIR)/ilut_main.o \
|
||||
$(ILUTODIR)/ilut_opengl.o $(ILUTODIR)/ilut_states.o
|
||||
|
||||
|
||||
WFLAGS= -Wall -W -Wno-unused
|
||||
ILFLAGS= -I./../../src-IL/include
|
||||
ILUFLAGS= -I./../../src-ILU/include
|
||||
ILUTFLAGS= -I./../../src-ILUT/include
|
||||
|
||||
|
||||
all : compile_msg $(ILODIR) $(ILLIB) $(ILDEST) $(ILUODIR) $(ILULIB) $(ILUDEST) $(ILUTODIR) $(ILUTLIB) $(ILUTDEST)
|
||||
@echo
|
||||
@echo Done.
|
||||
|
||||
compile_msg:
|
||||
@echo DevIL is compiling...may take awhile.
|
||||
|
||||
$(ILODIR)/%.o : $(ILDIR)/%.c
|
||||
gcc $(ILFLAGS) $(WFLAGS) -c $< -o $@ -I..\..\include
|
||||
|
||||
$(ILLIB): $(ILOBJ)
|
||||
ar rs $(ILLIB) $(ILOBJ)
|
||||
|
||||
# Need to find out how to make /include/il
|
||||
$(ILDEST): $(ILLIB)
|
||||
copy libil.a $(subst /,\,$(ILDEST))
|
||||
copy ..\..\include\il\il.h $(subst /,\,$(ILINC))
|
||||
|
||||
$(ILUODIR)/%.o : $(ILUDIR)/%.c
|
||||
gcc $(ILUFLAGS) $(WFLAGS) -c $< -o $@ -I..\..\include
|
||||
|
||||
$(ILULIB): $(ILUOBJ)
|
||||
ar rs $(ILULIB) $(ILUOBJ)
|
||||
|
||||
$(ILUDEST): $(ILULIB)
|
||||
copy libilu.a $(subst /,\,$(ILUDEST))
|
||||
copy ..\..\include\il\ilu.h $(subst /,\,$(ILUINC))
|
||||
|
||||
$(ILUTODIR)/%.o : $(ILUTDIR)/%.c
|
||||
gcc $(ILUTFLAGS) $(WFLAGS) -c $< -o $@ -I..\..\include
|
||||
|
||||
$(ILUTLIB): $(ILUTOBJ)
|
||||
ar rs $(ILUTLIB) $(ILUTOBJ)
|
||||
|
||||
$(ILUTDEST): $(ILUTLIB)
|
||||
copy libilut.a $(subst /,\,$(ILUTDEST))
|
||||
copy ..\..\include\il\ilut.h $(subst /,\,$(ILUTINC))
|
||||
|
||||
clean:
|
||||
# RM -v $(ILODIR)/*.o
|
||||
# RM -v $(ILUODIR)/*.o
|
||||
# RM -v $(ILUTODIR)/*.o
|
||||
del $(ILODIR)\*.o
|
||||
del $(ILUODIR)\*.o
|
||||
del $(ILUTODIR)\*.o
|
||||
@@ -0,0 +1,5 @@
|
||||
program example
|
||||
integer n
|
||||
n = 1
|
||||
call ilFBindImage(n)
|
||||
end
|
||||
@@ -0,0 +1,264 @@
|
||||
#include <IL/il.h>
|
||||
#include <string.h>
|
||||
#include <malloc.h>
|
||||
|
||||
// NOTE!
|
||||
// The biggest problem about using DevIL from Fortran is the
|
||||
// fact that Fortran does arrays in column-major format.
|
||||
// This wrapper does no conversions between the two!
|
||||
//
|
||||
// We are using DevIL return values as the first parameter.
|
||||
//
|
||||
|
||||
|
||||
// From http://www.ibiblio.org/pub/languages/fortran/ch1-11.html
|
||||
// This is how Fortran passes strings.
|
||||
struct descriptor /* VMS fixed length string */
|
||||
{ /* descriptor used in FORTRAN */
|
||||
unsigned short length;
|
||||
unsigned char data_type, /* = 14 */
|
||||
dsc_class; /* = 1 */
|
||||
char *string_ptr;
|
||||
};
|
||||
|
||||
|
||||
void ilFActiveImage_(int *RetVal, int *Number)
|
||||
{
|
||||
*RetVal = ilActiveImage((unsigned int)*Number);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFActiveLayer_(int *RetVal, int *Number)
|
||||
{
|
||||
*RetVal = ilActiveImage((unsigned int)*Number);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFActiveMipmap_(int *RetVal, int *Number)
|
||||
{
|
||||
*RetVal = ilActiveImage((unsigned int)*Number);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFApplyPal_(int *RetVal, struct descriptor *Desc)
|
||||
{
|
||||
char *Filename = malloc(Desc->length + 1);
|
||||
strncpy(Filename, Desc->string_ptr, Desc->length);
|
||||
Filename[Desc->length] = 0; // Should really be NULL...getting a warning, though.
|
||||
*RetVal = ilApplyPal(Filename);
|
||||
|
||||
free(Filename);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFBindImage_(int *Image)
|
||||
{
|
||||
ilBindImage((unsigned int)*Image);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFBlit_(int *RetVal, int *Source, int *DestX, int *DestY, int *DestZ, int *SrcX, int *SrcY, int *SrcZ, int *Width, int *Height, int *Depth)
|
||||
{
|
||||
*RetVal = ilBlit(*Source, *DestX, *DestY, *DestZ, *SrcX, *SrcY, *SrcZ, *Width, *Height, *Depth);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFClearColour_(float *Red, float *Green, float *Blue, float *Alpha)
|
||||
{
|
||||
ilClearColour(*Red, *Green, *Blue, *Alpha);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFClearImage_(int *RetVal)
|
||||
{
|
||||
*RetVal = ilClearImage();
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFCloneCurImage_(int *RetVal)
|
||||
{
|
||||
*RetVal = ilCloneCurImage();
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFCompressFunc_(int *RetVal, int *Mode)
|
||||
{
|
||||
*RetVal = ilCompressFunc(*Mode);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFConvertImage_(int *RetVal, int *DestFormat, int *DestType)
|
||||
{
|
||||
*RetVal = ilConvertImage(*DestFormat, *DestType);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFConvertPal_(int *RetVal, int *DestFormat)
|
||||
{
|
||||
*RetVal = ilConvertPal(*DestFormat);
|
||||
}
|
||||
|
||||
void ilFCopyImage_(int *RetVal, int *Src)
|
||||
{
|
||||
*RetVal = ilCopyImage(*Src);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFCopyPixels_(int *RetVal, int *XOff, int *YOff, int *ZOff, int *Width, int *Height, int *Depth, int *Format, int *Type, void *Data)
|
||||
{
|
||||
*RetVal = ilCopyPixels(*XOff, *YOff, *ZOff, *Width, *Height, *Depth, *Format, *Type, Data);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFCreateSubImage_(int *RetVal, int *Type, int *Num)
|
||||
{
|
||||
*RetVal = ilCreateSubImage(*Type, *Num);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFDefaultImage_(int *RetVal)
|
||||
{
|
||||
*RetVal = ilDefaultImage();
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFDeleteImage_(int *Num)
|
||||
{
|
||||
ilDeleteImage(*Num);
|
||||
return;
|
||||
}
|
||||
|
||||
// Not sure how to do the arrays properly.
|
||||
//void ilFDeleteImages_(int *Num, int **Images)
|
||||
//{
|
||||
// ilDeleteImages(*Num, *Images);
|
||||
//}
|
||||
|
||||
void ilFDisable_(int *RetVal, int *Mode)
|
||||
{
|
||||
*RetVal = ilDisable(*Mode);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFEnable_(int *RetVal, int *Mode)
|
||||
{
|
||||
*RetVal = ilEnable(*Mode);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFFormatFunc_(int *RetVal, int *Mode)
|
||||
{
|
||||
*RetVal = ilFormatFunc(*Mode);
|
||||
return;
|
||||
}
|
||||
|
||||
// Not sure how to do the arrays properly.
|
||||
//void ilFGenImages_(int *Num, int **Images)
|
||||
//{
|
||||
// ilGenImages(*Num, *Images);
|
||||
//}
|
||||
|
||||
void ilFGenImage_(int *RetVal)
|
||||
{
|
||||
*RetVal = ilGenImage();
|
||||
return;
|
||||
}
|
||||
|
||||
//void ilFGetAlpha_(
|
||||
|
||||
void ilFGetBoolean_(int *RetVal, int *Mode)
|
||||
{
|
||||
*RetVal = ilGetBoolean(*Mode);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFGetBooleanv_(int *Mode, int *Param)
|
||||
{
|
||||
ilGetBooleanv(*Mode, Param);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFGetData_(char *RetVal)
|
||||
{
|
||||
RetVal = ilGetData();
|
||||
return;
|
||||
}
|
||||
|
||||
// ilGetDXTCData
|
||||
|
||||
void ilFGetError_(int *RetVal)
|
||||
{
|
||||
*RetVal = ilGetError();
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFGetInteger_(int *RetVal, int *Mode)
|
||||
{
|
||||
*RetVal = ilGetInteger(*Mode);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFGetIntegerv_(int *Mode, int *Param)
|
||||
{
|
||||
ilGetIntegerv(*Mode, Param);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFGetLumpPos_(int *RetVal)
|
||||
{
|
||||
*RetVal = ilGetLumpPos();
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFGetPalette_(char *RetVal)
|
||||
{
|
||||
RetVal = ilGetPalette();
|
||||
return;
|
||||
}
|
||||
|
||||
//ilGetString
|
||||
|
||||
void ilFInit_()
|
||||
{
|
||||
ilInit();
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFShutDown_()
|
||||
{
|
||||
ilShutDown();
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFLoadImage_(int *RetVal, struct descriptor *Desc)
|
||||
{
|
||||
char *Filename = malloc(Desc->length + 1);
|
||||
strncpy(Filename, Desc->string_ptr, Desc->length);
|
||||
Filename[Desc->length] = 0; // Should really be NULL...getting a warning, though.
|
||||
*RetVal = ilLoadImage(Filename);
|
||||
|
||||
free(Filename);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFSave_(int *RetVal, int *Type, struct descriptor *Desc)
|
||||
{
|
||||
char *Filename = malloc(Desc->length + 1);
|
||||
strncpy(Filename, Desc->string_ptr, Desc->length);
|
||||
Filename[Desc->length] = 0; // Should really be NULL...getting a warning, though.
|
||||
*RetVal = ilSave(*Type, Filename);
|
||||
|
||||
free(Filename);
|
||||
return;
|
||||
}
|
||||
|
||||
void ilFSaveImage_(int *RetVal, struct descriptor *Desc)
|
||||
{
|
||||
char *Filename = malloc(Desc->length + 1);
|
||||
strncpy(Filename, Desc->string_ptr, Desc->length);
|
||||
Filename[Desc->length] = 0; // Should really be NULL...getting a warning, though.
|
||||
*RetVal = ilSaveImage(Filename);
|
||||
|
||||
free(Filename);
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILUT", "..\..\src-ILUT\msvc8\ILUT Unicode.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", "{D80F24EB-FFDB-4DBA-9714-12B21BA8AF2E}"
|
||||
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}") = "IL", "..\..\src-IL\msvc8\IL Unicode.vcproj", "{B46B180B-6079-4CE6-8647-A7D712774255}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILU", "..\..\src-ILU\msvc8\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}") = "Windows Example", "..\..\examples\windows_example\windows_example-vc8.vcproj", "{0C074F70-FA8F-4D7B-BD37-DCEF0371361B}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{B46B180B-6079-4CE6-8647-A7D712774255} = {B46B180B-6079-4CE6-8647-A7D712774255}
|
||||
{CCEBAA77-521A-4CC3-A4E0-C6B062FC2009} = {CCEBAA77-521A-4CC3-A4E0-C6B062FC2009}
|
||||
{7D060DA4-F2FA-44CC-80BE-065024DD6CA9} = {7D060DA4-F2FA-44CC-80BE-065024DD6CA9}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x64 = Debug|x64
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{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}.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
|
||||
{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}.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}.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
|
||||
{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}.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 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IL", "..\..\src-IL\msvc8\IL.vcproj", "{B46B180B-6079-4CE6-8647-A7D712774255}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILU", "..\..\src-ILU\msvc8\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\msvc8\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", "{715E9AC5-0B73-40AC-8558-E17F848982A5}"
|
||||
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
|
||||
BIN
Binary file not shown.
@@ -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
|
||||
@@ -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
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,535 @@
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' ImageLib Sources
|
||||
' Copyright (C) 2000-2002 by Denton Woods
|
||||
' Last modified: 06/22/2002 <--Y2K Compliant! =]
|
||||
'
|
||||
' Filename: il/il.h
|
||||
'
|
||||
' Description: The main include file for DevIL
|
||||
'
|
||||
'-----------------------------------------------------------------------------
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' Translated to Powerbasic by Peter Scheutz, Scheutz & Clementsen Design
|
||||
' Web: http://www.scheutz.dk
|
||||
' e-mail: sourcecode@scheutz.dk
|
||||
'
|
||||
' Last modified: 06/22/2002
|
||||
' Based on DevIL Ver. 1.6.1 headers
|
||||
'
|
||||
' Filename: il.inc
|
||||
'
|
||||
' Description: PB main include file for DevIL
|
||||
'
|
||||
' For information on use and download of DevIL goto: http://openil.sourceforge.net/
|
||||
' (Get docs and "End User Package")
|
||||
'
|
||||
' Report errors in the Powerbasic includes to e-mail above.
|
||||
'
|
||||
' For general help on Powerbasic and DevIL, try the forums at:
|
||||
' http://www.powerbasic.com
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
' #ifndef __il_h_
|
||||
' #ifndef __IL_H__
|
||||
|
||||
' %__il_h_
|
||||
' %__IL_H__
|
||||
|
||||
' #ifdef __cplusplus
|
||||
' extern "C" {
|
||||
' #endif
|
||||
|
||||
'%IL_NO_BMP
|
||||
'%IL_NO_CUT
|
||||
'%IL_NO_CHEAD
|
||||
'%IL_NO_DDS
|
||||
'%IL_NO_DOOM
|
||||
'%IL_NO_ICO
|
||||
'%IL_NO_JPG
|
||||
'%IL_NO_LIF
|
||||
'%IL_NO_LBM
|
||||
'%IL_NO_MDL
|
||||
'%IL_NO_PCD
|
||||
'%IL_NO_PCX
|
||||
'%IL_NO_PIC
|
||||
'%IL_NO_PNG
|
||||
'%IL_NO_PNM
|
||||
'%IL_NO_RAW
|
||||
'%IL_NO_SGI
|
||||
'%IL_NO_TGA
|
||||
'%IL_NO_TIF
|
||||
'%IL_NO_WAL
|
||||
'%IL_NO_DDS
|
||||
'%IL_NO_DCX
|
||||
'%IL_NO_PSD
|
||||
'%IL_NO_PSP
|
||||
'%IL_NO_PXR
|
||||
'%IL_NO_RAW
|
||||
'%IL_NO_SGI
|
||||
'%IL_NO_TGA
|
||||
'%IL_NO_TIF
|
||||
'%IL_NO_WAL
|
||||
'%IL_NO_XPM
|
||||
|
||||
'%IL_USE_IJL ' Whether we use the Intel Jpeg Library (else use libjpeg).
|
||||
|
||||
|
||||
' #ifdef _WIN32
|
||||
'%WIN32_LEAN_AND_MEAN ' Exclude rarely-used stuff from Windows headers
|
||||
'#include <windows.h>
|
||||
' #ifdef _MSC_VER
|
||||
' #ifndef _IL_BUILD_LIBRARY
|
||||
' #ifdef _DEBUG
|
||||
' #pragma comment(lib, "devil-d.lib")
|
||||
' #else
|
||||
' #pragma comment(lib, "devil.lib")
|
||||
' #endif'_DEBUG
|
||||
' #endif'_IL_BUILD_LIBRARY
|
||||
' #endif'_MSC_VER
|
||||
' #endif'_WIN32
|
||||
|
||||
' #include <stdio.h>
|
||||
|
||||
' typedef unsigned int ILenum;
|
||||
' typedef unsigned char ILboolean;
|
||||
' typedef unsigned int ILbitfield;
|
||||
' typedef char ILbyte;
|
||||
' typedef short ILshort;
|
||||
' typedef int ILint;
|
||||
' typedef int ILsizei;
|
||||
' typedef unsigned char ILubyte;
|
||||
' typedef unsigned short ILushort;
|
||||
' typedef unsigned int ILuint;
|
||||
' typedef float ILfloat;
|
||||
' typedef float ILclampf;
|
||||
' typedef double ILdouble;
|
||||
' typedef double ILclampd;
|
||||
' typedef void ILvoid;
|
||||
|
||||
|
||||
%IL_FALSE = 0
|
||||
%IL_TRUE = 1
|
||||
|
||||
|
||||
' Matches OpenGL's right now.
|
||||
%IL_COLOUR_INDEX = &H1900&
|
||||
%IL_COLOR_INDEX = &H1900&
|
||||
%IL_RGB = &H1907&
|
||||
%IL_RGBA = &H1908&
|
||||
%IL_BGR = &H80E0&
|
||||
%IL_BGRA = &H80E1&
|
||||
%IL_LUMINANCE = &H1909&
|
||||
|
||||
|
||||
%IL_BYTE = &H1400&
|
||||
%IL_UNSIGNED_BYTE = &H1401&
|
||||
%IL_SHORT = &H1402&
|
||||
%IL_UNSIGNED_SHORT = &H1403&
|
||||
%IL_INT = &H1404&
|
||||
%IL_UNSIGNED_INT = &H1405&
|
||||
%IL_FLOAT = &H1406&
|
||||
%GL_DOUBLE = &H140A&
|
||||
|
||||
|
||||
%IL_VENDOR = &H1F00&
|
||||
|
||||
|
||||
'
|
||||
' IL-specific #define's
|
||||
'
|
||||
|
||||
%IL_VERSION_1_5_6 = 1
|
||||
%IL_VERSION = 156
|
||||
%IL_LOAD_EXT = &H1F01&
|
||||
%IL_SAVE_EXT = &H1F02&
|
||||
|
||||
|
||||
' Attribute Bits
|
||||
%IL_ORIGIN_BIT = &H00000001&
|
||||
%IL_FILE_BIT = &H00000002&
|
||||
%IL_PAL_BIT = &H00000004&
|
||||
%IL_FORMAT_BIT = &H00000008&
|
||||
%IL_TYPE_BIT = &H00000010&
|
||||
%IL_COMPRESS_BIT = &H00000020&
|
||||
%IL_LOADFAIL_BIT = &H00000040&
|
||||
%IL_ALL_ATTRIB_BITS = &H000FFFFF&
|
||||
|
||||
|
||||
' Palette types
|
||||
%IL_PAL_NONE = &H0400&
|
||||
%IL_PAL_RGB24 = &H0401&
|
||||
%IL_PAL_RGB32 = &H0402&
|
||||
%IL_PAL_RGBA32 = &H0403&
|
||||
%IL_PAL_BGR24 = &H0404&
|
||||
%IL_PAL_BGR32 = &H0405&
|
||||
%IL_PAL_BGRA32 = &H0406&
|
||||
|
||||
|
||||
' Image types
|
||||
%IL_TYPE_UNKNOWN = &H0000&
|
||||
%IL_BMP = &H0420&
|
||||
%IL_CUT = &H0421&
|
||||
%IL_DOOM = &H0422&
|
||||
%IL_DOOM_FLAT = &H0423&
|
||||
%IL_ICO = &H0424&
|
||||
%IL_JPG = &H0425&
|
||||
%IL_LBM = &H0426&
|
||||
%IL_PCD = &H0427&
|
||||
%IL_PCX = &H0428&
|
||||
%IL_PIC = &H0429&
|
||||
%IL_PNG = &H042A&
|
||||
%IL_PNM = &H042B&
|
||||
%IL_SGI = &H042C&
|
||||
%IL_TGA = &H042D&
|
||||
%IL_TIF = &H042E&
|
||||
%IL_CHEAD = &H042F&
|
||||
%IL_RAW = &H0430&
|
||||
%IL_MDL = &H0431&
|
||||
%IL_WAL = &H0432&
|
||||
%IL_LIF = &H0434&
|
||||
%IL_MNG = &H0435&
|
||||
%IL_JNG = &H0435&
|
||||
%IL_GIF = &H0436&
|
||||
%IL_DDS = &H0437&
|
||||
%IL_DCX = &H0438&
|
||||
%IL_PSD = &H0439&
|
||||
%IL_EXIF = &H043A&
|
||||
%IL_PSP = &H043B&
|
||||
%IL_PIX = &H043C&
|
||||
%IL_PXR = &H043D&
|
||||
%IL_XPM = &H043E&
|
||||
|
||||
%IL_JASC_PAL = &H0475&
|
||||
|
||||
|
||||
' Error Types
|
||||
%IL_NO_ERROR = &H0000&
|
||||
%IL_INVALID_ENUM = &H0501&
|
||||
%IL_OUT_OF_MEMORY = &H0502&
|
||||
%IL_FORMAT_NOT_SUPPORTED = &H0503&
|
||||
%IL_INTERNAL_ERROR = &H0504&
|
||||
%IL_INVALID_VALUE = &H0505&
|
||||
%IL_ILLEGAL_OPERATION = &H0506&
|
||||
%IL_ILLEGAL_FILE_VALUE = &H0507&
|
||||
%IL_INVALID_FILE_HEADER = &H0508&
|
||||
%IL_INVALID_PARAM = &H0509&
|
||||
%IL_COULD_NOT_OPEN_FILE = &H050A&
|
||||
%IL_INVALID_EXTENSION = &H050B&
|
||||
%IL_FILE_ALREADY_EXISTS = &H050C&
|
||||
%IL_OUT_FORMAT_SAME = &H050D&
|
||||
%IL_STACK_OVERFLOW = &H050E&
|
||||
%IL_STACK_UNDERFLOW = &H050F&
|
||||
%IL_INVALID_CONVERSION = &H0510&
|
||||
%IL_BAD_DIMENSIONS = &H0511&
|
||||
%IL_FILE_READ_ERROR = &H0512&
|
||||
|
||||
%IL_LIB_GIF_ERROR = &H05E1&
|
||||
%IL_LIB_JPEG_ERROR = &H05E2&
|
||||
%IL_LIB_PNG_ERROR = &H05E3&
|
||||
%IL_LIB_TIFF_ERROR = &H05E4&
|
||||
%IL_LIB_MNG_ERROR = &H05E5&
|
||||
%IL_UNKNOWN_ERROR = &H05FF&
|
||||
|
||||
|
||||
' Origin Definitions
|
||||
%IL_ORIGIN_SET = &H0600&
|
||||
%IL_ORIGIN_LOWER_LEFT = &H0601&
|
||||
%IL_ORIGIN_UPPER_LEFT = &H0602&
|
||||
%IL_ORIGIN_MODE = &H0603&
|
||||
|
||||
|
||||
' Format and Type Mode Definitions
|
||||
%IL_FORMAT_SET = &H0610&
|
||||
%IL_FORMAT_MODE = &H0611&
|
||||
%IL_TYPE_SET = &H0612&
|
||||
%IL_TYPE_MODE = &H0613&
|
||||
|
||||
|
||||
' File definitions
|
||||
%IL_FILE_OVERWRITE = &H0620&
|
||||
%IL_FILE_MODE = &H0621&
|
||||
|
||||
|
||||
' Palette definitions
|
||||
%IL_CONV_PAL = &H0630&
|
||||
|
||||
|
||||
' Load fail definitions
|
||||
%IL_DEFAULT_ON_FAIL = &H0632&
|
||||
|
||||
|
||||
' Key colour definitions
|
||||
%IL_USE_KEY_COLOUR = &H0635&
|
||||
%IL_USE_KEY_COLOR = &H0635&
|
||||
|
||||
|
||||
' Interlace definitions
|
||||
%IL_SAVE_INTERLACED = &H0639&
|
||||
%IL_INTERLACE_MODE = &H063A&
|
||||
|
||||
|
||||
' Quantization definitions
|
||||
%IL_QUANTIZATION_MODE = &H0640&
|
||||
%IL_WU_QUANT = &H0641&
|
||||
%IL_NEU_QUANT = &H0642&
|
||||
%IL_NEU_QUANT_SAMPLE = &H0643&
|
||||
|
||||
|
||||
' Hints
|
||||
%IL_FASTEST = &H0660&
|
||||
%IL_LESS_MEM = &H0661&
|
||||
%IL_DONT_CARE = &H0662&
|
||||
%IL_MEM_SPEED_HINT = &H0665&
|
||||
%IL_USE_COMPRESSION = &H0666&
|
||||
%IL_NO_COMPRESSION = &H0667&
|
||||
%IL_COMPRESSION_HINT = &H0668&
|
||||
|
||||
|
||||
' Subimage types
|
||||
%IL_SUB_NEXT = &H0680&
|
||||
%IL_SUB_MIPMAP = &H0681&
|
||||
%IL_SUB_LAYER = &H0682&
|
||||
|
||||
|
||||
' Compression definitions
|
||||
%IL_COMPRESS_MODE = &H0700&
|
||||
%IL_COMPRESS_NONE = &H0701&
|
||||
%IL_COMPRESS_RLE = &H0702&
|
||||
%IL_COMPRESS_LZO = &H0703&
|
||||
%IL_COMPRESS_ZLIB = &H0704&
|
||||
|
||||
|
||||
' File format-specific values
|
||||
%IL_TGA_CREATE_STAMP = &H0710&
|
||||
%IL_JPG_QUALITY = &H0711&
|
||||
%IL_PNG_INTERLACE = &H0712&
|
||||
%IL_TGA_RLE = &H0713&
|
||||
%IL_BMP_RLE = &H0714&
|
||||
%IL_SGI_RLE = &H0715&
|
||||
%IL_TGA_CREATE_STAMP = &H0710&
|
||||
%IL_JPG_QUALITY = &H0711&
|
||||
%IL_PNG_INTERLACE = &H0712&
|
||||
%IL_TGA_RLE = &H0713&
|
||||
%IL_BMP_RLE = &H0714&
|
||||
%IL_SGI_RLE = &H0715&
|
||||
%IL_TGA_ID_STRING = &H0717&
|
||||
%IL_TGA_AUTHNAME_STRING = &H0718&
|
||||
%IL_TGA_AUTHCOMMENT_STRING = &H0719&
|
||||
%IL_PNG_AUTHNAME_STRING = &H071A&
|
||||
%IL_PNG_TITLE_STRING = &H071B&
|
||||
%IL_PNG_DESCRIPTION_STRING = &H071C&
|
||||
%IL_TIF_DESCRIPTION_STRING = &H071D&
|
||||
%IL_TIF_HOSTCOMPUTER_STRING = &H071E&
|
||||
%IL_TIF_DOCUMENTNAME_STRING = &H071F&
|
||||
%IL_TIF_AUTHNAME_STRING = &H0720&
|
||||
%IL_JPG_SAVE_FORMAT = &H0721&
|
||||
%IL_CHEAD_HEADER_STRING = &H0722&
|
||||
%IL_PCD_PICNUM = &H0723&
|
||||
|
||||
|
||||
' DXTC definitions
|
||||
%IL_DXTC_FORMAT = &H0705&
|
||||
%IL_DXT1 = &H0706&
|
||||
%IL_DXT2 = &H0707&
|
||||
%IL_DXT3 = &H0708&
|
||||
%IL_DXT4 = &H0709&
|
||||
%IL_DXT5 = &H070A&
|
||||
%IL_DXT_NO_COMP = &H070B&
|
||||
%IL_KEEP_DXTC_DATA = &H070C&
|
||||
%IL_DXTC_DATA_FORMAT = &H070D&
|
||||
|
||||
|
||||
' Cube map definitions
|
||||
%IL_CUBEMAP_POSITIVEX = &H00000400&
|
||||
%IL_CUBEMAP_NEGATIVEX = &H00000800&
|
||||
%IL_CUBEMAP_POSITIVEY = &H00001000&
|
||||
%IL_CUBEMAP_NEGATIVEY = &H00002000&
|
||||
%IL_CUBEMAP_POSITIVEZ = &H00004000&
|
||||
%IL_CUBEMAP_NEGATIVEZ = &H00008000&
|
||||
|
||||
|
||||
' Values
|
||||
%IL_VERSION_NUM = &H0DE2&
|
||||
%IL_IMAGE_WIDTH = &H0DE4&
|
||||
%IL_IMAGE_HEIGHT = &H0DE5&
|
||||
%IL_IMAGE_DEPTH = &H0DE6&
|
||||
%IL_IMAGE_SIZE_OF_DATA = &H0DE7&
|
||||
%IL_IMAGE_BPP = &H0DE8&
|
||||
%IL_IMAGE_BYTES_PER_PIXEL = &H0DE8&
|
||||
%IL_IMAGE_BITS_PER_PIXEL = &H0DE9&
|
||||
%IL_IMAGE_FORMAT = &H0DEA&
|
||||
%IL_IMAGE_TYPE = &H0DEB&
|
||||
%IL_PALETTE_TYPE = &H0DEC&
|
||||
%IL_PALETTE_SIZE = &H0DED&
|
||||
%IL_PALETTE_BPP = &H0DEE&
|
||||
%IL_PALETTE_NUM_COLS = &H0DEF&
|
||||
%IL_PALETTE_BASE_TYPE = &H0DF0&
|
||||
%IL_NUM_IMAGES = &H0DF1&
|
||||
%IL_NUM_MIPMAPS = &H0DF2&
|
||||
%IL_NUM_LAYERS = &H0DF3&
|
||||
%IL_ACTIVE_IMAGE = &H0DF4&
|
||||
%IL_ACTIVE_MIPMAP = &H0DF5&
|
||||
%IL_ACTIVE_LAYER = &H0DF6&
|
||||
%IL_CUR_IMAGE = &H0DF7&
|
||||
%IL_IMAGE_DURATION = &H0DF8&
|
||||
|
||||
|
||||
'
|
||||
' Section shamelessly modified from the glut header.
|
||||
'
|
||||
|
||||
' This is from Win32's <windef.h>
|
||||
' #if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__)
|
||||
' = %ILAPIENTRY = __stdcall
|
||||
' %IL_PACKSTRUCT
|
||||
' #else
|
||||
' %ILAPIENTRY
|
||||
' = %IL_PACKSTRUCT = __attribute__ = ((packed))
|
||||
' #endif
|
||||
' This is from Win32's <wingdi.h> and <winnt.h>
|
||||
' #if defined(__LCC__)
|
||||
' = %ILAPI = __stdcall
|
||||
' #elif _WIN32
|
||||
' #ifdef _IL_BUILD_LIBRARY
|
||||
' = %ILAPI = __declspec(dllexport)
|
||||
' #else
|
||||
' = %ILAPI = __declspec(dllimport)
|
||||
' #endif
|
||||
' #else
|
||||
' %ILAPI
|
||||
' #endif
|
||||
|
||||
|
||||
%IL_SEEK_SET = 0
|
||||
%IL_SEEK_CUR = 1
|
||||
%IL_SEEK_END = 2
|
||||
%IL_EOF = -1
|
||||
|
||||
|
||||
' Callback functions for file reading
|
||||
' typedef void* ILHANDLE;
|
||||
' typedef ILvoid (ILAPIENTRY *fCloseRProc) (ILHANDLE);
|
||||
' typedef ILboolean (ILAPIENTRY *fEofProc) (ILHANDLE);
|
||||
' typedef ILint (ILAPIENTRY *fGetcProc) (ILHANDLE);
|
||||
' typedef ILHANDLE (ILAPIENTRY *fOpenRProc) (char*);
|
||||
' typedef ILint (ILAPIENTRY *fReadProc) (void*, ILuint, ILuint, ILHANDLE);
|
||||
' typedef ILint (ILAPIENTRY *fSeekRProc) (ILHANDLE, ILint, ILint);
|
||||
' typedef ILint (ILAPIENTRY *fTellRProc) (ILHANDLE);
|
||||
|
||||
' Callback functions for file writing
|
||||
' typedef ILvoid (ILAPIENTRY *fCloseWProc) (ILHANDLE);
|
||||
' typedef ILHANDLE (ILAPIENTRY *fOpenWProc) (char*);
|
||||
' typedef ILint (ILAPIENTRY *fPutcProc) (ILubyte, ILHANDLE);
|
||||
' typedef ILint (ILAPIENTRY *fSeekWProc) (ILHANDLE, ILint, ILint);
|
||||
' typedef ILint (ILAPIENTRY *fTellWProc) (ILHANDLE);
|
||||
' typedef ILint (ILAPIENTRY *fWriteProc) (void*, ILuint, ILuint, ILHANDLE);
|
||||
|
||||
|
||||
' Registered format procedures
|
||||
' typedef ILboolean (ILAPIENTRY *IL_LOADPROC) (char*);
|
||||
' typedef ILboolean (ILAPIENTRY *IL_SAVEPROC) (char*);
|
||||
|
||||
|
||||
' ImageLib Functions
|
||||
Declare Function ilActiveImage Lib "DevIL.dll" Alias "ilActiveImage" (ByVal pb_Number As Dword) As Byte
|
||||
Declare Function ilActiveLayer Lib "DevIL.dll" Alias "ilActiveLayer" (ByVal pb_Number As Dword) As Byte
|
||||
Declare Function ilActiveMipmap Lib "DevIL.dll" Alias "ilActiveMipmap" (ByVal pb_Number As Dword) As Byte
|
||||
Declare Function ilApplyPal Lib "DevIL.dll" Alias "ilApplyPal" (ByRef pb_FileName As Asciiz) As Byte
|
||||
Declare Function ilApplyProfile Lib "DevIL.dll" Alias "ilApplyProfile" (ByRef pb_InProfile
|
||||
As Asciiz, ByRef pb_OutProfile As Asciiz) As Byte
|
||||
Declare Sub ilBindImage Lib "DevIL.dll" Alias "ilBindImage" (ByVal pb_Image As Dword)
|
||||
Declare Function ilBlit Lib "DevIL.dll" Alias "ilBlit" (ByVal pb_Src As Long, ByVal pb_DestX As Long, ByVal pb_DestY As Long, ByVal pb_DestZ as Dword, ByVal pb_SrcX As Dword, ByVal pb_SrcY As Dword, ByVal pb_SrcZ As Dword, ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword) As Byte
|
||||
Declare Sub ilClearColour Lib "DevIL.dll" Alias "ilClearColour" (ByVal pb_Red As Single, ByVal pb_Green As Single, ByVal pb_Blue As Single, ByVal pb_Alpha As Single)
|
||||
Declare Function ilClearImage Lib "DevIL.dll" Alias "ilClearImage" () As Byte
|
||||
Declare Function ilCloneCurImage Lib "DevIL.dll" Alias "ilCloneCurImage" () As Dword
|
||||
Declare Function ilCompressFunc Lib "DevIL.dll" Alias "ilCompressFunc" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilConvertImage Lib "DevIL.dll" Alias "ilConvertImage" (ByVal pb_DestFormat As Dword, ByVal pb_DestType As Dword) As Byte
|
||||
Declare Function ilConvertPal Lib "DevIL.dll" Alias "ilConvertPal" (ByVal pb_DestFormat As Dword) As Byte
|
||||
Declare Function ilCopyImage Lib "DevIL.dll" Alias "ilCopyImage" (ByVal pb_Src As Dword) As Byte
|
||||
Declare Function ilCopyPixels Lib "DevIL.dll" Alias "ilCopyPixels" (ByVal pb_XOff As Dword, ByVal pb_YOff As Dword, ByVal pb_ZOff As Dword, ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword, ByVal pb_Format As Dword, ByVal pb_Type As Dword, ByRef pb_Data As Long) As Dword
|
||||
Declare Function ilCreateSubImage Lib "DevIL.dll" Alias "ilCreateSubImage" (ByVal pb_Type As Dword, ByVal pb_Num As Dword) As Dword
|
||||
Declare Function ilDefaultImage Lib "DevIL.dll" Alias "ilDefaultImage" () As Byte
|
||||
Declare Sub ilDeleteImages Lib "DevIL.dll" Alias "ilDeleteImages" (ByVal pb_Num As Long, ByRef pb_Images As Dword)
|
||||
Declare Function ilDisable Lib "DevIL.dll" Alias "ilDisable" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilEnable Lib "DevIL.dll" Alias "ilEnable" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilFormatFunc Lib "DevIL.dll" Alias "ilFormatFunc" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Sub ilGenImages Lib "DevIL.dll" Alias "ilGenImages" (ByVal pb_Num As Long, ByRef pb_Images As Dword)
|
||||
Declare Function ilGetAlpha Lib "DevIL.dll" Alias "ilGetAlpha" (ByVal pb_Type As Dword) As Long
|
||||
Declare Function ilGetBoolean Lib "DevIL.dll" Alias "ilGetBoolean" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Sub ilGetBooleanv Lib "DevIL.dll" Alias "ilGetBooleanv" (ByVal pb_Mode As Dword, ByRef pb_Param As Byte)
|
||||
Declare Function ilGetData Lib "DevIL.dll" Alias "ilGetData" () As Long
|
||||
Declare Function ilGetError Lib "DevIL.dll" Alias "ilGetError" () As Dword
|
||||
Declare Function ilGetInteger Lib "DevIL.dll" Alias "ilGetInteger" (ByVal pb_Mode As Dword) As Long
|
||||
Declare Sub ilGetIntegerv Lib "DevIL.dll" Alias "ilGetIntegerv" (ByVal pb_Mode As Dword, ByRef pb_Param As Long)
|
||||
Declare Function ilGetLumpPos Lib "DevIL.dll" Alias "ilGetLumpPos" () As Dword
|
||||
Declare Function ilGetPalette Lib "DevIL.dll" Alias "ilGetPalette" () As Long
|
||||
Declare Function ilGetString Lib "DevIL.dll" Alias "ilGetString" (ByVal pb_StringName As Dword) As String
|
||||
Declare Sub ilHint Lib "DevIL.dll" Alias "ilHint" (ByVal pb_Target As Dword, ByVal pb_Mode As Dword)
|
||||
Declare Sub ilInit Lib "DevIL.dll" Alias "ilInit" ()
|
||||
Declare Function ilIsDisabled Lib "DevIL.dll" Alias "ilIsDisabled" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilIsEnabled Lib "DevIL.dll" Alias "ilIsEnabled" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilIsImage Lib "DevIL.dll" Alias "ilIsImage" (ByVal pb_Image As Dword) As Byte
|
||||
Declare Function ilIsValid Lib "DevIL.dll" Alias "ilIsValid" (ByVal pb_Type As Dword, ByRef pb_FileName As Asciiz) As Byte
|
||||
Declare Function ilIsValidF Lib "DevIL.dll" Alias "ilIsValidF" (ByVal pb_Type As Dword, ByVal pb_File As Long) As Byte
|
||||
Declare Function ilIsValidL Lib "DevIL.dll" Alias "ilIsValidL" (ByVal pb_Type As Dword, ByRef pb_Lump As Long, ByVal pb_Size As Dword) As Byte
|
||||
Declare Sub ilKeyColour Lib "DevIL.dll" Alias "ilKeyColour" (ByVal pb_Red As Single, ByVal pb_Green As Single, ByVal pb_Blue As Single, ByVal pb_Alpha As Single)
|
||||
Declare Function ilLoad Lib "DevIL.dll" Alias "ilLoad" (ByVal pb_Type As Dword, ByRef pb_FileName As Asciiz) As Byte
|
||||
Declare Function ilLoadF Lib "DevIL.dll" Alias "ilLoadF" (ByVal pb_Type As Dword, ByVal pb_File As Long) As Byte
|
||||
Declare Function ilLoadImage Lib "DevIL.dll" Alias "ilLoadImage" (ByRef pb_FileName As Asciiz) As Byte
|
||||
Declare Function ilLoadL Lib "DevIL.dll" Alias "ilLoadL" (ByVal pb_Type As Dword, ByRef pb_Lump As Long, ByVal pb_Size As Dword) As Byte
|
||||
Declare Function ilLoadPal Lib "DevIL.dll" Alias "ilLoadPal" (ByRef pb_FileName As Asciiz) As Byte
|
||||
Declare Function ilOriginFunc Lib "DevIL.dll" Alias "ilOriginFunc" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilOverlayImage Lib "DevIL.dll" Alias "ilOverlayImage" (ByVal pb_Src As Dword, ByVal pb_XCoord As Long, ByVal pb_YCoord As Long, ByVal pb_ZCoord As Long) As Byte
|
||||
Declare Sub ilPopAttrib Lib "DevIL.dll" Alias "ilPopAttrib" ()
|
||||
Declare Sub ilPushAttrib Lib "DevIL.dll" Alias "ilPushAttrib" (ByVal pb_Bits As Dword)
|
||||
Declare Sub ilRegisterFormat Lib "DevIL.dll" Alias "ilRegisterFormat" (ByVal pb_Format As Dword)
|
||||
Declare Function ilRegisterLoad Lib "DevIL.dll" Alias "ilRegisterLoad" (ByRef pb_Ext As Asciiz, ByVal pb_Load As Dword) As Byte
|
||||
Declare Function ilRegisterMipNum Lib "DevIL.dll" Alias "ilRegisterMipNum" (ByVal pb_Num As Dword) As Byte
|
||||
Declare Function ilRegisterNumImages Lib "DevIL.dll" Alias "ilRegisterNumImages" (ByVal pb_Num As Dword) As Byte
|
||||
Declare Sub ilRegisterOrigin Lib "DevIL.dll" Alias "ilRegisterOrigin" (ByVal pb_Origin As Dword)
|
||||
Declare Sub ilRegisterPal Lib "DevIL.dll" Alias "ilRegisterPal" (ByRef pb_Pal As Long, ByVal pb_Size As Dword, ByVal pb_Type As Dword)
|
||||
Declare Function ilRegisterSave Lib "DevIL.dll" Alias "ilRegisterSave" (ByRef pb_Ext As Asciiz, ByVal pb_Save As Dword) As Byte
|
||||
Declare Sub ilRegisterType Lib "DevIL.dll" Alias "ilRegisterType" (ByVal pb_Type As Dword)
|
||||
Declare Function ilRemoveLoad Lib "DevIL.dll" Alias "ilRemoveLoad" (ByRef pb_Ext As Asciiz) As Byte
|
||||
Declare Function ilRemoveSave Lib "DevIL.dll" Alias "ilRemoveSave" (ByRef pb_Ext As Asciiz) As Byte
|
||||
Declare Sub ilResetRead Lib "DevIL.dll" Alias "ilResetRead" ()
|
||||
Declare Sub ilResetWrite Lib "DevIL.dll" Alias "ilResetWrite" ()
|
||||
Declare Function ilSave Lib "DevIL.dll" Alias "ilSave" (ByVal pb_Type As Dword, ByRef pb_FileName As Asciiz) As Byte
|
||||
Declare Function ilSaveF Lib "DevIL.dll" Alias "ilSaveF" (ByVal pb_Type As Dword, ByVal pb_File As Long) As Byte
|
||||
Declare Function ilSaveImage Lib "DevIL.dll" Alias "ilSaveImage" (ByRef pb_FileName As Asciiz) As Byte
|
||||
Declare Function ilSaveL Lib "DevIL.dll" Alias "ilSaveL" (ByVal pb_Type As Dword, ByRef pb_Lump As Long, ByVal pb_Size As Dword) As Byte
|
||||
Declare Function ilSavePal Lib "DevIL.dll" Alias "ilSavePal" (ByRef pb_FileName As Asciiz) As Byte
|
||||
Declare Function ilSetData Lib "DevIL.dll" Alias "ilSetData" (ByRef pb_Data As Long) As Byte
|
||||
Declare Function ilSetDuration Lib "DevIL.dll" Alias "ilSetDuration" (ByVal pb_Duration As Dword) As Byte
|
||||
Declare Sub ilSetInteger Lib "DevIL.dll" Alias "ilSetInteger" (ByVal pb_Mode As Dword, ByVal pb_Param As Dword)
|
||||
Declare Sub ilSetPixels Lib "DevIL.dll" Alias "ilSetPixels" (ByVal pb_XOff As Dword, ByVal pb_YOff As Dword, ByVal pb_ZOff As Dword, ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword, ByVal pb_Format As Dword, ByVal pb_Type As _
|
||||
Dword, ByRef pb_Data As Long)
|
||||
Declare Sub ilSetRead Lib "DevIL.dll" Alias "ilSetRead" (ByVal pb_fOpenRProc As Dword, ByVal pb_fCloseRProc As Dword, ByVal pb_fEofProc As Dword, ByVal pb_fGetcProc As Dword, ByVal pb_fReadProc As Dword, _
|
||||
ByVal pb_fSeekRProc As Dword, ByVal pb_fTellRProc As Dword)
|
||||
Declare Sub ilSetWrite Lib "DevIL.dll" Alias "ilSetWrite" (ByVal pb_fOpenWProc As Dword, ByVal pb_fCloseWProc As Dword, ByVal pb_fPutcProc As Dword, ByVal pb_fSeekWProc As Dword, _
|
||||
ByVal pb_fTellWProc As Dword, ByVal pb_fWriteProc As Dword)
|
||||
Declare Function ilTexImage Lib "DevIL.dll" Alias "ilTexImage" (ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword, ByVal pb_Bpp As Byte, ByVal pb_Format As Dword, ByVal pb_Type As Dword, ByRef pb_Data As Long) As Byte
|
||||
Declare Function ilTypeFunc Lib "DevIL.dll" Alias "ilTypeFunc" (ByVal pb_Mode As Dword) As Byte
|
||||
|
||||
Declare Function ilLoadData Lib "DevIL.dll" Alias "ilLoadData" (ByRef pb_FileName As Asciiz, ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword, ByVal pb_Bpp As Byte) As Byte
|
||||
Declare Function ilLoadDataF Lib "DevIL.dll" Alias "ilLoadDataF" (ByVal pb_File As Long, ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword, ByVal pb_Bpp As Byte) As Byte
|
||||
Declare Function ilLoadDataL Lib "DevIL.dll" Alias "ilLoadDataL" (ByRef pb_Lump As Long, ByVal pb_Size As Dword, ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword, ByVal pb_Bpp As Byte) As Byte
|
||||
Declare Function ilSaveData Lib "DevIL.dll" Alias "ilSaveData" (ByRef pb_FileName As Asciiz) As Byte
|
||||
|
||||
'%ilClearColor = ilClearColour
|
||||
'%ilKeyColor = ilKeyColour
|
||||
|
||||
|
||||
' #if (DJGPP || LINUX)
|
||||
' static void GccMain() __attribute__((constructor));
|
||||
' #endif
|
||||
|
||||
|
||||
' #ifdef __cplusplus
|
||||
' }
|
||||
' #endif
|
||||
|
||||
' #endif /* __IL_H__ */
|
||||
' #endif /* __il_h_ */
|
||||
@@ -0,0 +1,188 @@
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' ImageLib Utility Sources
|
||||
' Copyright (C) 2000-2002 by Denton Woods
|
||||
' Last modified: 06/22/2002 <--Y2K Compliant! =]
|
||||
'
|
||||
' Filename: il/ilu.h
|
||||
'
|
||||
' Description: The main include file for OpenILU
|
||||
'
|
||||
'-----------------------------------------------------------------------------
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' Translated to Powerbasic by Peter Scheutz, Scheutz & Clementsen Design
|
||||
' Web: http://www.scheutz.dk
|
||||
' e-mail: sourcecode@scheutz.dk
|
||||
'
|
||||
' Last modified: 06/22/2002
|
||||
' Based on DevIL Ver. 1.6.1 headers
|
||||
'
|
||||
' Filename: ilu.inc
|
||||
'
|
||||
' Description: PB main include file for OpenILU
|
||||
'
|
||||
' For information on use and download of OpenIL goto: http://openil.sourceforge.net/
|
||||
' (Get docs and "End User Package")
|
||||
'
|
||||
' Report errors in the Powerbasic includes to e-mail above.
|
||||
'
|
||||
' For general help on Powerbasic and OpenIL, try the forums at:
|
||||
' http://www.powerbasic.com
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
' #ifndef __ilu_h_
|
||||
' #ifndef __ILU_H__
|
||||
|
||||
' %__ilu_h_
|
||||
' %__ILU_H__
|
||||
|
||||
' #include <il/il.h>
|
||||
|
||||
' #ifdef __cplusplus
|
||||
' extern "C" {
|
||||
' #endif
|
||||
|
||||
|
||||
' #ifdef _WIN32
|
||||
' #ifdef _MSC_VER
|
||||
' #ifndef _ILU_BUILD_LIBRARY
|
||||
' #ifdef _DEBUG
|
||||
' #pragma comment(lib, "ilu-d.lib")
|
||||
' #else
|
||||
' #pragma comment(lib, "ilu.lib")
|
||||
' #endif'_DEBUG
|
||||
' #endif'_ILU_BUILD_LIBRARY
|
||||
' #endif'_MSC_VER
|
||||
' #endif'_WIN32
|
||||
|
||||
|
||||
%ILU_VERSION_1_5_6 = 1
|
||||
%ILU_VERSION = 156
|
||||
|
||||
|
||||
%ILU_FILTER = &H2600&
|
||||
%ILU_NEAREST = &H2601&
|
||||
%ILU_LINEAR = &H2602&
|
||||
%ILU_BILINEAR = &H2603&
|
||||
%ILU_SCALE_BOX = &H2604&
|
||||
%ILU_SCALE_TRIANGLE = &H2605&
|
||||
%ILU_SCALE_BELL = &H2606&
|
||||
%ILU_SCALE_BSPLINE = &H2607&
|
||||
%ILU_SCALE_LANCZOS3 = &H2608&
|
||||
%ILU_SCALE_MITCHELL = &H2609&
|
||||
|
||||
|
||||
' Error types
|
||||
%ILU_INVALID_ENUM = &H0501&
|
||||
%ILU_OUT_OF_MEMORY = &H0502&
|
||||
%ILU_INTERNAL_ERROR = &H0504&
|
||||
%ILU_INVALID_VALUE = &H0505&
|
||||
%ILU_ILLEGAL_OPERATION = &H0506&
|
||||
%ILU_INVALID_PARAM = &H0509&
|
||||
|
||||
|
||||
' Values
|
||||
%ILU_PLACEMENT = &H0700&
|
||||
%ILU_LOWER_LEFT = &H0701&
|
||||
%ILU_LOWER_RIGHT = &H0702&
|
||||
%ILU_UPPER_LEFT = &H0703&
|
||||
%ILU_UPPER_RIGHT = &H0704&
|
||||
%ILU_CENTER = &H0705&
|
||||
%ILU_CONVOLUTION_MATRIX = &H0710&
|
||||
%ILU_VERSION_NUM = &H0DE2&
|
||||
|
||||
|
||||
' Filters
|
||||
%ILU_FILTER_BLUR = &H0803&
|
||||
%ILU_FILTER_GAUSSIAN_3x3 = &H0804&
|
||||
%ILU_FILTER_GAUSSIAN_5X5 = &H0805&
|
||||
%ILU_FILTER_EMBOSS1 = &H0807&
|
||||
%ILU_FILTER_EMBOSS2 = &H0808&
|
||||
%ILU_FILTER_LAPLACIAN1 = &H080A&
|
||||
%ILU_FILTER_LAPLACIAN2 = &H080B&
|
||||
%ILU_FILTER_LAPLACIAN3 = &H080C&
|
||||
%ILU_FILTER_LAPLACIAN4 = &H080D&
|
||||
%ILU_FILTER_SHARPEN1 = &H080E&
|
||||
%ILU_FILTER_SHARPEN2 = &H080F&
|
||||
%ILU_FILTER_SHARPEN3 = &H0810&
|
||||
|
||||
|
||||
' typedef struct ILinfo
|
||||
Type ILinfo Dword
|
||||
iId As Dword'ILuint Id; ' the image's id
|
||||
iData As Dword '(should this be Byte Ptr? )'ILubyte *Data; ' the image's data
|
||||
iWidth As Dword 'ILuint Width; ' the image's width
|
||||
iHeight As Dword 'ILuint Height; ' the image's height
|
||||
iDepth As Dword 'ILuint Depth; ' the image's depth
|
||||
iBpp As Byte'ILubyte Bpp; ' bytes per pixel (not bits) of the image
|
||||
iSizeOfData As Dword 'ILuint SizeOfData; ' the total size of the data (in bytes)
|
||||
iFormat As Dword 'ILenum Format; ' image format (in IL enum style)
|
||||
iType As Dword 'ILenum Type; ' image type (in IL enum style)
|
||||
iOrigin As Dword 'ILenum Origin; ' origin of the image
|
||||
iPalette As Long 'ILubyte *Palette; ' the image's palette
|
||||
iPalType As Dword 'ILenum PalType; ' palette type
|
||||
iPalSize As Dword 'ILuint PalSize; ' palette size
|
||||
iNumNext As Dword'ILuint NumNext; ' number of images following
|
||||
iNumMips As Dword 'ILuint NumMips; ' number of mipmaps
|
||||
iNumLayers As Dword'ILuint NumLayers; ' number of layers
|
||||
End Type
|
||||
|
||||
|
||||
' ImageLib Utility Functions
|
||||
Declare Function iluAlienify Lib "ilu.dll" Alias "iluAlienify" () As Byte
|
||||
Declare Function iluApplyProfile Lib "ilu.dll" Alias "iluApplyProfile" (ByRef pb_InProfile As Asciiz, ByRef pb_OutProfile As Asciiz) As Byte
|
||||
Declare Function iluBlurAvg Lib "ilu.dll" Alias "iluBlurAvg" (ByVal pb_Iter As Dword) As Byte
|
||||
Declare Function iluBlurGaussian Lib "ilu.dll" Alias "iluBlurGaussian" (ByVal pb_Iter As Dword) As Byte
|
||||
Declare Function iluBuildMipmaps Lib "ilu.dll" Alias "iluBuildMipmaps" () As Byte
|
||||
Declare Function iluColoursUsed Lib "ilu.dll" Alias "iluColoursUsed" () As Dword
|
||||
Declare Function iluCompareImage Lib "ilu.dll" Alias "iluCompareImage" (ByVal pb_Comp As Dword) As Byte
|
||||
Declare Function iluContrast Lib "ilu.dll" Alias "iluContrast" (ByVal pb_Contrast As Single) As Byte
|
||||
Declare Function iluCrop Lib "ilu.dll" Alias "iluCrop" (ByVal pb_XOff As Dword, ByVal pb_YOff As Dword, ByVal pb_ZOff As Dword, ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword) As Byte
|
||||
Declare Sub iluDeleteImage Lib "ilu.dll" Alias "iluDeleteImage" (ByVal pb_Id As Dword)
|
||||
Declare Function iluEdgeDetectE Lib "ilu.dll" Alias "iluEdgeDetectE" () As Byte
|
||||
Declare Function iluEdgeDetectP Lib "ilu.dll" Alias "iluEdgeDetectP" () As Byte
|
||||
Declare Function iluEdgeDetectS Lib "ilu.dll" Alias "iluEdgeDetectS" () As Byte
|
||||
Declare Function iluEmboss Lib "ilu.dll" Alias "iluEmboss" () As Byte
|
||||
Declare Function iluEnlargeCanvas Lib "ilu.dll" Alias "iluEnlargeCanvas" (ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword) As Byte
|
||||
Declare Function iluEnlargeImage Lib "ilu.dll" Alias "iluEnlargeImage" (ByVal pb_XDim As Single, ByVal pb_YDim As Single, ByVal pb_ZDim As Single) As Byte
|
||||
Declare Function iluEqualize Lib "ilu.dll" Alias "iluEqualize" () As Byte
|
||||
Declare Function iluErrorString Lib "ilu.dll" Alias "iluErrorString" (ByVal pb_Error As Dword) As String
|
||||
Declare Function iluFlipImage Lib "ilu.dll" Alias "iluFlipImage" () As Byte
|
||||
Declare Function iluGammaCorrect Lib "ilu.dll" Alias "iluGammaCorrect" (ByVal pb_Gamma As Single) As Byte
|
||||
Declare Function iluGenImage Lib "ilu.dll" Alias "iluGenImage" () As Dword
|
||||
Declare Sub iluGetImageInfo Lib "ilu.dll" Alias "iluGetImageInfo" (ByRef pb_Info As ILinfo)
|
||||
Declare Function iluGetInteger Lib "ilu.dll" Alias "iluGetInteger" (ByVal pb_Mode As Dword) As Long
|
||||
Declare Sub iluGetIntegerv Lib "ilu.dll" Alias "iluGetIntegerv" (ByVal pb_Mode As Dword, ByRef pb_Param As Long)
|
||||
Declare Function iluGetString Lib "ilu.dll" Alias "iluGetString" (ByVal pb_StringName As Dword) As String
|
||||
Declare Sub iluInit Lib "ilu.dll" Alias "iluInit" ()
|
||||
Declare Function iluInvertAlpha Lib "ilu.dll" Alias "iluInvertAlpha" () As Byte
|
||||
Declare Function iluLoadImage Lib "ilu.dll" Alias "iluLoadImage" (ByRef pb_FileName As Asciiz) As Dword
|
||||
Declare Sub iluImageParameter Lib "ilu.dll" Alias "iluImageParameter" (ByVal pb_PName As Dword, ByVal pb_Param As Dword)
|
||||
Declare Function iluMirror Lib "ilu.dll" Alias "iluMirror" () As Byte
|
||||
Declare Function iluNegative Lib "ilu.dll" Alias "iluNegative" () As Byte
|
||||
Declare Function iluNoisify Lib "ilu.dll" Alias "iluNoisify" (ByVal pb_Tolerance As Single) As Byte
|
||||
Declare Function iluPixelize Lib "ilu.dll" Alias "iluPixelize" (ByVal pb_PixSize As Dword) As Byte
|
||||
'Declare Sub iluRegionf Lib "ilu.dll" Alias "iluRegionf" (ByVal pb_ULx As Single, ByVal pb_ULy As Single, ByVal pb_BRx As Single, ByVal pb_BRy As Single)
|
||||
'Declare Sub iluRegioni Lib "ilu.dll" Alias "iluRegioni" (ByVal pb_ULx As Dword, ByVal pb_ULy As Dword, ByVal pb_BRx As Dword, ByVal pb_BRy As Dword)
|
||||
Declare Function iluReplaceColour Lib "ilu.dll" Alias "iluReplaceColour" (ByVal pb_Red As Byte, ByVal pb_Green As Byte, ByVal pb_Blue As Byte, ByVal pb_Tolerance As Single) As Byte
|
||||
Declare Function iluRotate Lib "ilu.dll" Alias "iluRotate" (ByVal pb_Angle As Single) As Byte
|
||||
Declare Function iluRotate3D Lib "ilu.dll" Alias "iluRotate3D" (ByVal pb_x As Single, ByVal pb_y As Single, ByVal pb_z As Single, ByVal pb_Angle As Single) As Byte
|
||||
Declare Function iluSaturate1f Lib "ilu.dll" Alias "iluSaturate1f" (ByVal pb_Saturation As Single) As Byte
|
||||
Declare Function iluSaturate4f Lib "ilu.dll" Alias "iluSaturate4f" (ByVal pb_r As Single, ByVal pb_g As Single, ByVal pb_b As Single, ByVal pb_Saturation As Single) As Byte
|
||||
Declare Function iluScale Lib "ilu.dll" Alias "iluScale" (ByVal pb_Width As Dword, ByVal pb_Height As Dword, ByVal pb_Depth As Dword) As Byte
|
||||
Declare Function iluScaleColours Lib "ilu.dll" Alias "iluScaleColours" (ByVal pb_r As Single, ByVal pb_g As Single, ByVal pb_b As Single) As Byte
|
||||
Declare Function iluSharpen Lib "ilu.dll" Alias "iluSharpen" (ByVal pb_Factor As Single, ByVal pb_Iter As Dword) As Byte
|
||||
Declare Function iluSwapColours Lib "ilu.dll" Alias "iluSwapColours" () As Byte
|
||||
Declare Function iluWave Lib "ilu.dll" Alias "iluWave" (ByVal pb_Angle As Single) As Byte
|
||||
|
||||
'%iluColorsUsed = iluColoursUsed
|
||||
'%iluSwapColors = iluSwapColours
|
||||
|
||||
|
||||
' #ifdef __cplusplus
|
||||
' }
|
||||
' #endif
|
||||
|
||||
' #endif /* __ILU_H__ */
|
||||
' #endif /* __ilu_h_ */
|
||||
@@ -0,0 +1,212 @@
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' ImageLib Utility Toolkit Sources
|
||||
' Copyright (C) 2000-2002 by Denton Woods
|
||||
' Last modified: 06/22/2002 <--Y2K Compliant! =]
|
||||
'
|
||||
' Filename: il/ilut.h
|
||||
'
|
||||
' Description: The main include file for ILUT
|
||||
'
|
||||
'-----------------------------------------------------------------------------
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' Translated to Powerbasic by Peter Scheutz, Scheutz & Clementsen Design
|
||||
' Web: http://www.scheutz.dk
|
||||
' e-mail: sourcecode@scheutz.dk
|
||||
'
|
||||
' Last modified: 06/22/2002
|
||||
' Based on DevIL Ver. 1.6.1 headers
|
||||
'
|
||||
' Filename: ilut.inc
|
||||
'
|
||||
' Description: PB main include file for OpenILUT
|
||||
'
|
||||
' For information on use and download of DevIL goto: http://openil.sourceforge.net/
|
||||
' (Get docs and "End User Package")
|
||||
'
|
||||
' Report errors in the Powerbasic includes to e-mail above.
|
||||
'
|
||||
' For general help on Powerbasic and DevIL, try the forums at:
|
||||
' http://www.powerbasic.com
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
#If Not %Def(%WINAPI)
|
||||
#Include "win32api.inc"
|
||||
#EndIf
|
||||
|
||||
|
||||
' #ifndef __ilut_h_
|
||||
' #ifndef __ILUT_H__
|
||||
|
||||
' %__ilut_h_
|
||||
' %__ILUT_H__
|
||||
|
||||
' #include <il/il.h>
|
||||
' #include <il/ilu.h>
|
||||
|
||||
' #ifdef __cplusplus
|
||||
' extern "C" {
|
||||
' #endif
|
||||
|
||||
|
||||
' #ifdef _WIN32
|
||||
' #ifdef _MSC_VER
|
||||
' #ifndef _ILUT_BUILD_LIBRARY
|
||||
' #ifdef _DEBUG
|
||||
' #pragma comment(lib, "ilut-d.lib")
|
||||
' #else
|
||||
' #pragma comment(lib, "ilut.lib")
|
||||
' #endif'_DEBUG
|
||||
' #endif'_ILUT_BUILD_LIBRARY
|
||||
' #endif'_MSC_VER
|
||||
' #endif'_WIN32
|
||||
|
||||
|
||||
%ILUT_VERSION_1_5_6 = 1
|
||||
%ILUT_VERSION = 156
|
||||
|
||||
|
||||
' Attribute Bits
|
||||
%ILUT_OPENGL_BIT = &H00000001&
|
||||
%ILUT_D3D_BIT = &H00000002&
|
||||
%ILUT_ALL_ATTRIB_BITS = &H000FFFFF&
|
||||
|
||||
|
||||
' Error Types
|
||||
%ILUT_INVALID_ENUM = &H0501&
|
||||
%ILUT_OUT_OF_MEMORY = &H0502&
|
||||
%ILUT_INVALID_VALUE = &H0505&
|
||||
%ILUT_ILLEGAL_OPERATION = &H0506&
|
||||
%ILUT_INVALID_PARAM = &H0509&
|
||||
%ILUT_COULD_NOT_OPEN_FILE = &H050A&
|
||||
%ILUT_STACK_OVERFLOW = &H050E&
|
||||
%ILUT_STACK_UNDERFLOW = &H050F&
|
||||
%ILUT_NOT_SUPPORTED = &H0550&
|
||||
|
||||
|
||||
' State Definitions
|
||||
%ILUT_PALETTE_MODE = &H0600&
|
||||
%ILUT_OPENGL_CONV = &H0610&
|
||||
%ILUT_D3D_MIPLEVELS = &H0620&
|
||||
%ILUT_MAXTEX_WIDTH = &H0630&
|
||||
%ILUT_MAXTEX_HEIGHT = &H0631&
|
||||
%ILUT_MAXTEX_DEPTH = &H0632&
|
||||
%ILUT_GL_USE_S3TC = &H0634
|
||||
%ILUT_D3D_USE_DXTC = &H0634
|
||||
%ILUT_GL_GEN_S3TC = &H0635
|
||||
%ILUT_D3D_GEN_DXTC = &H0635
|
||||
%ILUT_S3TC_FORMAT = &H0705
|
||||
%ILUT_DXTC_FORMAT = &H0706
|
||||
|
||||
|
||||
' Values
|
||||
%ILUT_VERSION_NUM = &H0DE2&
|
||||
|
||||
|
||||
' ImageLib Utility Toolkit Functions
|
||||
Declare Function ilutDisable Lib "ilut.dll" Alias "ilutDisable" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilutEnable Lib "ilut.dll" Alias "ilutEnable" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilutGetBoolean Lib "ilut.dll" Alias "ilutGetBoolean" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Sub ilutGetBooleanv Lib "ilut.dll" Alias "ilutGetBooleanv" (ByVal pb_Mode As Dword, ByRef pb_Param As Byte)
|
||||
Declare Function ilutGetInteger Lib "ilut.dll" Alias "ilutGetInteger" (ByVal pb_Mode As Dword) As Long
|
||||
Declare Sub ilutGetIntegerv Lib "ilut.dll" Alias "ilutGetIntegerv" (ByVal pb_Mode As Dword, ByRef pb_Param As Long)
|
||||
Declare Function ilutGetString Lib "ilut.dll" Alias "ilutGetString" (ByVal pb_StringName As Dword) As Long
|
||||
Declare Sub ilutInit Lib "ilut.dll" Alias "ilutInit" ()
|
||||
Declare Function ilutIsDisabled Lib "ilut.dll" Alias "ilutIsDisabled" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Function ilutIsEnabled Lib "ilut.dll" Alias "ilutIsEnabled" (ByVal pb_Mode As Dword) As Byte
|
||||
Declare Sub ilutPopAttrib Lib "ilut.dll" Alias "ilutPopAttrib" ()
|
||||
Declare Sub ilutPushAttrib Lib "ilut.dll" Alias "ilutPushAttrib" (ByVal pb_Bits As Dword)
|
||||
Declare Sub ilutSetInteger Lib "ilut.dll" Alias "ilutSetInteger" (ByVal pb_Mode As Dword, ByVal pb_Param As Dword)
|
||||
|
||||
|
||||
' #ifdef DJGPP
|
||||
' %ILUT_USE_ALLEGRO
|
||||
' #elif _WIN32
|
||||
' %ILUT_USE_WIN32
|
||||
' %ILUT_USE_OPENGL
|
||||
' #else
|
||||
' %ILUT_USE_OPENGL
|
||||
' #endif
|
||||
|
||||
'%ILUT_USE_ALLEGRO
|
||||
'%ILUT_USE_WIN32
|
||||
'%ILUT_USE_OPENGL
|
||||
|
||||
|
||||
' The different rendering api's...more to be added later?
|
||||
%ILUT_OPENGL = 0
|
||||
%ILUT_ALLEGRO = 1
|
||||
%ILUT_WIN32 = 2
|
||||
|
||||
|
||||
Declare Function ilutRenderer Lib "ilut.dll" Alias "ilutRenderer" (ByVal pb_Renderer As Dword) As Byte
|
||||
|
||||
|
||||
' ImageLib Utility Toolkit's OpenGL Functions
|
||||
' #ifdef ILUT_USE_OPENGL
|
||||
' #ifdef _MSC_VER
|
||||
' %WIN32_LEAN_AND_MEAN
|
||||
' #include <windows.h>
|
||||
' #endif'_MSC_VER
|
||||
' #include <GL/gl.h>
|
||||
' #include <GL/glu.h>
|
||||
' #include <GL/glext.h>
|
||||
' #ifdef _MSC_VER
|
||||
' #pragma comment(lib, "opengl32.lib")
|
||||
' #pragma comment(lib, "glu32.lib")
|
||||
' #endif'_MSC_VER
|
||||
Declare Function ilutGLBindTexImage Lib "ilut.dll" Alias "ilutGLBindTexImage" () As Dword
|
||||
Declare Function ilutGLBindMipCompressed Lib "ilut.dll" Alias "ilutGLBindMipCompressed" () As Dword
|
||||
Declare Function ilutGLBuildMipmaps Lib "ilut.dll" Alias "ilutGLBuildMipmaps" () As Byte
|
||||
Declare Function ilutGLLoadImage Lib "ilut.dll" Alias "ilutGLLoadImage" (ByRef pb_FileName As Asciiz) As Dword
|
||||
Declare Function ilutGLScreen Lib "ilut.dll" Alias "ilutGLScreen" () As Byte
|
||||
Declare Function ilutGLScreenie Lib "ilut.dll" Alias "ilutGLScreenie" () As Byte
|
||||
Declare Function ilutGLSaveImage Lib "ilut.dll" Alias "ilutGLSaveImage" (ByRef pb_FileName As Asciiz, ByVal pb_TexID As Dword) As Byte
|
||||
Declare Function ilutGLSetTex Lib "ilut.dll" Alias "ilutGLSetTex" (ByVal pb_TexID As Dword) As Byte
|
||||
Declare Function ilutGLTexImage Lib "ilut.dll" Alias "ilutGLTexImage" (ByVal pb_Level As Dword) As Byte
|
||||
' #endif'ILUT_USE_OPENGL
|
||||
|
||||
|
||||
' ImageLib Utility ToolKit's Allegro Functions
|
||||
' #ifdef ILUT_USE_ALLEGRO
|
||||
' #include <allegro.h>
|
||||
Declare Function ilutAllegLoadImage Lib "ilut.dll" Alias "ilutAllegLoadImage" (ByRef pb_FileName As Asciiz) As Long
|
||||
'Declare Function ilutConvertToAlleg Lib "ilut.dll" Alias "ilutConvertToAlleg" (ByVal pb_Pal As PALETTE) As Long
|
||||
' #endif'ILUT_USE_ALLEGRO
|
||||
|
||||
|
||||
' ImageLib Utility Toolkit's Win32 (DirectX/GDI) Functions
|
||||
' #ifdef ILUT_USE_WIN32
|
||||
' #ifdef _WIN32
|
||||
' %WIN32_LEAN_AND_MEAN
|
||||
' #include <windows.h>
|
||||
Declare Function ilutConvertToHBitmap Lib "ilut.dll" Alias "ilutConvertToHBitmap" (ByVal pb_hDC As Long) As Long
|
||||
Declare Sub ilutGetBmpInfo Lib "ilut.dll" Alias "ilutGetBmpInfo" (ByRef pb_Info As BITMAPINFO)
|
||||
Declare Function ilutGetHPal Lib "ilut.dll" Alias "ilutGetHPal" () As Long
|
||||
Declare Function ilutGetPaddedData Lib "ilut.dll" Alias "ilutGetPaddedData" () As Long
|
||||
Declare Function ilutGetWinClipboard Lib "ilut.dll" Alias "ilutGetWinClipboard" () As Byte
|
||||
Declare Function ilutLoadResource Lib "ilut.dll" Alias "ilutLoadResource" (ByVal pb_hInst As Long, ByVal pb_ID As Long, ByRef pb_ResourceType As Asciiz, ByVal pb_Type As Dword) As Byte
|
||||
Declare Function ilutSetHBitmap Lib "ilut.dll" Alias "ilutSetHBitmap" (ByVal pb_Bitmap As Long) As Byte
|
||||
Declare Function ilutSetHPal Lib "ilut.dll" Alias "ilutSetHPal" (ByVal pb_Pal As Long) As Byte
|
||||
Declare Function ilutSetWinClipboard Lib "ilut.dll" Alias "ilutSetWinClipboard" () As Byte
|
||||
Declare Function ilutWinLoadImage Lib "ilut.dll" Alias "ilutWinLoadImage" (ByRef pb_FileName As Asciiz, ByVal pb_hDC As Long) As Long
|
||||
Declare Function ilutWinLoadUrl Lib "ilut.dll" Alias "ilutWinLoadUrl" (ByRef pb_Url As Asciiz) As Byte
|
||||
Declare Function ilutWinSaveImage Lib "ilut.dll" Alias "ilutWinSaveImage" (ByRef pb_FileName As Asciiz, ByVal pb_Bitmap As Long) As Byte
|
||||
|
||||
' #ifdef ILUT_USE_DIRECTX7
|
||||
' LPDIRECTDRAWSURFACE7 ILAPIENTRY ilutDX7Surface(char *FileName, LPDIRECTDRAW7 DDraw);
|
||||
' #endif'ILUT_USE_DIRECTX7
|
||||
' #endif'_WIN32
|
||||
' #endif'ILUT_USE_WIN32
|
||||
|
||||
|
||||
' #ifdef __cplusplus
|
||||
' }
|
||||
' #endif
|
||||
|
||||
' #endif /* __ILUT_H__ */
|
||||
' #endif /* __ilut_h_ */
|
||||
@@ -0,0 +1,175 @@
|
||||
'-----------------------------------------------------------------------------
|
||||
' Convert Image using DevIL
|
||||
' DevIL Sample program using Powerbasic.
|
||||
'
|
||||
' by Peter Scheutz, Scheutz & Clementsen Design
|
||||
' Web: http://www.scheutz.dk
|
||||
' e-mail: sourcecode@scheutz.dk
|
||||
'
|
||||
' Last modified: 06/22/2002
|
||||
' Based on DevIL Ver. 1.6.1 PB incs
|
||||
' Filename: imgview.bas
|
||||
'
|
||||
' Released under the GNU Lesser General Public License:
|
||||
' http://www.gnu.org/copyleft/lesser.html
|
||||
'
|
||||
' For information on use and download of DevIL goto: http://openil.sourceforge.net/
|
||||
' (Get docs and "End User Package")
|
||||
'
|
||||
' Report errors in the Powerbasic includes to e-mail above.
|
||||
'
|
||||
' For general help on Powerbasic and DevIL, try the forums at:
|
||||
' http://www.powerbasic.com
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
#Register None
|
||||
#Compile Exe "imgconv.exe"
|
||||
Option Explicit
|
||||
|
||||
|
||||
#Include "il.inc"
|
||||
#Include "ilu.inc"
|
||||
#Include "ilut.inc"
|
||||
|
||||
$If Not %Def(%TRUE)
|
||||
%TRUE = 1
|
||||
%FALSE = 0
|
||||
#EndIf
|
||||
|
||||
|
||||
|
||||
$If Not %Def(%MAX_PATH )
|
||||
%MAX_PATH = 260
|
||||
#EndIf
|
||||
|
||||
%OVERWRITE = %False '%True
|
||||
|
||||
Function PbMain() As Long
|
||||
|
||||
Local ILErr As Dword
|
||||
Local info As ILinfo
|
||||
Local ID As Dword
|
||||
Local errString As Asciiz*1024
|
||||
Local Infile As Asciiz*%MAX_PATH
|
||||
Local Outfile As Asciiz*%MAX_PATH
|
||||
|
||||
Infile="C:\test.bmp" ' OBS: Change this !
|
||||
Outfile="C:\test.tga" ' OBS: Change this !
|
||||
|
||||
ilInit
|
||||
|
||||
ilPushAttrib %IL_ALL_ATTRIB_BITS
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilPushAttrib" & $CRLF & errString
|
||||
Exit Function
|
||||
End If
|
||||
|
||||
ilGenImages ByVal 1, ID
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilGenImages" & $CRLF & errString
|
||||
Exit Function
|
||||
End If
|
||||
|
||||
|
||||
ilBindImage ID
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilBindImage" & $CRLF & errString
|
||||
GoTo done
|
||||
End If
|
||||
|
||||
' ilEnable %IL_FORMAT_SET
|
||||
' ilEnable %IL_ORIGIN_SET
|
||||
' ilEnable %IL_TYPE_SET
|
||||
|
||||
' ilFormatFunc %IL_RGB
|
||||
' ilOriginFunc %IL_ORIGIN_LOWER_LEFT
|
||||
' ilTypeFunc %IL_UNSIGNED_BYTE
|
||||
'
|
||||
' ilEnable %IL_CONV_PAL
|
||||
|
||||
' Do
|
||||
' ILErr = ilGetError()
|
||||
' If ILErr<>0 Then
|
||||
' errString = iluErrorString(ILErr)
|
||||
' MsgBox "Error in ..Func or ilEnable" & $CRLF & errString
|
||||
' End If
|
||||
' Loop While (ILErr <> 0)
|
||||
|
||||
|
||||
|
||||
ilLoadImage infile
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilLoadImage" & $CRLF & errString
|
||||
GoTo done
|
||||
End If
|
||||
|
||||
' unrem to test these effects.
|
||||
|
||||
' iluRotate 50
|
||||
' iluPixelize 5
|
||||
' iluEnlargeImage 2,2,4
|
||||
' iluBlurGaussian 4
|
||||
|
||||
' Do
|
||||
' ILErr = ilGetError()
|
||||
' If ILErr<>0 Then
|
||||
' errString = iluErrorString(ILErr)
|
||||
' MsgBox "Error in Effect" & $CRLF & errString
|
||||
' End If
|
||||
' Loop While (ILErr <> 0)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
If %OVERWRITE=%True And ilIsDisabled(%IL_FILE_OVERWRITE) Then
|
||||
ilEnable %IL_FILE_OVERWRITE
|
||||
ilSaveImage outfile
|
||||
'ilDisable %IL_FILE_OVERWRITE ' done by ilPushAttrib/ilPopAttrib
|
||||
Else
|
||||
ilSaveImage outfile
|
||||
|
||||
End If
|
||||
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilSaveImage" & $CRLF & errString
|
||||
GoTo done
|
||||
Else
|
||||
MsgBox "Picture converted"
|
||||
End If
|
||||
|
||||
done:
|
||||
ilDeleteImages 1 , ID
|
||||
|
||||
ilPopAttrib
|
||||
|
||||
|
||||
' clear additional errors
|
||||
Do
|
||||
ILErr = ilGetError()
|
||||
Loop While (ILErr <> 0)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,216 @@
|
||||
'-----------------------------------------------------------------------------
|
||||
' Get Image info using DevIL
|
||||
' DevIL Sample program using Powerbasic.
|
||||
'
|
||||
' by Peter Scheutz, Scheutz & Clementsen Design
|
||||
' Web: http://www.scheutz.dk
|
||||
' e-mail: sourcecode@scheutz.dk
|
||||
'
|
||||
' Last modified: 06/22/2002
|
||||
' Based on DevIL Ver. 1.6.1 PB incs
|
||||
' Filename: imgview.bas
|
||||
'
|
||||
' Released under the GNU Lesser General Public License:
|
||||
' http://www.gnu.org/copyleft/lesser.html
|
||||
'
|
||||
' For information on use and download of DevIL goto: http://openil.sourceforge.net/
|
||||
' (Get docs and "End User Package")
|
||||
'
|
||||
' Report errors in the Powerbasic includes to e-mail above.
|
||||
'
|
||||
' For general help on Powerbasic and DevIL, try the forums at:
|
||||
' http://www.powerbasic.com
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
#Register None
|
||||
#Compile Exe "imginfo.exe"
|
||||
Option Explicit
|
||||
|
||||
|
||||
#Include "il.inc"
|
||||
#Include "ilu.inc"
|
||||
#Include "ilut.inc"
|
||||
|
||||
|
||||
Function OpenIL_TypeString(ByVal il_const As Dword) As String
|
||||
|
||||
Select Case il_const
|
||||
Case %IL_BYTE : Function = "IL_BYTE"
|
||||
Case %IL_UNSIGNED_BYTE : Function = "IL_UNSIGNED_BYTE"
|
||||
Case %IL_SHORT : Function = "IL_SHORT"
|
||||
Case %IL_UNSIGNED_SHORT : Function = "IL_UNSIGNED_SHORT"
|
||||
Case %IL_INT : Function = "IL_INT"
|
||||
Case %IL_UNSIGNED_INT : Function = "IL_UNSIGNED_INT"
|
||||
Case %IL_FLOAT : Function = "IL_FLOAT"
|
||||
Case %GL_DOUBLE : Function = "GL_DOUBLE"
|
||||
|
||||
Case Else : Function = "Type not defined"
|
||||
|
||||
|
||||
End Select
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
|
||||
Function OpenIL_FormatString(ByVal il_const As Dword) As String
|
||||
|
||||
Select Case il_const
|
||||
Case %IL_COLOUR_INDEX : Function = "IL_COLOUR_INDEX"
|
||||
Case %IL_COLOR_INDEX : Function = "IL_COLOR_INDEX"
|
||||
Case %IL_RGB : Function = "IL_RGB"
|
||||
Case %IL_RGBA : Function = "IL_RGBA"
|
||||
Case %IL_BGR : Function = "IL_BGR"
|
||||
Case %IL_BGRA : Function = "IL_BGRA"
|
||||
Case %IL_LUMINANCE : Function = "IL_LUMINANCE"
|
||||
|
||||
Case Else : Function = "Format not defined"
|
||||
|
||||
|
||||
End Select
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
Function OpenIL_OriginString(ByVal il_const As Dword) As String
|
||||
|
||||
' Origin Definitions
|
||||
Select Case il_const
|
||||
Case %IL_ORIGIN_LOWER_LEFT : Function = "IL_ORIGIN_LOWER_LEFT"
|
||||
Case %IL_ORIGIN_UPPER_LEFT : Function = "IL_ORIGIN_UPPER_LEFT"
|
||||
|
||||
Case Else : Function = "Origin type not defined"
|
||||
End Select
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
Function OpenIL_PalTypeString(ByVal il_const As Dword) As String
|
||||
|
||||
' Palette types
|
||||
Select Case il_const
|
||||
Case %IL_PAL_NONE : Function = "IL_PAL_NONE"
|
||||
Case %IL_PAL_RGB24 : Function = "IL_PAL_RGB24"
|
||||
Case %IL_PAL_RGB32 : Function = "IL_PAL_RGB32"
|
||||
Case %IL_PAL_RGBA32 : Function = "IL_PAL_RGBA32"
|
||||
Case %IL_PAL_BGR24 : Function = "IL_PAL_BGR24"
|
||||
Case %IL_PAL_BGR32 : Function = "IL_PAL_BGR32"
|
||||
Case %IL_PAL_BGRA32 : Function = "IL_PAL_BGRA32"
|
||||
|
||||
Case Else : Function = "Pallete type not defined"
|
||||
End Select
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
Function PbMain() As Long
|
||||
|
||||
Local ILErr As Dword
|
||||
Local info As ILinfo
|
||||
Local ID As Dword
|
||||
Local errString As Asciiz*1024
|
||||
|
||||
|
||||
If Len(Command$)=0 Then
|
||||
MsgBox "Usage: imginfo.exe filename"
|
||||
Exit Function
|
||||
End If
|
||||
|
||||
ilInit
|
||||
|
||||
ilGenImages ByVal 1, ID
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilGenImages" & $CRLF & errString
|
||||
Exit Function
|
||||
End If
|
||||
|
||||
|
||||
ilBindImage ID
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilBindImage" & $CRLF & errString
|
||||
GoTo done
|
||||
End If
|
||||
|
||||
|
||||
|
||||
' ilEnable %IL_FORMAT_SET
|
||||
' ilEnable %IL_ORIGIN_SET
|
||||
' ilEnable %IL_TYPE_SET
|
||||
'
|
||||
' ilFormatFunc %IL_RGB
|
||||
' ilOriginFunc %IL_ORIGIN_LOWER_LEFT
|
||||
' ilTypeFunc %IL_UNSIGNED_BYTE
|
||||
'
|
||||
' ilEnable %IL_CONV_PAL
|
||||
' Do
|
||||
' ILErr = ilGetError()
|
||||
' Loop While (ILErr <> 0)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ilLoadImage Command$
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilLoadImage" & $CRLF & errString
|
||||
GoTo done
|
||||
End If
|
||||
|
||||
|
||||
iluGetImageInfo info
|
||||
ILErr=ilGetError()
|
||||
If ILErr <> 0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in iluGetImageInfo" & $CRLF & errString
|
||||
GoTo done
|
||||
Else
|
||||
|
||||
MsgBox "DevIL Image info: " & $CRLF & $CRLF & _
|
||||
"Id: " & $TAB & $TAB & Format$(info.iId) & $CRLF & _
|
||||
"Data Pointer" & $TAB & Format$(info.iData) & $CRLF & _
|
||||
"Width: " & $TAB & $TAB & Format$(info.iWidth) & $CRLF & _
|
||||
"Height: " & $TAB & $TAB & Format$(info.iHeight) & $CRLF & _
|
||||
"Depth: " & $TAB & $TAB & Format$(info.iDepth) & $CRLF & _
|
||||
"Bpp: " & $TAB & $TAB & Format$(info.iBpp) & $CRLF & _
|
||||
"SizeOfData: " & $TAB & Format$(info.iSizeOfData) & $CRLF & _
|
||||
"Format: " & $TAB & $TAB & OpenIL_FormatString(info.iFormat) & $CRLF & _
|
||||
"Type: " & $TAB & $TAB & OpenIL_TypeString(info.iType) & $CRLF & _
|
||||
"Origin: " & $TAB & $TAB & OpenIL_OriginString(info.iOrigin) & $CRLF & _
|
||||
"PalType: " & $TAB & $TAB & OpenIL_PalTypeString(info.iPalType) & $CRLF & _
|
||||
"PalSize: " & $TAB & $TAB & Format$(info.iPalSize) & $CRLF & _
|
||||
"NumNext: " & $TAB & Format$(info.iNumNext) & $CRLF & _
|
||||
"NumMips: " & $TAB & Format$(info.iNumMips) & $CRLF & _
|
||||
"NumLayers: " & $TAB & Format$(info.iNumLayers)
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
done:
|
||||
ilDeleteImages 1 , ID
|
||||
|
||||
' clear additional errors
|
||||
Do
|
||||
ILErr = ilGetError()
|
||||
Loop While (ILErr <> 0)
|
||||
|
||||
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
'-----------------------------------------------------------------------------
|
||||
' Minimal Image viewer using DevIL
|
||||
' DevIL Sample program using Powerbasic.
|
||||
'
|
||||
' by Peter Scheutz, Scheutz & Clementsen Design
|
||||
' Web: http://www.scheutz.dk
|
||||
' e-mail: sourcecode@scheutz.dk
|
||||
'
|
||||
' Last modified: 06/22/2002
|
||||
' Based on DevIL Ver. 1.6.1 PB incs
|
||||
' Filename: imgview.bas
|
||||
'
|
||||
' Released under the GNU Lesser General Public License:
|
||||
' http://www.gnu.org/copyleft/lesser.html
|
||||
'
|
||||
' For information on use and download of DevIL goto: http://openil.sourceforge.net/
|
||||
' (Get docs and "End User Package")
|
||||
'
|
||||
' Report errors in the Powerbasic includes to e-mail above.
|
||||
'
|
||||
' For general help on Powerbasic and DevIL, try the forums at:
|
||||
' http://www.powerbasic.com
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
#Register None
|
||||
#Compile Exe "imgview.exe"
|
||||
|
||||
Option Explicit
|
||||
|
||||
#Include "win32api.inc"
|
||||
|
||||
#Include "il.inc"
|
||||
#Include "ilu.inc"
|
||||
#Include "ilut.inc"
|
||||
|
||||
|
||||
Global hDCBmp As Long
|
||||
Global pic As BITMAP
|
||||
|
||||
CallBack Function mainCallback()
|
||||
Local ps As PAINTSTRUCT
|
||||
Local hDC As Long
|
||||
Select Case CbMsg
|
||||
Case %WM_PAINT
|
||||
hDC = BeginPaint( CbHndl, ps )
|
||||
If hDCBmp<>0 Then
|
||||
BitBlt hDC, 0, 0, pic.bmWidth, pic.bmHeight , hDCBmp, 0, 0, %SRCCOPY
|
||||
End If
|
||||
Call EndPaint( CbHndl, ps )
|
||||
|
||||
End Select
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
Sub SetWindowClientSize (ByVal hWnd As Long,ByVal PixX As Long,ByVal PixY As Long)
|
||||
' set window by client size in pixels
|
||||
' centers window and clips to screen
|
||||
|
||||
Local cRect As RECT
|
||||
Local diffX As Long
|
||||
Local diffY As Long
|
||||
|
||||
|
||||
GetWindowRect hWnd,cRect
|
||||
diffX=cRect.nRight-cRect.nLeft
|
||||
diffY=cRect.nBottom-cRect.nTop
|
||||
|
||||
GetClientRect hWnd,cRect
|
||||
diffX=diffX-(cRect.nRight-cRect.nLeft)
|
||||
diffY=diffY-(cRect.nBottom-cRect.nTop)
|
||||
|
||||
PixX=PixX+diffX
|
||||
PixY=PixY+diffY
|
||||
|
||||
If PixX> GetSystemMetrics(%SM_CXSCREEN) Then PixX = GetSystemMetrics(%SM_CXSCREEN)
|
||||
If PixY> GetSystemMetrics(%SM_CYSCREEN) Then PixY = GetSystemMetrics(%SM_CYSCREEN)
|
||||
|
||||
SetWindowPos hWnd, 0, (GetSystemMetrics(%SM_CXSCREEN) - PixX) / 2, _
|
||||
(GetSystemMetrics(%SM_CYSCREEN) - PixY) / 2, PixX, PixY, 0
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Function PbMain() As Long
|
||||
|
||||
Local ILErr As Dword
|
||||
Local hBmp As Long
|
||||
|
||||
Local hWnd As Long
|
||||
Local hDC As Long
|
||||
|
||||
Local hBmpOld As Long
|
||||
Local errString As Asciiz*1024
|
||||
|
||||
|
||||
If Len(Command$)=0 Then
|
||||
MsgBox "Usage: imgview.exe filename"
|
||||
Exit Function
|
||||
End If
|
||||
|
||||
ilInit
|
||||
|
||||
ilEnable %IL_FORMAT_SET
|
||||
ilEnable %IL_ORIGIN_SET
|
||||
ilEnable %IL_TYPE_SET
|
||||
|
||||
ilFormatFunc %IL_RGB
|
||||
ilOriginFunc %IL_ORIGIN_LOWER_LEFT
|
||||
ilTypeFunc %IL_UNSIGNED_BYTE
|
||||
|
||||
ilEnable %IL_CONV_PAL
|
||||
|
||||
Do
|
||||
ILErr = ilGetError()
|
||||
If ILErr <>0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in Set or enable:" & $CRLF & errString
|
||||
End If
|
||||
Loop While (ILErr <> 0)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Dialog New 0, "DevIL Mini imageviewer in PB " & Command$, , , 100, 100 , %WS_SYSMENU Or %WS_CAPTION To hWnd
|
||||
hDC = getDC (hWnd)
|
||||
If hDC<>0 Then
|
||||
hBmp = ilutWinLoadImage (Command$,getDC (hWnd) )
|
||||
ILErr=ilGetError()
|
||||
If ILErr<>0 Then
|
||||
errString = iluErrorString(ILErr)
|
||||
MsgBox "Error in ilutWinLoadImage:" & $CRLF & errString
|
||||
Exit Function
|
||||
Else
|
||||
GetObject hBmp, SizeOf( pic ), pic
|
||||
SetWindowClientSize hWnd ,pic.bmWidth, pic.bmHeight
|
||||
|
||||
hDCBmp = CreateCompatibleDC( hDC )
|
||||
hBmpOld = SelectObject( hDCBmp, hBmp )
|
||||
|
||||
Dialog Show Modal hWnd Call mainCallback
|
||||
End If
|
||||
|
||||
|
||||
End If
|
||||
|
||||
If hBmp < > 0 Then
|
||||
SelectObject hDCBmp, hBmpOld
|
||||
DeleteObject hBmp
|
||||
hBmp = 0
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,628 @@
|
||||
from ctypes import *
|
||||
|
||||
_libraries = {}
|
||||
_libraries['/usr/lib/libIL.so'] = CDLL('/usr/lib/libIL.so')
|
||||
STRING = c_char_p
|
||||
|
||||
|
||||
ILboolean = c_ubyte
|
||||
ILuint = c_uint
|
||||
ilActiveImage = _libraries['/usr/lib/libIL.so'].ilActiveImage
|
||||
ilActiveImage.restype = ILboolean
|
||||
ilActiveImage.argtypes = [ILuint]
|
||||
ilActiveLayer = _libraries['/usr/lib/libIL.so'].ilActiveLayer
|
||||
ilActiveLayer.restype = ILboolean
|
||||
ilActiveLayer.argtypes = [ILuint]
|
||||
ilActiveMipmap = _libraries['/usr/lib/libIL.so'].ilActiveMipmap
|
||||
ilActiveMipmap.restype = ILboolean
|
||||
ilActiveMipmap.argtypes = [ILuint]
|
||||
ilApplyPal = _libraries['/usr/lib/libIL.so'].ilApplyPal
|
||||
ilApplyPal.restype = ILboolean
|
||||
ilApplyPal.argtypes = [STRING]
|
||||
ilApplyProfile = _libraries['/usr/lib/libIL.so'].ilApplyProfile
|
||||
ilApplyProfile.restype = ILboolean
|
||||
ilApplyProfile.argtypes = [STRING, STRING]
|
||||
ilBindImage = _libraries['/usr/lib/libIL.so'].ilBindImage
|
||||
ilBindImage.restype = None
|
||||
ilBindImage.argtypes = [ILuint]
|
||||
ILint = c_int
|
||||
ilBlit = _libraries['/usr/lib/libIL.so'].ilBlit
|
||||
ilBlit.restype = ILboolean
|
||||
ilBlit.argtypes = [ILuint, ILint, ILint, ILint, ILuint, ILuint, ILuint, ILuint, ILuint, ILuint]
|
||||
ILclampf = c_float
|
||||
ilClearColour = _libraries['/usr/lib/libIL.so'].ilClearColour
|
||||
ilClearColour.restype = None
|
||||
ilClearColour.argtypes = [ILclampf, ILclampf, ILclampf, ILclampf]
|
||||
ilClearImage = _libraries['/usr/lib/libIL.so'].ilClearImage
|
||||
ilClearImage.restype = ILboolean
|
||||
ilClearImage.argtypes = []
|
||||
ilCloneCurImage = _libraries['/usr/lib/libIL.so'].ilCloneCurImage
|
||||
ilCloneCurImage.restype = ILuint
|
||||
ilCloneCurImage.argtypes = []
|
||||
ILenum = c_uint
|
||||
ilCompressFunc = _libraries['/usr/lib/libIL.so'].ilCompressFunc
|
||||
ilCompressFunc.restype = ILboolean
|
||||
ilCompressFunc.argtypes = [ILenum]
|
||||
ilConvertImage = _libraries['/usr/lib/libIL.so'].ilConvertImage
|
||||
ilConvertImage.restype = ILboolean
|
||||
ilConvertImage.argtypes = [ILenum, ILenum]
|
||||
ilConvertPal = _libraries['/usr/lib/libIL.so'].ilConvertPal
|
||||
ilConvertPal.restype = ILboolean
|
||||
ilConvertPal.argtypes = [ILenum]
|
||||
ilCopyImage = _libraries['/usr/lib/libIL.so'].ilCopyImage
|
||||
ilCopyImage.restype = ILboolean
|
||||
ilCopyImage.argtypes = [ILuint]
|
||||
ilCopyPixels = _libraries['/usr/lib/libIL.so'].ilCopyPixels
|
||||
ilCopyPixels.restype = ILuint
|
||||
ilCopyPixels.argtypes = [ILuint, ILuint, ILuint, ILuint, ILuint, ILuint, ILenum, ILenum, c_void_p]
|
||||
ilCreateSubImage = _libraries['/usr/lib/libIL.so'].ilCreateSubImage
|
||||
ilCreateSubImage.restype = ILuint
|
||||
ilCreateSubImage.argtypes = [ILenum, ILuint]
|
||||
ilDefaultImage = _libraries['/usr/lib/libIL.so'].ilDefaultImage
|
||||
ilDefaultImage.restype = ILboolean
|
||||
ilDefaultImage.argtypes = []
|
||||
ilDeleteImage = _libraries['/usr/lib/libIL.so'].ilDeleteImage
|
||||
ilDeleteImage.restype = None
|
||||
ilDeleteImage.argtypes = [ILuint]
|
||||
size_t = c_ulong
|
||||
ILsizei = size_t
|
||||
ilDeleteImages = _libraries['/usr/lib/libIL.so'].ilDeleteImages
|
||||
ilDeleteImages.restype = None
|
||||
ilDeleteImages.argtypes = [ILsizei, POINTER(ILuint)]
|
||||
ilDisable = _libraries['/usr/lib/libIL.so'].ilDisable
|
||||
ilDisable.restype = ILboolean
|
||||
ilDisable.argtypes = [ILenum]
|
||||
ilEnable = _libraries['/usr/lib/libIL.so'].ilEnable
|
||||
ilEnable.restype = ILboolean
|
||||
ilEnable.argtypes = [ILenum]
|
||||
ilFormatFunc = _libraries['/usr/lib/libIL.so'].ilFormatFunc
|
||||
ilFormatFunc.restype = ILboolean
|
||||
ilFormatFunc.argtypes = [ILenum]
|
||||
ilGenImages = _libraries['/usr/lib/libIL.so'].ilGenImages
|
||||
ilGenImages.restype = None
|
||||
ilGenImages.argtypes = [ILsizei, POINTER(ILuint)]
|
||||
ilGenImage = _libraries['/usr/lib/libIL.so'].ilGenImage
|
||||
ilGenImage.restype = ILuint
|
||||
ilGenImage.argtypes = []
|
||||
ILubyte = c_ubyte
|
||||
ilGetAlpha = _libraries['/usr/lib/libIL.so'].ilGetAlpha
|
||||
ilGetAlpha.restype = POINTER(ILubyte)
|
||||
ilGetAlpha.argtypes = [ILenum]
|
||||
ilGetBoolean = _libraries['/usr/lib/libIL.so'].ilGetBoolean
|
||||
ilGetBoolean.restype = ILboolean
|
||||
ilGetBoolean.argtypes = [ILenum]
|
||||
ilGetBooleanv = _libraries['/usr/lib/libIL.so'].ilGetBooleanv
|
||||
ilGetBooleanv.restype = None
|
||||
ilGetBooleanv.argtypes = [ILenum, POINTER(ILboolean)]
|
||||
ilGetData = _libraries['/usr/lib/libIL.so'].ilGetData
|
||||
ilGetData.restype = POINTER(ILubyte)
|
||||
ilGetData.argtypes = []
|
||||
ilGetDXTCData = _libraries['/usr/lib/libIL.so'].ilGetDXTCData
|
||||
ilGetDXTCData.restype = ILuint
|
||||
ilGetDXTCData.argtypes = [c_void_p, ILuint, ILenum]
|
||||
ilGetError = _libraries['/usr/lib/libIL.so'].ilGetError
|
||||
ilGetError.restype = ILenum
|
||||
ilGetError.argtypes = []
|
||||
ilGetInteger = _libraries['/usr/lib/libIL.so'].ilGetInteger
|
||||
ilGetInteger.restype = ILint
|
||||
ilGetInteger.argtypes = [ILenum]
|
||||
ilGetIntegerv = _libraries['/usr/lib/libIL.so'].ilGetIntegerv
|
||||
ilGetIntegerv.restype = None
|
||||
ilGetIntegerv.argtypes = [ILenum, POINTER(ILint)]
|
||||
ilGetLumpPos = _libraries['/usr/lib/libIL.so'].ilGetLumpPos
|
||||
ilGetLumpPos.restype = ILuint
|
||||
ilGetLumpPos.argtypes = []
|
||||
ilGetPalette = _libraries['/usr/lib/libIL.so'].ilGetPalette
|
||||
ilGetPalette.restype = POINTER(ILubyte)
|
||||
ilGetPalette.argtypes = []
|
||||
ilGetString = _libraries['/usr/lib/libIL.so'].ilGetString
|
||||
ilGetString.restype = STRING
|
||||
ilGetString.argtypes = [ILenum]
|
||||
ilHint = _libraries['/usr/lib/libIL.so'].ilHint
|
||||
ilHint.restype = None
|
||||
ilHint.argtypes = [ILenum, ILenum]
|
||||
ilInit = _libraries['/usr/lib/libIL.so'].ilInit
|
||||
ilInit.restype = None
|
||||
ilInit.argtypes = []
|
||||
ilIsDisabled = _libraries['/usr/lib/libIL.so'].ilIsDisabled
|
||||
ilIsDisabled.restype = ILboolean
|
||||
ilIsDisabled.argtypes = [ILenum]
|
||||
ilIsEnabled = _libraries['/usr/lib/libIL.so'].ilIsEnabled
|
||||
ilIsEnabled.restype = ILboolean
|
||||
ilIsEnabled.argtypes = [ILenum]
|
||||
ILHANDLE = c_void_p
|
||||
ilDetermineTypeF = _libraries['/usr/lib/libIL.so'].ilDetermineTypeF
|
||||
ilDetermineTypeF.restype = ILenum
|
||||
ilDetermineTypeF.argtypes = [ILHANDLE]
|
||||
ilIsImage = _libraries['/usr/lib/libIL.so'].ilIsImage
|
||||
ilIsImage.restype = ILboolean
|
||||
ilIsImage.argtypes = [ILuint]
|
||||
ilIsValid = _libraries['/usr/lib/libIL.so'].ilIsValid
|
||||
ilIsValid.restype = ILboolean
|
||||
ilIsValid.argtypes = [ILenum, STRING]
|
||||
ilIsValidF = _libraries['/usr/lib/libIL.so'].ilIsValidF
|
||||
ilIsValidF.restype = ILboolean
|
||||
ilIsValidF.argtypes = [ILenum, ILHANDLE]
|
||||
ilIsValidL = _libraries['/usr/lib/libIL.so'].ilIsValidL
|
||||
ilIsValidL.restype = ILboolean
|
||||
ilIsValidL.argtypes = [ILenum, c_void_p, ILuint]
|
||||
ilKeyColour = _libraries['/usr/lib/libIL.so'].ilKeyColour
|
||||
ilKeyColour.restype = None
|
||||
ilKeyColour.argtypes = [ILclampf, ILclampf, ILclampf, ILclampf]
|
||||
ilLoad = _libraries['/usr/lib/libIL.so'].ilLoad
|
||||
ilLoad.restype = ILboolean
|
||||
ilLoad.argtypes = [ILenum, STRING]
|
||||
ilLoadF = _libraries['/usr/lib/libIL.so'].ilLoadF
|
||||
ilLoadF.restype = ILboolean
|
||||
ilLoadF.argtypes = [ILenum, ILHANDLE]
|
||||
ilLoadImage = _libraries['/usr/lib/libIL.so'].ilLoadImage
|
||||
ilLoadImage.restype = ILboolean
|
||||
ilLoadImage.argtypes = [STRING]
|
||||
ilLoadL = _libraries['/usr/lib/libIL.so'].ilLoadL
|
||||
ilLoadL.restype = ILboolean
|
||||
ilLoadL.argtypes = [ILenum, c_void_p, ILuint]
|
||||
ilLoadPal = _libraries['/usr/lib/libIL.so'].ilLoadPal
|
||||
ilLoadPal.restype = ILboolean
|
||||
ilLoadPal.argtypes = [STRING]
|
||||
ILdouble = c_double
|
||||
ilModAlpha = _libraries['/usr/lib/libIL.so'].ilModAlpha
|
||||
ilModAlpha.restype = None
|
||||
ilModAlpha.argtypes = [ILdouble]
|
||||
ilOriginFunc = _libraries['/usr/lib/libIL.so'].ilOriginFunc
|
||||
ilOriginFunc.restype = ILboolean
|
||||
ilOriginFunc.argtypes = [ILenum]
|
||||
ilOverlayImage = _libraries['/usr/lib/libIL.so'].ilOverlayImage
|
||||
ilOverlayImage.restype = ILboolean
|
||||
ilOverlayImage.argtypes = [ILuint, ILint, ILint, ILint]
|
||||
ilPopAttrib = _libraries['/usr/lib/libIL.so'].ilPopAttrib
|
||||
ilPopAttrib.restype = None
|
||||
ilPopAttrib.argtypes = []
|
||||
ilPushAttrib = _libraries['/usr/lib/libIL.so'].ilPushAttrib
|
||||
ilPushAttrib.restype = None
|
||||
ilPushAttrib.argtypes = [ILuint]
|
||||
ilRegisterFormat = _libraries['/usr/lib/libIL.so'].ilRegisterFormat
|
||||
ilRegisterFormat.restype = None
|
||||
ilRegisterFormat.argtypes = [ILenum]
|
||||
IL_LOADPROC = CFUNCTYPE(ILenum, STRING)
|
||||
ilRegisterLoad = _libraries['/usr/lib/libIL.so'].ilRegisterLoad
|
||||
ilRegisterLoad.restype = ILboolean
|
||||
ilRegisterLoad.argtypes = [STRING, IL_LOADPROC]
|
||||
ilRegisterMipNum = _libraries['/usr/lib/libIL.so'].ilRegisterMipNum
|
||||
ilRegisterMipNum.restype = ILboolean
|
||||
ilRegisterMipNum.argtypes = [ILuint]
|
||||
ilRegisterNumImages = _libraries['/usr/lib/libIL.so'].ilRegisterNumImages
|
||||
ilRegisterNumImages.restype = ILboolean
|
||||
ilRegisterNumImages.argtypes = [ILuint]
|
||||
ilRegisterOrigin = _libraries['/usr/lib/libIL.so'].ilRegisterOrigin
|
||||
ilRegisterOrigin.restype = None
|
||||
ilRegisterOrigin.argtypes = [ILenum]
|
||||
ilRegisterPal = _libraries['/usr/lib/libIL.so'].ilRegisterPal
|
||||
ilRegisterPal.restype = None
|
||||
ilRegisterPal.argtypes = [c_void_p, ILuint, ILenum]
|
||||
IL_SAVEPROC = CFUNCTYPE(ILenum, STRING)
|
||||
ilRegisterSave = _libraries['/usr/lib/libIL.so'].ilRegisterSave
|
||||
ilRegisterSave.restype = ILboolean
|
||||
ilRegisterSave.argtypes = [STRING, IL_SAVEPROC]
|
||||
ilRegisterType = _libraries['/usr/lib/libIL.so'].ilRegisterType
|
||||
ilRegisterType.restype = None
|
||||
ilRegisterType.argtypes = [ILenum]
|
||||
ilRemoveLoad = _libraries['/usr/lib/libIL.so'].ilRemoveLoad
|
||||
ilRemoveLoad.restype = ILboolean
|
||||
ilRemoveLoad.argtypes = [STRING]
|
||||
ilRemoveSave = _libraries['/usr/lib/libIL.so'].ilRemoveSave
|
||||
ilRemoveSave.restype = ILboolean
|
||||
ilRemoveSave.argtypes = [STRING]
|
||||
ilResetMemory = _libraries['/usr/lib/libIL.so'].ilResetMemory
|
||||
ilResetMemory.restype = None
|
||||
ilResetMemory.argtypes = []
|
||||
ilResetRead = _libraries['/usr/lib/libIL.so'].ilResetRead
|
||||
ilResetRead.restype = None
|
||||
ilResetRead.argtypes = []
|
||||
ilResetWrite = _libraries['/usr/lib/libIL.so'].ilResetWrite
|
||||
ilResetWrite.restype = None
|
||||
ilResetWrite.argtypes = []
|
||||
ilSave = _libraries['/usr/lib/libIL.so'].ilSave
|
||||
ilSave.restype = ILboolean
|
||||
ilSave.argtypes = [ILenum, STRING]
|
||||
ilSaveF = _libraries['/usr/lib/libIL.so'].ilSaveF
|
||||
ilSaveF.restype = ILuint
|
||||
ilSaveF.argtypes = [ILenum, ILHANDLE]
|
||||
ilSaveImage = _libraries['/usr/lib/libIL.so'].ilSaveImage
|
||||
ilSaveImage.restype = ILboolean
|
||||
ilSaveImage.argtypes = [STRING]
|
||||
ilSaveL = _libraries['/usr/lib/libIL.so'].ilSaveL
|
||||
ilSaveL.restype = ILuint
|
||||
ilSaveL.argtypes = [ILenum, c_void_p, ILuint]
|
||||
ilSavePal = _libraries['/usr/lib/libIL.so'].ilSavePal
|
||||
ilSavePal.restype = ILboolean
|
||||
ilSavePal.argtypes = [STRING]
|
||||
ilSetAlpha = _libraries['/usr/lib/libIL.so'].ilSetAlpha
|
||||
ilSetAlpha.restype = ILboolean
|
||||
ilSetAlpha.argtypes = [ILdouble]
|
||||
ilSetData = _libraries['/usr/lib/libIL.so'].ilSetData
|
||||
ilSetData.restype = ILboolean
|
||||
ilSetData.argtypes = [c_void_p]
|
||||
ilSetDuration = _libraries['/usr/lib/libIL.so'].ilSetDuration
|
||||
ilSetDuration.restype = ILboolean
|
||||
ilSetDuration.argtypes = [ILuint]
|
||||
ilSetInteger = _libraries['/usr/lib/libIL.so'].ilSetInteger
|
||||
ilSetInteger.restype = None
|
||||
ilSetInteger.argtypes = [ILenum, ILint]
|
||||
mAlloc = CFUNCTYPE(c_void_p, ILsizei)
|
||||
mFree = CFUNCTYPE(None, c_void_p)
|
||||
ilSetMemory = _libraries['/usr/lib/libIL.so'].ilSetMemory
|
||||
ilSetMemory.restype = None
|
||||
ilSetMemory.argtypes = [mAlloc, mFree]
|
||||
ilSetPixels = _libraries['/usr/lib/libIL.so'].ilSetPixels
|
||||
ilSetPixels.restype = None
|
||||
ilSetPixels.argtypes = [ILint, ILint, ILint, ILuint, ILuint, ILuint, ILenum, ILenum, c_void_p]
|
||||
fOpenRProc = CFUNCTYPE(ILHANDLE, STRING)
|
||||
fCloseRProc = CFUNCTYPE(None, ILHANDLE)
|
||||
fEofProc = CFUNCTYPE(ILboolean, ILHANDLE)
|
||||
fGetcProc = CFUNCTYPE(ILint, ILHANDLE)
|
||||
fReadProc = CFUNCTYPE(ILint, c_void_p, ILuint, ILuint, ILHANDLE)
|
||||
fSeekRProc = CFUNCTYPE(ILint, ILHANDLE, ILint, ILint)
|
||||
fTellRProc = CFUNCTYPE(ILint, ILHANDLE)
|
||||
ilSetRead = _libraries['/usr/lib/libIL.so'].ilSetRead
|
||||
ilSetRead.restype = None
|
||||
ilSetRead.argtypes = [fOpenRProc, fCloseRProc, fEofProc, fGetcProc, fReadProc, fSeekRProc, fTellRProc]
|
||||
ilSetString = _libraries['/usr/lib/libIL.so'].ilSetString
|
||||
ilSetString.restype = None
|
||||
ilSetString.argtypes = [ILenum, STRING]
|
||||
fOpenWProc = CFUNCTYPE(ILHANDLE, STRING)
|
||||
fCloseWProc = CFUNCTYPE(None, ILHANDLE)
|
||||
fPutcProc = CFUNCTYPE(ILint, ILubyte, ILHANDLE)
|
||||
fSeekWProc = CFUNCTYPE(ILint, ILHANDLE, ILint, ILint)
|
||||
fTellWProc = CFUNCTYPE(ILint, ILHANDLE)
|
||||
fWriteProc = CFUNCTYPE(ILint, c_void_p, ILuint, ILuint, ILHANDLE)
|
||||
ilSetWrite = _libraries['/usr/lib/libIL.so'].ilSetWrite
|
||||
ilSetWrite.restype = None
|
||||
ilSetWrite.argtypes = [fOpenWProc, fCloseWProc, fPutcProc, fSeekWProc, fTellWProc, fWriteProc]
|
||||
ilShutDown = _libraries['/usr/lib/libIL.so'].ilShutDown
|
||||
ilShutDown.restype = None
|
||||
ilShutDown.argtypes = []
|
||||
ilTexImage = _libraries['/usr/lib/libIL.so'].ilTexImage
|
||||
ilTexImage.restype = ILboolean
|
||||
ilTexImage.argtypes = [ILuint, ILuint, ILuint, ILubyte, ILenum, ILenum, c_void_p]
|
||||
ilTypeFromExt = _libraries['/usr/lib/libIL.so'].ilTypeFromExt
|
||||
ilTypeFromExt.restype = ILenum
|
||||
ilTypeFromExt.argtypes = [STRING]
|
||||
ilTypeFunc = _libraries['/usr/lib/libIL.so'].ilTypeFunc
|
||||
ilTypeFunc.restype = ILboolean
|
||||
ilTypeFunc.argtypes = [ILenum]
|
||||
ilLoadData = _libraries['/usr/lib/libIL.so'].ilLoadData
|
||||
ilLoadData.restype = ILboolean
|
||||
ilLoadData.argtypes = [STRING, ILuint, ILuint, ILuint, ILubyte]
|
||||
ilLoadDataF = _libraries['/usr/lib/libIL.so'].ilLoadDataF
|
||||
ilLoadDataF.restype = ILboolean
|
||||
ilLoadDataF.argtypes = [ILHANDLE, ILuint, ILuint, ILuint, ILubyte]
|
||||
ilLoadDataL = _libraries['/usr/lib/libIL.so'].ilLoadDataL
|
||||
ilLoadDataL.restype = ILboolean
|
||||
ilLoadDataL.argtypes = [c_void_p, ILuint, ILuint, ILuint, ILuint, ILubyte]
|
||||
ilSaveData = _libraries['/usr/lib/libIL.so'].ilSaveData
|
||||
ilSaveData.restype = ILboolean
|
||||
ilSaveData.argtypes = [STRING]
|
||||
IL_LIB_JPEG_ERROR = 1506 # Variable c_int
|
||||
IL_FLOAT = 5126 # Variable c_int
|
||||
IL_RXGB = 1807 # Variable c_int
|
||||
IL_DOOM = 1058 # Variable c_int
|
||||
IL_PAL_BIT = 4 # Variable c_int
|
||||
IL_TYPE_SET = 1554 # Variable c_int
|
||||
IL_NUM_MIPMAPS = 3570 # Variable c_int
|
||||
IL_IMAGE_CUBEFLAGS = 3581 # Variable c_int
|
||||
IL_STACK_UNDERFLOW = 1295 # Variable c_int
|
||||
IL_SHORT = 5122 # Variable c_int
|
||||
IL_KEEP_DXTC_DATA = 1804 # Variable c_int
|
||||
IL_IMAGE_WIDTH = 3556 # Variable c_int
|
||||
IL_DEFAULT_ON_FAIL = 1586 # Variable c_int
|
||||
IL_ATI1N = 1808 # Variable c_int
|
||||
IL_COMPRESS_LZO = 1795 # Variable c_int
|
||||
IL_SEEK_END = 2 # Variable c_int
|
||||
IL_MNG = 1077 # Variable c_int
|
||||
IL_PSD = 1081 # Variable c_int
|
||||
IL_DOUBLE = 5130 # Variable c_int
|
||||
IL_JP2 = 1089 # Variable c_int
|
||||
IL_PALETTE_BASE_TYPE = 3568 # Variable c_int
|
||||
IL_CUBEMAP_POSITIVEZ = 16384 # Variable c_int
|
||||
IL_CUBEMAP_POSITIVEY = 4096 # Variable c_int
|
||||
IL_CUBEMAP_POSITIVEX = 1024 # Variable c_int
|
||||
IL_PALETTE_NUM_COLS = 3567 # Variable c_int
|
||||
IL_IMAGE_DURATION = 3576 # Variable c_int
|
||||
IL_JPG_PROGRESSIVE = 1829 # Variable c_int
|
||||
IL_OUT_FORMAT_SAME = 1293 # Variable c_int
|
||||
IL_PCX = 1064 # Variable c_int
|
||||
IL_HDR = 1087 # Variable c_int
|
||||
IL_SUB_MIPMAP = 1665 # Variable c_int
|
||||
IL_USE_COMPRESSION = 1638 # Variable c_int
|
||||
IL_IMAGE_CHANNELS = 3583 # Variable c_int
|
||||
IL_CUBEMAP_NEGATIVEZ = 32768 # Variable c_int
|
||||
IL_CUBEMAP_NEGATIVEY = 8192 # Variable c_int
|
||||
IL_CUBEMAP_NEGATIVEX = 2048 # Variable c_int
|
||||
IL_IMAGE_BITS_PER_PIXEL = 3561 # Variable c_int
|
||||
IL_TGA = 1069 # Variable c_int
|
||||
IL_MEM_SPEED_HINT = 1637 # Variable c_int
|
||||
IL_WU_QUANT = 1601 # Variable c_int
|
||||
IL_INT = 5124 # Variable c_int
|
||||
IL_LIB_JP2_ERROR = 1510 # Variable c_int
|
||||
IL_MAX_QUANT_INDEXS = 1604 # Variable c_int
|
||||
IL_3DC = 1806 # Variable c_int
|
||||
IL_TYPE_UNKNOWN = 0 # Variable c_int
|
||||
IL_TYPE_BIT = 16 # Variable c_int
|
||||
IL_LOADFAIL_BIT = 64 # Variable c_int
|
||||
IL_FILE_OVERWRITE = 1568 # Variable c_int
|
||||
IL_FORMAT_SPECIFIC_BIT = 128 # Variable c_int
|
||||
IL_CHEAD = 1071 # Variable c_int
|
||||
IL_INVALID_FILE_HEADER = 1288 # Variable c_int
|
||||
IL_RAW = 1072 # Variable c_int
|
||||
IL_FILE_READ_ERROR = 1298 # Variable c_int
|
||||
IL_ILLEGAL_OPERATION = 1286 # Variable c_int
|
||||
IL_INTERLACE_MODE = 1594 # Variable c_int
|
||||
IL_XPM = 1086 # Variable c_int
|
||||
IL_LIB_TIFF_ERROR = 1508 # Variable c_int
|
||||
IL_WDP = 1091 # Variable c_int
|
||||
IL_LOAD_EXT = 7937 # Variable c_int
|
||||
IL_PAL_RGB24 = 1025 # Variable c_int
|
||||
IL_BMP_RLE = 1812 # Variable c_int
|
||||
IL_COMPRESS_RLE = 1794 # Variable c_int
|
||||
IL_ACTIVE_IMAGE = 3572 # Variable c_int
|
||||
IL_IMAGE_DEPTH = 3558 # Variable c_int
|
||||
IL_IMAGE_BYTES_PER_PIXEL = 3560 # Variable c_int
|
||||
IL_ORIGIN_LOWER_LEFT = 1537 # Variable c_int
|
||||
IL_USE_KEY_COLOR = 1589 # Variable c_int
|
||||
IL_ACTIVE_LAYER = 3574 # Variable c_int
|
||||
IL_GIF = 1078 # Variable c_int
|
||||
IL_NEU_QUANT = 1602 # Variable c_int
|
||||
IL_CONV_PAL = 1584 # Variable c_int
|
||||
IL_DXT5 = 1802 # Variable c_int
|
||||
IL_PNG_AUTHNAME_STRING = 1818 # Variable c_int
|
||||
IL_DXT1 = 1798 # Variable c_int
|
||||
IL_PAL_BGR32 = 1029 # Variable c_int
|
||||
IL_DXT3 = 1800 # Variable c_int
|
||||
IL_NUM_LAYERS = 3571 # Variable c_int
|
||||
IL_BYTE = 5120 # Variable c_int
|
||||
IL_PIX = 1084 # Variable c_int
|
||||
IL_PIC = 1065 # Variable c_int
|
||||
IL_JFIF = 1061 # Variable c_int
|
||||
IL_PAL_BGRA32 = 1030 # Variable c_int
|
||||
IL_ILLEGAL_FILE_VALUE = 1287 # Variable c_int
|
||||
IL_UNSIGNED_BYTE = 5121 # Variable c_int
|
||||
IL_FORMAT_MODE = 1553 # Variable c_int
|
||||
IL_PALETTE_SIZE = 3565 # Variable c_int
|
||||
IL_EXIF = 1082 # Variable c_int
|
||||
IL_COMPRESSION_HINT = 1640 # Variable c_int
|
||||
IL_INVALID_VALUE = 1285 # Variable c_int
|
||||
IL_DCX = 1080 # Variable c_int
|
||||
IL_DOOM_FLAT = 1059 # Variable c_int
|
||||
IL_BAD_DIMENSIONS = 1297 # Variable c_int
|
||||
IL_USE_KEY_COLOUR = 1589 # Variable c_int
|
||||
IL_SGI_RLE = 1813 # Variable c_int
|
||||
IL_UNKNOWN_ERROR = 1535 # Variable c_int
|
||||
IL_VENDOR = 7936 # Variable c_int
|
||||
IL_DONT_CARE = 1634 # Variable c_int
|
||||
IL_COMPRESS_NONE = 1793 # Variable c_int
|
||||
IL_COMPRESS_ZLIB = 1796 # Variable c_int
|
||||
IL_BLIT_BLEND = 1590 # Variable c_int
|
||||
IL_QUANTIZATION_MODE = 1600 # Variable c_int
|
||||
IL_CUR_IMAGE = 3575 # Variable c_int
|
||||
IL_INVALID_ENUM = 1281 # Variable c_int
|
||||
IL_FORMAT_BIT = 8 # Variable c_int
|
||||
IL_TIF_HOSTCOMPUTER_STRING = 1822 # Variable c_int
|
||||
IL_BMP = 1056 # Variable c_int
|
||||
IL_TIF_DESCRIPTION_STRING = 1821 # Variable c_int
|
||||
IL_TIF_DOCUMENTNAME_STRING = 1823 # Variable c_int
|
||||
IL_SUB_NEXT = 1664 # Variable c_int
|
||||
IL_IMAGE_TYPE = 3563 # Variable c_int
|
||||
IL_INVALID_PARAM = 1289 # Variable c_int
|
||||
IL_ICNS = 1088 # Variable c_int
|
||||
IL_ALPHA = 6411 # Variable c_int
|
||||
IL_TGA_CREATE_STAMP = 1808 # Variable c_int
|
||||
IL_PAL_BGR24 = 1028 # Variable c_int
|
||||
IL_DXTC_DATA_FORMAT = 1805 # Variable c_int
|
||||
IL_PSP = 1083 # Variable c_int
|
||||
IL_TGA_ID_STRING = 1815 # Variable c_int
|
||||
IL_IMAGE_SIZE_OF_DATA = 3559 # Variable c_int
|
||||
IL_RGBA = 6408 # Variable c_int
|
||||
IL_FORMAT_NOT_SUPPORTED = 1283 # Variable c_int
|
||||
IL_FILE_MODE = 1569 # Variable c_int
|
||||
IL_LBM = 1062 # Variable c_int
|
||||
IL_ORIGIN_MODE = 1539 # Variable c_int
|
||||
IL_TIF = 1070 # Variable c_int
|
||||
IL_VERSION_NUM = 3554 # Variable c_int
|
||||
IL_PALETTE_BPP = 3566 # Variable c_int
|
||||
IL_LUMINANCE_ALPHA = 6410 # Variable c_int
|
||||
IL_VERSION_1_7_5 = 1 # Variable c_int
|
||||
IL_PAL_NONE = 1024 # Variable c_int
|
||||
IL_PCD = 1063 # Variable c_int
|
||||
IL_PAL_RGBA32 = 1027 # Variable c_int
|
||||
IL_PXR = 1085 # Variable c_int
|
||||
IL_NUM_IMAGES = 3569 # Variable c_int
|
||||
IL_JPG_QUALITY = 1809 # Variable c_int
|
||||
IL_FALSE = 0 # Variable c_int
|
||||
IL_SEEK_CUR = 1 # Variable c_int
|
||||
IL_SEEK_SET = 0 # Variable c_int
|
||||
IL_JPG = 1061 # Variable c_int
|
||||
IL_ORIGIN_SET = 1536 # Variable c_int
|
||||
IL_DDS = 1079 # Variable c_int
|
||||
IL_RGB = 6407 # Variable c_int
|
||||
IL_TGA_RLE = 1811 # Variable c_int
|
||||
IL_IMAGE_ORIGIN = 3582 # Variable c_int
|
||||
IL_IMAGE_BPC = 3578 # Variable c_int
|
||||
IL_COMPRESS_MODE = 1792 # Variable c_int
|
||||
IL_COMPRESS_BIT = 32 # Variable c_int
|
||||
IL_NEU_QUANT_SAMPLE = 1603 # Variable c_int
|
||||
IL_JASC_PAL = 1141 # Variable c_int
|
||||
IL_IMAGE_BPP = 3560 # Variable c_int
|
||||
IL_HALF = 5131 # Variable c_int
|
||||
IL_DXT2 = 1799 # Variable c_int
|
||||
IL_NO_COMPRESSION = 1639 # Variable c_int
|
||||
IL_COULD_NOT_OPEN_FILE = 1290 # Variable c_int
|
||||
IL_PNM = 1067 # Variable c_int
|
||||
IL_PNG = 1066 # Variable c_int
|
||||
IL_TGA_AUTHCOMMENT_STRING = 1817 # Variable c_int
|
||||
IL_JNG = 1077 # Variable c_int
|
||||
IL_LUMINANCE = 6409 # Variable c_int
|
||||
IL_ICO = 1060 # Variable c_int
|
||||
IL_IMAGE_OFFX = 3579 # Variable c_int
|
||||
IL_IMAGE_OFFY = 3580 # Variable c_int
|
||||
IL_IMAGE_PLANESIZE = 3577 # Variable c_int
|
||||
IL_ORIGIN_UPPER_LEFT = 1538 # Variable c_int
|
||||
IL_TGA_AUTHNAME_STRING = 1816 # Variable c_int
|
||||
IL_PCD_PICNUM = 1827 # Variable c_int
|
||||
IL_TYPE_MODE = 1555 # Variable c_int
|
||||
IL_SUB_LAYER = 1666 # Variable c_int
|
||||
IL_CUT = 1057 # Variable c_int
|
||||
IL_CHEAD_HEADER_STRING = 1826 # Variable c_int
|
||||
IL_PNG_TITLE_STRING = 1819 # Variable c_int
|
||||
IL_DXT_NO_COMP = 1803 # Variable c_int
|
||||
IL_LIF = 1076 # Variable c_int
|
||||
IL_DXTC_FORMAT = 1797 # Variable c_int
|
||||
IL_TRUE = 1 # Variable c_int
|
||||
IL_TIF_AUTHNAME_STRING = 1824 # Variable c_int
|
||||
IL_WAL = 1074 # Variable c_int
|
||||
IL_ACTIVE_MIPMAP = 3573 # Variable c_int
|
||||
IL_PNG_DESCRIPTION_STRING = 1820 # Variable c_int
|
||||
IL_INTERNAL_ERROR = 1284 # Variable c_int
|
||||
IL_OUT_OF_MEMORY = 1282 # Variable c_int
|
||||
IL_MDL = 1073 # Variable c_int
|
||||
IL_IMAGE_HEIGHT = 3557 # Variable c_int
|
||||
IL_PALETTE_TYPE = 3564 # Variable c_int
|
||||
IL_BGR = 32992 # Variable c_int
|
||||
IL_PNG_INTERLACE = 1810 # Variable c_int
|
||||
IL_UNSIGNED_INT = 5125 # Variable c_int
|
||||
IL_LIB_GIF_ERROR = 1505 # Variable c_int
|
||||
IL_FILE_WRITE_ERROR = 1298 # Variable c_int
|
||||
IL_ORIGIN_BIT = 1 # Variable c_int
|
||||
IL_VTF = 1092 # Variable c_int
|
||||
IL_INVALID_CONVERSION = 1296 # Variable c_int
|
||||
IL_LESS_MEM = 1633 # Variable c_int
|
||||
IL_LIB_PNG_ERROR = 1507 # Variable c_int
|
||||
IL_SGI = 1068 # Variable c_int
|
||||
IL_UNSIGNED_SHORT = 5123 # Variable c_int
|
||||
IL_COLOUR_INDEX = 6400 # Variable c_int
|
||||
IL_STACK_OVERFLOW = 1294 # Variable c_int
|
||||
IL_FILE_ALREADY_EXISTS = 1292 # Variable c_int
|
||||
IL_COLOR_INDEX = 6400 # Variable c_int
|
||||
IL_BGRA = 32993 # Variable c_int
|
||||
IL_PNG_ALPHA_INDEX = 1828 # Variable c_int
|
||||
IL_EOF = -1 # Variable c_int
|
||||
IL_JPG_SAVE_FORMAT = 1825 # Variable c_int
|
||||
IL_LIB_MNG_ERROR = 1509 # Variable c_int
|
||||
IL_INVALID_EXTENSION = 1291 # Variable c_int
|
||||
IL_VERSION = 175 # Variable c_int
|
||||
IL_IMAGE_FORMAT = 3562 # Variable c_int
|
||||
IL_SAVE_EXT = 7938 # Variable c_int
|
||||
IL_FILE_BIT = 2 # Variable c_int
|
||||
IL_FORMAT_SET = 1552 # Variable c_int
|
||||
IL_FASTEST = 1632 # Variable c_int
|
||||
IL_EXR = 1090 # Variable c_int
|
||||
IL_PAL_RGB32 = 1026 # Variable c_int
|
||||
IL_DXT4 = 1801 # Variable c_int
|
||||
IL_ALL_ATTRIB_BITS = 1048575 # Variable c_int
|
||||
IL_SAVE_INTERLACED = 1593 # Variable c_int
|
||||
IL_NO_ERROR = 0 # Variable c_int
|
||||
__all__ = ['ilActiveImage', 'ILclampf', 'IL_PAL_RGB24',
|
||||
'IL_LIB_JPEG_ERROR', 'ilLoadImage', 'IL_VERSION_1_7_5',
|
||||
'IL_TIF_AUTHNAME_STRING', 'ilBindImage',
|
||||
'IL_TGA_CREATE_STAMP', 'IL_UNSIGNED_SHORT', 'ilConvertPal',
|
||||
'IL_PAL_BGR24', 'IL_FLOAT', 'ilLoad', 'IL_ACTIVE_MIPMAP',
|
||||
'size_t', 'ILHANDLE', 'IL_DOUBLE', 'IL_PALETTE_BASE_TYPE',
|
||||
'IL_NUM_IMAGES', 'IL_INTERNAL_ERROR', 'IL_LBM',
|
||||
'IL_PNG_DESCRIPTION_STRING', 'IL_CUBEMAP_POSITIVEZ',
|
||||
'IL_COMPRESSION_HINT', 'ilSetString', 'ilRemoveLoad',
|
||||
'IL_RXGB', 'IL_CUBEMAP_POSITIVEY', 'IL_NO_ERROR',
|
||||
'IL_LIB_TIFF_ERROR', 'fTellRProc', 'IL_TGA_ID_STRING',
|
||||
'IL_IMAGE_SIZE_OF_DATA', 'ILenum', 'IL_RGBA',
|
||||
'IL_TGA_AUTHNAME_STRING', 'fOpenRProc', 'IL_COMPRESS_NONE',
|
||||
'IL_JASC_PAL', 'IL_DOOM', 'IL_COMPRESS_RLE', 'IL_ICO',
|
||||
'IL_ACTIVE_IMAGE', 'ilRegisterMipNum', 'ilSetRead',
|
||||
'fEofProc', 'IL_PAL_BIT', 'ilLoadDataL', 'IL_PSP',
|
||||
'IL_TYPE_SET', 'IL_PNG_INTERLACE', 'IL_STACK_UNDERFLOW',
|
||||
'IL_VERSION_NUM', 'IL_FORMAT_NOT_SUPPORTED', 'ilSetMemory',
|
||||
'IL_IMAGE_DEPTH', 'IL_NUM_MIPMAPS', 'IL_SUB_LAYER',
|
||||
'IL_BAD_DIMENSIONS', 'IL_IMAGE_CUBEFLAGS', 'ilShutDown',
|
||||
'IL_ORIGIN_LOWER_LEFT', 'fCloseRProc', 'ilGetBoolean',
|
||||
'IL_ACTIVE_LAYER', 'IL_WAL', 'ilRegisterNumImages',
|
||||
'ILdouble', 'ilApplyProfile', 'IL_DXTC_DATA_FORMAT',
|
||||
'IL_FASTEST', 'IL_GIF', 'ilResetWrite', 'ilSaveData',
|
||||
'IL_KEEP_DXTC_DATA', 'ilGetIntegerv', 'ILuint',
|
||||
'IL_IMAGE_WIDTH', 'IL_PNG_ALPHA_INDEX', 'IL_SHORT',
|
||||
'IL_FILE_ALREADY_EXISTS', 'ilDeleteImages', 'IL_ATI1N',
|
||||
'ilOverlayImage', 'ilResetRead', 'IL_ORIGIN_MODE',
|
||||
'ILubyte', 'IL_NEU_QUANT', 'ilCompressFunc',
|
||||
'IL_COMPRESS_LZO', 'ilGetBooleanv', 'IL_FORMAT_SET',
|
||||
'IL_SEEK_END', 'IL_MNG', 'IL_IMAGE_TYPE', 'IL_PSD',
|
||||
'ilDeleteImage', 'IL_CONV_PAL', 'ilGetDXTCData',
|
||||
'IL_PAL_RGBA32', 'IL_TIF_DESCRIPTION_STRING',
|
||||
'IL_PALETTE_BPP', 'IL_JP2', 'ilClearImage', 'ilGetLumpPos',
|
||||
'IL_DXT1', 'IL_PAL_RGB32', 'IL_DXT3', 'IL_PIX',
|
||||
'IL_LESS_MEM', 'ilSaveF', 'IL_NUM_LAYERS', 'IL_BYTE',
|
||||
'IL_UNSIGNED_INT', 'IL_INVALID_EXTENSION', 'ilFormatFunc',
|
||||
'ilRegisterSave', 'ilLoadL', 'IL_CUBEMAP_POSITIVEX',
|
||||
'fGetcProc', 'IL_PAL_NONE', 'ilGetPalette',
|
||||
'IL_PALETTE_NUM_COLS', 'ilLoadF', 'IL_DXT4',
|
||||
'IL_IMAGE_BPC', 'ilTexImage', 'IL_PIC', 'ilGetString',
|
||||
'IL_COULD_NOT_OPEN_FILE', 'IL_FILE_WRITE_ERROR', 'IL_JFIF',
|
||||
'IL_IMAGE_DURATION', 'ilGetError', 'IL_PAL_BGRA32',
|
||||
'IL_JPG_PROGRESSIVE', 'IL_FILE_OVERWRITE', 'ILboolean',
|
||||
'ilSetInteger', 'IL_CHEAD_HEADER_STRING',
|
||||
'IL_COLOUR_INDEX', 'ilGenImages', 'IL_OUT_FORMAT_SAME',
|
||||
'IL_UNSIGNED_BYTE', 'IL_PCX', 'IL_HDR', 'ilPopAttrib',
|
||||
'IL_COLOR_INDEX', 'IL_MEM_SPEED_HINT', 'IL_JPG_QUALITY',
|
||||
'ilGetData', 'ilActiveLayer', 'IL_SUB_MIPMAP', 'IL_FALSE',
|
||||
'ilSetDuration', 'ilGetInteger', 'ilIsValid',
|
||||
'IL_LIB_GIF_ERROR', 'IL_USE_COMPRESSION', 'ilGetAlpha',
|
||||
'IL_FORMAT_SPECIFIC_BIT', 'IL_DXT2', 'IL_USE_KEY_COLOR',
|
||||
'IL_ILLEGAL_FILE_VALUE', 'IL_SEEK_CUR', 'fPutcProc',
|
||||
'IL_SEEK_SET', 'ILsizei', 'IL_IMAGE_CHANNELS',
|
||||
'ilApplyPal', 'IL_TRUE', 'fReadProc', 'IL_XPM', 'ilSave',
|
||||
'IL_JPG', 'IL_ORIGIN_BIT', 'IL_DEFAULT_ON_FAIL', 'mFree',
|
||||
'ilGenImage', 'IL_CUBEMAP_NEGATIVEZ',
|
||||
'IL_CUBEMAP_NEGATIVEY', 'IL_CUBEMAP_NEGATIVEX', 'IL_DCX',
|
||||
'ilRegisterLoad', 'IL_ORIGIN_SET', 'IL_DOOM_FLAT',
|
||||
'ilDefaultImage', 'IL_IMAGE_BYTES_PER_PIXEL',
|
||||
'IL_IMAGE_BITS_PER_PIXEL', 'IL_USE_KEY_COLOUR',
|
||||
'IL_IMAGE_FORMAT', 'IL_PNM', 'IL_PCD', 'ilIsDisabled',
|
||||
'IL_TGA', 'IL_BGR', 'IL_PALETTE_TYPE', 'IL_DDS',
|
||||
'fTellWProc', 'IL_SAVE_INTERLACED', 'IL_VENDOR', 'IL_EXIF',
|
||||
'IL_VERSION', 'IL_QUANTIZATION_MODE', 'fSeekWProc',
|
||||
'IL_IMAGE_HEIGHT', 'IL_MDL', 'IL_LOAD_EXT',
|
||||
'ilRegisterType', 'IL_UNKNOWN_ERROR', 'IL_STACK_OVERFLOW',
|
||||
'IL_LIF', 'IL_SGI_RLE', 'IL_WU_QUANT', 'IL_TGA_RLE',
|
||||
'IL_INT', 'IL_INTERLACE_MODE', 'IL_LIB_JP2_ERROR',
|
||||
'IL_FORMAT_MODE', 'fWriteProc', 'IL_EOF', 'IL_BGRA',
|
||||
'IL_COMPRESS_MODE', 'IL_COMPRESS_BIT', 'ILint',
|
||||
'ilCloneCurImage', 'ilRegisterFormat',
|
||||
'IL_ALL_ATTRIB_BITS', 'IL_NEU_QUANT_SAMPLE',
|
||||
'IL_DONT_CARE', 'IL_MAX_QUANT_INDEXS', 'IL_IMAGE_BPP',
|
||||
'IL_3DC', 'IL_TYPE_UNKNOWN', 'ilTypeFunc', 'mAlloc',
|
||||
'IL_ORIGIN_UPPER_LEFT', 'IL_PALETTE_SIZE',
|
||||
'ilCreateSubImage', 'ilIsEnabled', 'IL_PXR', 'ilSetPixels',
|
||||
'IL_FILE_MODE', 'ilSetAlpha', 'IL_COMPRESS_ZLIB', 'IL_RGB',
|
||||
'IL_TYPE_BIT', 'IL_BLIT_BLEND', 'IL_JPG_SAVE_FORMAT',
|
||||
'IL_LOADFAIL_BIT', 'fOpenWProc', 'IL_VTF', 'IL_SAVEPROC',
|
||||
'ilSaveImage', 'IL_LOADPROC', 'ilSavePal', 'IL_TIF',
|
||||
'IL_TGA_AUTHCOMMENT_STRING', 'IL_FORMAT_BIT',
|
||||
'IL_CUR_IMAGE', 'IL_CHEAD', 'IL_LUMINANCE', 'fCloseWProc',
|
||||
'ilCopyPixels', 'IL_IMAGE_OFFX', 'IL_IMAGE_OFFY',
|
||||
'IL_INVALID_FILE_HEADER', 'IL_IMAGE_PLANESIZE',
|
||||
'ilDisable', 'IL_INVALID_ENUM', 'ilOriginFunc',
|
||||
'ilRegisterOrigin', 'ilPushAttrib', 'ilSetWrite',
|
||||
'ilTypeFromExt', 'IL_TIF_HOSTCOMPUTER_STRING', 'IL_SGI',
|
||||
'IL_IMAGE_ORIGIN', 'ilCopyImage', 'ilEnable',
|
||||
'IL_PCD_PICNUM', 'IL_SAVE_EXT', 'IL_EXR', 'IL_PNG',
|
||||
'IL_FILE_BIT', 'IL_CUT', 'IL_BMP', 'IL_RAW',
|
||||
'IL_INVALID_CONVERSION', 'ilRegisterPal', 'IL_BMP_RLE',
|
||||
'ilBlit', 'IL_TIF_DOCUMENTNAME_STRING', 'IL_SUB_NEXT',
|
||||
'IL_TYPE_MODE', 'IL_PNG_AUTHNAME_STRING',
|
||||
'IL_FILE_READ_ERROR', 'ilRemoveSave', 'IL_LUMINANCE_ALPHA',
|
||||
'IL_ILLEGAL_OPERATION', 'IL_WDP', 'IL_DXT5', 'IL_JNG',
|
||||
'IL_NO_COMPRESSION', 'IL_PAL_BGR32', 'ilIsValidL',
|
||||
'ilLoadDataF', 'ilLoadData', 'fSeekRProc',
|
||||
'IL_LIB_MNG_ERROR', 'ilIsValidF', 'IL_PNG_TITLE_STRING',
|
||||
'ilDetermineTypeF', 'ilSaveL', 'ilSetData', 'ilInit',
|
||||
'IL_INVALID_PARAM', 'IL_LIB_PNG_ERROR', 'ilClearColour',
|
||||
'ilActiveMipmap', 'IL_DXT_NO_COMP', 'IL_OUT_OF_MEMORY',
|
||||
'ilLoadPal', 'ilModAlpha', 'IL_INVALID_VALUE', 'IL_ICNS',
|
||||
'IL_DXTC_FORMAT', 'IL_HALF', 'ilHint', 'ilIsImage',
|
||||
'ilConvertImage', 'IL_ALPHA', 'ilKeyColour',
|
||||
'ilResetMemory']
|
||||
@@ -0,0 +1,631 @@
|
||||
from ctypes import *
|
||||
|
||||
_stdcall_libraries = {}
|
||||
_stdcall_libraries['DevIL'] = WinDLL('DevIL')
|
||||
STRING = c_char_p
|
||||
|
||||
|
||||
IL_LOAD_EXT = 7937 # Variable c_int
|
||||
IL_TGA_CREATE_STAMP = 1808 # Variable c_int
|
||||
IL_PAL_RGB24 = 1025 # Variable c_int
|
||||
IL_LIB_JPEG_ERROR = 1506 # Variable c_int
|
||||
IL_DXTC_DATA_FORMAT = 1805 # Variable c_int
|
||||
IL_TIF_AUTHNAME_STRING = 1824 # Variable c_int
|
||||
IL_PSP = 1083 # Variable c_int
|
||||
IL_PALETTE_BASE_TYPE = 3568 # Variable c_int
|
||||
IL_PAL_BGR24 = 1028 # Variable c_int
|
||||
IL_WAL = 1074 # Variable c_int
|
||||
IL_ACTIVE_MIPMAP = 3573 # Variable c_int
|
||||
IL_PSD = 1081 # Variable c_int
|
||||
IL_VERSION = 175 # Variable c_int
|
||||
IL_NUM_IMAGES = 3569 # Variable c_int
|
||||
IL_INTERNAL_ERROR = 1284 # Variable c_int
|
||||
IL_FORMAT_SET = 1552 # Variable c_int
|
||||
IL_PNG_DESCRIPTION_STRING = 1820 # Variable c_int
|
||||
IL_COULD_NOT_OPEN_FILE = 1290 # Variable c_int
|
||||
IL_SEEK_SET = 0 # Variable c_int
|
||||
IL_RXGB = 1807 # Variable c_int
|
||||
IL_TGA_ID_STRING = 1815 # Variable c_int
|
||||
IL_IMAGE_SIZE_OF_DATA = 3559 # Variable c_int
|
||||
IL_RGBA = 6408 # Variable c_int
|
||||
IL_PALETTE_TYPE = 3564 # Variable c_int
|
||||
IL_BGR = 32992 # Variable c_int
|
||||
IL_DOOM = 1058 # Variable c_int
|
||||
IL_COMPRESS_RLE = 1794 # Variable c_int
|
||||
IL_ACTIVE_IMAGE = 3572 # Variable c_int
|
||||
IL_PAL_BIT = 4 # Variable c_int
|
||||
IL_TYPE_SET = 1554 # Variable c_int
|
||||
IL_PNG_INTERLACE = 1810 # Variable c_int
|
||||
IL_DXTC_FORMAT = 1797 # Variable c_int
|
||||
IL_CUBEMAP_POSITIVEZ = 16384 # Variable c_int
|
||||
IL_FORMAT_NOT_SUPPORTED = 1283 # Variable c_int
|
||||
IL_IMAGE_DEPTH = 3558 # Variable c_int
|
||||
IL_NUM_MIPMAPS = 3570 # Variable c_int
|
||||
IL_IMAGE_BYTES_PER_PIXEL = 3560 # Variable c_int
|
||||
IL_IMAGE_CUBEFLAGS = 3581 # Variable c_int
|
||||
IL_STACK_UNDERFLOW = 1295 # Variable c_int
|
||||
IL_ORIGIN_LOWER_LEFT = 1537 # Variable c_int
|
||||
IL_USE_KEY_COLOR = 1589 # Variable c_int
|
||||
IL_UNSIGNED_INT = 5125 # Variable c_int
|
||||
IL_USE_KEY_COLOUR = 1589 # Variable c_int
|
||||
IL_ILLEGAL_OPERATION = 1286 # Variable c_int
|
||||
IL_GIF = 1078 # Variable c_int
|
||||
IL_FLOAT = 5126 # Variable c_int
|
||||
IL_KEEP_DXTC_DATA = 1804 # Variable c_int
|
||||
IL_FILE_WRITE_ERROR = 1298 # Variable c_int
|
||||
IL_IMAGE_WIDTH = 3556 # Variable c_int
|
||||
IL_DEFAULT_ON_FAIL = 1586 # Variable c_int
|
||||
IL_USE_COMPRESSION = 1638 # Variable c_int
|
||||
IL_JASC_PAL = 1141 # Variable c_int
|
||||
IL_LBM = 1062 # Variable c_int
|
||||
IL_ORIGIN_MODE = 1539 # Variable c_int
|
||||
IL_NEU_QUANT = 1602 # Variable c_int
|
||||
IL_VENDOR = 7936 # Variable c_int
|
||||
IL_ACTIVE_LAYER = 3574 # Variable c_int
|
||||
IL_SEEK_END = 2 # Variable c_int
|
||||
IL_MNG = 1077 # Variable c_int
|
||||
IL_TIF = 1070 # Variable c_int
|
||||
IL_INVALID_CONVERSION = 1296 # Variable c_int
|
||||
IL_DOUBLE = 5130 # Variable c_int
|
||||
IL_VERSION_NUM = 3554 # Variable c_int
|
||||
IL_PAL_RGBA32 = 1027 # Variable c_int
|
||||
IL_TIF_DESCRIPTION_STRING = 1821 # Variable c_int
|
||||
IL_PALETTE_BPP = 3566 # Variable c_int
|
||||
IL_IMAGE_DURATION = 3576 # Variable c_int
|
||||
IL_JP2 = 1089 # Variable c_int
|
||||
IL_DXT4 = 1801 # Variable c_int
|
||||
IL_DXT1 = 1798 # Variable c_int
|
||||
IL_PAL_BGR32 = 1029 # Variable c_int
|
||||
IL_DXT3 = 1800 # Variable c_int
|
||||
IL_PIX = 1084 # Variable c_int
|
||||
IL_LESS_MEM = 1633 # Variable c_int
|
||||
IL_NUM_LAYERS = 3571 # Variable c_int
|
||||
IL_BYTE = 5120 # Variable c_int
|
||||
IL_INVALID_EXTENSION = 1291 # Variable c_int
|
||||
IL_CUBEMAP_POSITIVEY = 4096 # Variable c_int
|
||||
IL_CUBEMAP_POSITIVEX = 1024 # Variable c_int
|
||||
IL_PCD = 1063 # Variable c_int
|
||||
IL_IMAGE_BPC = 3578 # Variable c_int
|
||||
IL_PIC = 1065 # Variable c_int
|
||||
IL_SUB_LAYER = 1666 # Variable c_int
|
||||
IL_UNSIGNED_SHORT = 5123 # Variable c_int
|
||||
IL_PAL_BGRA32 = 1030 # Variable c_int
|
||||
IL_JPG_PROGRESSIVE = 1829 # Variable c_int
|
||||
IL_FILE_OVERWRITE = 1568 # Variable c_int
|
||||
IL_SAVE_INTERLACED = 1593 # Variable c_int
|
||||
IL_COLOUR_INDEX = 6400 # Variable c_int
|
||||
IL_ILLEGAL_FILE_VALUE = 1287 # Variable c_int
|
||||
IL_OUT_FORMAT_SAME = 1293 # Variable c_int
|
||||
IL_UNSIGNED_BYTE = 5121 # Variable c_int
|
||||
IL_PCX = 1064 # Variable c_int
|
||||
IL_HDR = 1087 # Variable c_int
|
||||
IL_LIB_MNG_ERROR = 1509 # Variable c_int
|
||||
IL_COLOR_INDEX = 6400 # Variable c_int
|
||||
IL_STACK_OVERFLOW = 1294 # Variable c_int
|
||||
IL_JPG_QUALITY = 1809 # Variable c_int
|
||||
IL_VERSION_1_7_5 = 1 # Variable c_int
|
||||
IL_SUB_MIPMAP = 1665 # Variable c_int
|
||||
IL_FALSE = 0 # Variable c_int
|
||||
IL_FORMAT_MODE = 1553 # Variable c_int
|
||||
IL_LIB_GIF_ERROR = 1505 # Variable c_int
|
||||
IL_EXIF = 1082 # Variable c_int
|
||||
IL_PXR = 1085 # Variable c_int
|
||||
IL_SEEK_CUR = 1 # Variable c_int
|
||||
IL_OUT_OF_MEMORY = 1282 # Variable c_int
|
||||
IL_IMAGE_TYPE = 3563 # Variable c_int
|
||||
IL_IMAGE_CHANNELS = 3583 # Variable c_int
|
||||
IL_TRUE = 1 # Variable c_int
|
||||
IL_COMPRESSION_HINT = 1640 # Variable c_int
|
||||
IL_FILE_ALREADY_EXISTS = 1292 # Variable c_int
|
||||
IL_JPG = 1061 # Variable c_int
|
||||
IL_ORIGIN_BIT = 1 # Variable c_int
|
||||
IL_LIB_PNG_ERROR = 1507 # Variable c_int
|
||||
IL_INVALID_VALUE = 1285 # Variable c_int
|
||||
IL_CUBEMAP_NEGATIVEZ = 32768 # Variable c_int
|
||||
IL_CUBEMAP_NEGATIVEX = 2048 # Variable c_int
|
||||
IL_DCX = 1080 # Variable c_int
|
||||
IL_ORIGIN_SET = 1536 # Variable c_int
|
||||
IL_DOOM_FLAT = 1059 # Variable c_int
|
||||
IL_BAD_DIMENSIONS = 1297 # Variable c_int
|
||||
IL_IMAGE_BITS_PER_PIXEL = 3561 # Variable c_int
|
||||
IL_ATI1N = 1808 # Variable c_int
|
||||
IL_JFIF = 1061 # Variable c_int
|
||||
IL_SUB_NEXT = 1664 # Variable c_int
|
||||
IL_TGA = 1069 # Variable c_int
|
||||
IL_MEM_SPEED_HINT = 1637 # Variable c_int
|
||||
IL_DDS = 1079 # Variable c_int
|
||||
IL_QUANTIZATION_MODE = 1600 # Variable c_int
|
||||
IL_IMAGE_HEIGHT = 3557 # Variable c_int
|
||||
IL_MDL = 1073 # Variable c_int
|
||||
IL_INVALID_PARAM = 1289 # Variable c_int
|
||||
IL_BGRA = 32993 # Variable c_int
|
||||
IL_PNG_ALPHA_INDEX = 1828 # Variable c_int
|
||||
IL_WU_QUANT = 1601 # Variable c_int
|
||||
IL_TGA_RLE = 1811 # Variable c_int
|
||||
IL_IMAGE_ORIGIN = 3582 # Variable c_int
|
||||
IL_SGI_RLE = 1813 # Variable c_int
|
||||
IL_EOF = -1 # Variable c_int
|
||||
IL_UNKNOWN_ERROR = 1535 # Variable c_int
|
||||
IL_COMPRESS_MODE = 1792 # Variable c_int
|
||||
IL_COMPRESS_BIT = 32 # Variable c_int
|
||||
IL_COMPRESS_LZO = 1795 # Variable c_int
|
||||
IL_NEU_QUANT_SAMPLE = 1603 # Variable c_int
|
||||
IL_DONT_CARE = 1634 # Variable c_int
|
||||
IL_MAX_QUANT_INDEXS = 1604 # Variable c_int
|
||||
IL_IMAGE_BPP = 3560 # Variable c_int
|
||||
IL_IMAGE_PLANESIZE = 3577 # Variable c_int
|
||||
IL_3DC = 1806 # Variable c_int
|
||||
IL_TYPE_UNKNOWN = 0 # Variable c_int
|
||||
IL_COMPRESS_NONE = 1793 # Variable c_int
|
||||
IL_XPM = 1086 # Variable c_int
|
||||
IL_ORIGIN_UPPER_LEFT = 1538 # Variable c_int
|
||||
IL_PALETTE_SIZE = 3565 # Variable c_int
|
||||
IL_SHORT = 5122 # Variable c_int
|
||||
IL_FILE_MODE = 1569 # Variable c_int
|
||||
IL_IMAGE_FORMAT = 3562 # Variable c_int
|
||||
IL_COMPRESS_ZLIB = 1796 # Variable c_int
|
||||
IL_RGB = 6407 # Variable c_int
|
||||
IL_TYPE_BIT = 16 # Variable c_int
|
||||
IL_BLIT_BLEND = 1590 # Variable c_int
|
||||
IL_JPG_SAVE_FORMAT = 1825 # Variable c_int
|
||||
IL_LOADFAIL_BIT = 64 # Variable c_int
|
||||
IL_PNM = 1067 # Variable c_int
|
||||
IL_VTF = 1092 # Variable c_int
|
||||
IL_PAL_NONE = 1024 # Variable c_int
|
||||
IL_FORMAT_SPECIFIC_BIT = 128 # Variable c_int
|
||||
IL_PNG = 1066 # Variable c_int
|
||||
IL_TGA_AUTHCOMMENT_STRING = 1817 # Variable c_int
|
||||
IL_CUR_IMAGE = 3575 # Variable c_int
|
||||
IL_JNG = 1077 # Variable c_int
|
||||
IL_LUMINANCE = 6409 # Variable c_int
|
||||
IL_ICO = 1060 # Variable c_int
|
||||
IL_IMAGE_OFFX = 3579 # Variable c_int
|
||||
IL_IMAGE_OFFY = 3580 # Variable c_int
|
||||
IL_INVALID_FILE_HEADER = 1288 # Variable c_int
|
||||
IL_INVALID_ENUM = 1281 # Variable c_int
|
||||
IL_INT = 5124 # Variable c_int
|
||||
IL_CHEAD = 1071 # Variable c_int
|
||||
IL_FORMAT_BIT = 8 # Variable c_int
|
||||
IL_CONV_PAL = 1584 # Variable c_int
|
||||
IL_NO_COMPRESSION = 1639 # Variable c_int
|
||||
IL_SGI = 1068 # Variable c_int
|
||||
IL_LIB_JP2_ERROR = 1510 # Variable c_int
|
||||
IL_SAVE_EXT = 7938 # Variable c_int
|
||||
IL_EXR = 1090 # Variable c_int
|
||||
IL_FILE_BIT = 2 # Variable c_int
|
||||
IL_BMP = 1056 # Variable c_int
|
||||
IL_RAW = 1072 # Variable c_int
|
||||
IL_BMP_RLE = 1812 # Variable c_int
|
||||
IL_TGA_AUTHNAME_STRING = 1816 # Variable c_int
|
||||
IL_TIF_DOCUMENTNAME_STRING = 1823 # Variable c_int
|
||||
IL_PCD_PICNUM = 1827 # Variable c_int
|
||||
IL_TYPE_MODE = 1555 # Variable c_int
|
||||
IL_FILE_READ_ERROR = 1298 # Variable c_int
|
||||
IL_LUMINANCE_ALPHA = 6410 # Variable c_int
|
||||
IL_FASTEST = 1632 # Variable c_int
|
||||
IL_WDP = 1091 # Variable c_int
|
||||
IL_DXT5 = 1802 # Variable c_int
|
||||
IL_CUBEMAP_NEGATIVEY = 8192 # Variable c_int
|
||||
IL_CUT = 1057 # Variable c_int
|
||||
IL_PAL_RGB32 = 1026 # Variable c_int
|
||||
IL_PNG_AUTHNAME_STRING = 1818 # Variable c_int
|
||||
IL_INTERLACE_MODE = 1594 # Variable c_int
|
||||
IL_CHEAD_HEADER_STRING = 1826 # Variable c_int
|
||||
IL_PNG_TITLE_STRING = 1819 # Variable c_int
|
||||
IL_ALL_ATTRIB_BITS = 1048575 # Variable c_int
|
||||
IL_DXT_NO_COMP = 1803 # Variable c_int
|
||||
IL_DXT2 = 1799 # Variable c_int
|
||||
IL_LIF = 1076 # Variable c_int
|
||||
IL_TIF_HOSTCOMPUTER_STRING = 1822 # Variable c_int
|
||||
IL_ICNS = 1088 # Variable c_int
|
||||
IL_HALF = 5131 # Variable c_int
|
||||
IL_LIB_TIFF_ERROR = 1508 # Variable c_int
|
||||
IL_ALPHA = 6411 # Variable c_int
|
||||
IL_NO_ERROR = 0 # Variable c_int
|
||||
IL_PALETTE_NUM_COLS = 3567 # Variable c_int
|
||||
ILboolean = c_ubyte
|
||||
ILuint = c_uint
|
||||
ilActiveImage = _stdcall_libraries['DevIL'].ilActiveImage
|
||||
ilActiveImage.restype = ILboolean
|
||||
ilActiveImage.argtypes = [ILuint]
|
||||
ilActiveLayer = _stdcall_libraries['DevIL'].ilActiveLayer
|
||||
ilActiveLayer.restype = ILboolean
|
||||
ilActiveLayer.argtypes = [ILuint]
|
||||
ilActiveMipmap = _stdcall_libraries['DevIL'].ilActiveMipmap
|
||||
ilActiveMipmap.restype = ILboolean
|
||||
ilActiveMipmap.argtypes = [ILuint]
|
||||
ilApplyPal = _stdcall_libraries['DevIL'].ilApplyPal
|
||||
ilApplyPal.restype = ILboolean
|
||||
ilApplyPal.argtypes = [STRING]
|
||||
ilApplyProfile = _stdcall_libraries['DevIL'].ilApplyProfile
|
||||
ilApplyProfile.restype = ILboolean
|
||||
ilApplyProfile.argtypes = [STRING, STRING]
|
||||
ilBindImage = _stdcall_libraries['DevIL'].ilBindImage
|
||||
ilBindImage.restype = None
|
||||
ilBindImage.argtypes = [ILuint]
|
||||
ILint = c_int
|
||||
ilBlit = _stdcall_libraries['DevIL'].ilBlit
|
||||
ilBlit.restype = ILboolean
|
||||
ilBlit.argtypes = [ILuint, ILint, ILint, ILint, ILuint, ILuint, ILuint, ILuint, ILuint, ILuint]
|
||||
ILclampf = c_float
|
||||
ilClearColour = _stdcall_libraries['DevIL'].ilClearColour
|
||||
ilClearColour.restype = None
|
||||
ilClearColour.argtypes = [ILclampf, ILclampf, ILclampf, ILclampf]
|
||||
ilClearImage = _stdcall_libraries['DevIL'].ilClearImage
|
||||
ilClearImage.restype = ILboolean
|
||||
ilClearImage.argtypes = []
|
||||
ilCloneCurImage = _stdcall_libraries['DevIL'].ilCloneCurImage
|
||||
ilCloneCurImage.restype = ILuint
|
||||
ilCloneCurImage.argtypes = []
|
||||
ILenum = c_uint
|
||||
ilCompressFunc = _stdcall_libraries['DevIL'].ilCompressFunc
|
||||
ilCompressFunc.restype = ILboolean
|
||||
ilCompressFunc.argtypes = [ILenum]
|
||||
ilConvertImage = _stdcall_libraries['DevIL'].ilConvertImage
|
||||
ilConvertImage.restype = ILboolean
|
||||
ilConvertImage.argtypes = [ILenum, ILenum]
|
||||
ilConvertPal = _stdcall_libraries['DevIL'].ilConvertPal
|
||||
ilConvertPal.restype = ILboolean
|
||||
ilConvertPal.argtypes = [ILenum]
|
||||
ilCopyImage = _stdcall_libraries['DevIL'].ilCopyImage
|
||||
ilCopyImage.restype = ILboolean
|
||||
ilCopyImage.argtypes = [ILuint]
|
||||
ilCopyPixels = _stdcall_libraries['DevIL'].ilCopyPixels
|
||||
ilCopyPixels.restype = ILuint
|
||||
ilCopyPixels.argtypes = [ILuint, ILuint, ILuint, ILuint, ILuint, ILuint, ILenum, ILenum, c_void_p]
|
||||
ilCreateSubImage = _stdcall_libraries['DevIL'].ilCreateSubImage
|
||||
ilCreateSubImage.restype = ILuint
|
||||
ilCreateSubImage.argtypes = [ILenum, ILuint]
|
||||
ilDefaultImage = _stdcall_libraries['DevIL'].ilDefaultImage
|
||||
ilDefaultImage.restype = ILboolean
|
||||
ilDefaultImage.argtypes = []
|
||||
ilDeleteImage = _stdcall_libraries['DevIL'].ilDeleteImage
|
||||
ilDeleteImage.restype = None
|
||||
ilDeleteImage.argtypes = [ILuint]
|
||||
size_t = c_uint
|
||||
ILsizei = size_t
|
||||
ilDeleteImages = _stdcall_libraries['DevIL'].ilDeleteImages
|
||||
ilDeleteImages.restype = None
|
||||
ilDeleteImages.argtypes = [ILsizei, POINTER(ILuint)]
|
||||
ilDisable = _stdcall_libraries['DevIL'].ilDisable
|
||||
ilDisable.restype = ILboolean
|
||||
ilDisable.argtypes = [ILenum]
|
||||
ilEnable = _stdcall_libraries['DevIL'].ilEnable
|
||||
ilEnable.restype = ILboolean
|
||||
ilEnable.argtypes = [ILenum]
|
||||
ilFormatFunc = _stdcall_libraries['DevIL'].ilFormatFunc
|
||||
ilFormatFunc.restype = ILboolean
|
||||
ilFormatFunc.argtypes = [ILenum]
|
||||
ilGenImages = _stdcall_libraries['DevIL'].ilGenImages
|
||||
ilGenImages.restype = None
|
||||
ilGenImages.argtypes = [ILsizei, POINTER(ILuint)]
|
||||
ilGenImage = _stdcall_libraries['DevIL'].ilGenImage
|
||||
ilGenImage.restype = ILuint
|
||||
ilGenImage.argtypes = []
|
||||
ILubyte = c_ubyte
|
||||
ilGetAlpha = _stdcall_libraries['DevIL'].ilGetAlpha
|
||||
ilGetAlpha.restype = POINTER(ILubyte)
|
||||
ilGetAlpha.argtypes = [ILenum]
|
||||
ilGetBoolean = _stdcall_libraries['DevIL'].ilGetBoolean
|
||||
ilGetBoolean.restype = ILboolean
|
||||
ilGetBoolean.argtypes = [ILenum]
|
||||
ilGetBooleanv = _stdcall_libraries['DevIL'].ilGetBooleanv
|
||||
ilGetBooleanv.restype = None
|
||||
ilGetBooleanv.argtypes = [ILenum, POINTER(ILboolean)]
|
||||
ilGetData = _stdcall_libraries['DevIL'].ilGetData
|
||||
ilGetData.restype = POINTER(ILubyte)
|
||||
ilGetData.argtypes = []
|
||||
ilGetDXTCData = _stdcall_libraries['DevIL'].ilGetDXTCData
|
||||
ilGetDXTCData.restype = ILuint
|
||||
ilGetDXTCData.argtypes = [c_void_p, ILuint, ILenum]
|
||||
ilGetError = _stdcall_libraries['DevIL'].ilGetError
|
||||
ilGetError.restype = ILenum
|
||||
ilGetError.argtypes = []
|
||||
ilGetInteger = _stdcall_libraries['DevIL'].ilGetInteger
|
||||
ilGetInteger.restype = ILint
|
||||
ilGetInteger.argtypes = [ILenum]
|
||||
ilGetIntegerv = _stdcall_libraries['DevIL'].ilGetIntegerv
|
||||
ilGetIntegerv.restype = None
|
||||
ilGetIntegerv.argtypes = [ILenum, POINTER(ILint)]
|
||||
ilGetLumpPos = _stdcall_libraries['DevIL'].ilGetLumpPos
|
||||
ilGetLumpPos.restype = ILuint
|
||||
ilGetLumpPos.argtypes = []
|
||||
ilGetPalette = _stdcall_libraries['DevIL'].ilGetPalette
|
||||
ilGetPalette.restype = POINTER(ILubyte)
|
||||
ilGetPalette.argtypes = []
|
||||
ilGetString = _stdcall_libraries['DevIL'].ilGetString
|
||||
ilGetString.restype = STRING
|
||||
ilGetString.argtypes = [ILenum]
|
||||
ilHint = _stdcall_libraries['DevIL'].ilHint
|
||||
ilHint.restype = None
|
||||
ilHint.argtypes = [ILenum, ILenum]
|
||||
ilInit = _stdcall_libraries['DevIL'].ilInit
|
||||
ilInit.restype = None
|
||||
ilInit.argtypes = []
|
||||
ilIsDisabled = _stdcall_libraries['DevIL'].ilIsDisabled
|
||||
ilIsDisabled.restype = ILboolean
|
||||
ilIsDisabled.argtypes = [ILenum]
|
||||
ilIsEnabled = _stdcall_libraries['DevIL'].ilIsEnabled
|
||||
ilIsEnabled.restype = ILboolean
|
||||
ilIsEnabled.argtypes = [ILenum]
|
||||
ILHANDLE = c_void_p
|
||||
ilDetermineTypeF = _stdcall_libraries['DevIL'].ilDetermineTypeF
|
||||
ilDetermineTypeF.restype = ILenum
|
||||
ilDetermineTypeF.argtypes = [ILHANDLE]
|
||||
ilIsImage = _stdcall_libraries['DevIL'].ilIsImage
|
||||
ilIsImage.restype = ILboolean
|
||||
ilIsImage.argtypes = [ILuint]
|
||||
ilIsValid = _stdcall_libraries['DevIL'].ilIsValid
|
||||
ilIsValid.restype = ILboolean
|
||||
ilIsValid.argtypes = [ILenum, STRING]
|
||||
ilIsValidF = _stdcall_libraries['DevIL'].ilIsValidF
|
||||
ilIsValidF.restype = ILboolean
|
||||
ilIsValidF.argtypes = [ILenum, ILHANDLE]
|
||||
ilIsValidL = _stdcall_libraries['DevIL'].ilIsValidL
|
||||
ilIsValidL.restype = ILboolean
|
||||
ilIsValidL.argtypes = [ILenum, c_void_p, ILuint]
|
||||
ilKeyColour = _stdcall_libraries['DevIL'].ilKeyColour
|
||||
ilKeyColour.restype = None
|
||||
ilKeyColour.argtypes = [ILclampf, ILclampf, ILclampf, ILclampf]
|
||||
ilLoad = _stdcall_libraries['DevIL'].ilLoad
|
||||
ilLoad.restype = ILboolean
|
||||
ilLoad.argtypes = [ILenum, STRING]
|
||||
ilLoadF = _stdcall_libraries['DevIL'].ilLoadF
|
||||
ilLoadF.restype = ILboolean
|
||||
ilLoadF.argtypes = [ILenum, ILHANDLE]
|
||||
ilLoadImage = _stdcall_libraries['DevIL'].ilLoadImage
|
||||
ilLoadImage.restype = ILboolean
|
||||
ilLoadImage.argtypes = [STRING]
|
||||
ilLoadL = _stdcall_libraries['DevIL'].ilLoadL
|
||||
ilLoadL.restype = ILboolean
|
||||
ilLoadL.argtypes = [ILenum, c_void_p, ILuint]
|
||||
ilLoadPal = _stdcall_libraries['DevIL'].ilLoadPal
|
||||
ilLoadPal.restype = ILboolean
|
||||
ilLoadPal.argtypes = [STRING]
|
||||
ILdouble = c_double
|
||||
ilModAlpha = _stdcall_libraries['DevIL'].ilModAlpha
|
||||
ilModAlpha.restype = None
|
||||
ilModAlpha.argtypes = [ILdouble]
|
||||
ilOriginFunc = _stdcall_libraries['DevIL'].ilOriginFunc
|
||||
ilOriginFunc.restype = ILboolean
|
||||
ilOriginFunc.argtypes = [ILenum]
|
||||
ilOverlayImage = _stdcall_libraries['DevIL'].ilOverlayImage
|
||||
ilOverlayImage.restype = ILboolean
|
||||
ilOverlayImage.argtypes = [ILuint, ILint, ILint, ILint]
|
||||
ilPopAttrib = _stdcall_libraries['DevIL'].ilPopAttrib
|
||||
ilPopAttrib.restype = None
|
||||
ilPopAttrib.argtypes = []
|
||||
ilPushAttrib = _stdcall_libraries['DevIL'].ilPushAttrib
|
||||
ilPushAttrib.restype = None
|
||||
ilPushAttrib.argtypes = [ILuint]
|
||||
ilRegisterFormat = _stdcall_libraries['DevIL'].ilRegisterFormat
|
||||
ilRegisterFormat.restype = None
|
||||
ilRegisterFormat.argtypes = [ILenum]
|
||||
IL_LOADPROC = WINFUNCTYPE(ILenum, STRING)
|
||||
ilRegisterLoad = _stdcall_libraries['DevIL'].ilRegisterLoad
|
||||
ilRegisterLoad.restype = ILboolean
|
||||
ilRegisterLoad.argtypes = [STRING, IL_LOADPROC]
|
||||
ilRegisterMipNum = _stdcall_libraries['DevIL'].ilRegisterMipNum
|
||||
ilRegisterMipNum.restype = ILboolean
|
||||
ilRegisterMipNum.argtypes = [ILuint]
|
||||
ilRegisterNumImages = _stdcall_libraries['DevIL'].ilRegisterNumImages
|
||||
ilRegisterNumImages.restype = ILboolean
|
||||
ilRegisterNumImages.argtypes = [ILuint]
|
||||
ilRegisterOrigin = _stdcall_libraries['DevIL'].ilRegisterOrigin
|
||||
ilRegisterOrigin.restype = None
|
||||
ilRegisterOrigin.argtypes = [ILenum]
|
||||
ilRegisterPal = _stdcall_libraries['DevIL'].ilRegisterPal
|
||||
ilRegisterPal.restype = None
|
||||
ilRegisterPal.argtypes = [c_void_p, ILuint, ILenum]
|
||||
IL_SAVEPROC = WINFUNCTYPE(ILenum, STRING)
|
||||
ilRegisterSave = _stdcall_libraries['DevIL'].ilRegisterSave
|
||||
ilRegisterSave.restype = ILboolean
|
||||
ilRegisterSave.argtypes = [STRING, IL_SAVEPROC]
|
||||
ilRegisterType = _stdcall_libraries['DevIL'].ilRegisterType
|
||||
ilRegisterType.restype = None
|
||||
ilRegisterType.argtypes = [ILenum]
|
||||
ilRemoveLoad = _stdcall_libraries['DevIL'].ilRemoveLoad
|
||||
ilRemoveLoad.restype = ILboolean
|
||||
ilRemoveLoad.argtypes = [STRING]
|
||||
ilRemoveSave = _stdcall_libraries['DevIL'].ilRemoveSave
|
||||
ilRemoveSave.restype = ILboolean
|
||||
ilRemoveSave.argtypes = [STRING]
|
||||
ilResetMemory = _stdcall_libraries['DevIL'].ilResetMemory
|
||||
ilResetMemory.restype = None
|
||||
ilResetMemory.argtypes = []
|
||||
ilResetRead = _stdcall_libraries['DevIL'].ilResetRead
|
||||
ilResetRead.restype = None
|
||||
ilResetRead.argtypes = []
|
||||
ilResetWrite = _stdcall_libraries['DevIL'].ilResetWrite
|
||||
ilResetWrite.restype = None
|
||||
ilResetWrite.argtypes = []
|
||||
ilSave = _stdcall_libraries['DevIL'].ilSave
|
||||
ilSave.restype = ILboolean
|
||||
ilSave.argtypes = [ILenum, STRING]
|
||||
ilSaveF = _stdcall_libraries['DevIL'].ilSaveF
|
||||
ilSaveF.restype = ILuint
|
||||
ilSaveF.argtypes = [ILenum, ILHANDLE]
|
||||
ilSaveImage = _stdcall_libraries['DevIL'].ilSaveImage
|
||||
ilSaveImage.restype = ILboolean
|
||||
ilSaveImage.argtypes = [STRING]
|
||||
ilSaveL = _stdcall_libraries['DevIL'].ilSaveL
|
||||
ilSaveL.restype = ILuint
|
||||
ilSaveL.argtypes = [ILenum, c_void_p, ILuint]
|
||||
ilSavePal = _stdcall_libraries['DevIL'].ilSavePal
|
||||
ilSavePal.restype = ILboolean
|
||||
ilSavePal.argtypes = [STRING]
|
||||
ilSetAlpha = _stdcall_libraries['DevIL'].ilSetAlpha
|
||||
ilSetAlpha.restype = ILboolean
|
||||
ilSetAlpha.argtypes = [ILdouble]
|
||||
ilSetData = _stdcall_libraries['DevIL'].ilSetData
|
||||
ilSetData.restype = ILboolean
|
||||
ilSetData.argtypes = [c_void_p]
|
||||
ilSetDuration = _stdcall_libraries['DevIL'].ilSetDuration
|
||||
ilSetDuration.restype = ILboolean
|
||||
ilSetDuration.argtypes = [ILuint]
|
||||
ilSetInteger = _stdcall_libraries['DevIL'].ilSetInteger
|
||||
ilSetInteger.restype = None
|
||||
ilSetInteger.argtypes = [ILenum, ILint]
|
||||
mAlloc = WINFUNCTYPE(c_void_p, c_uint)
|
||||
mFree = WINFUNCTYPE(None, c_void_p)
|
||||
ilSetMemory = _stdcall_libraries['DevIL'].ilSetMemory
|
||||
ilSetMemory.restype = None
|
||||
ilSetMemory.argtypes = [mAlloc, mFree]
|
||||
ilSetPixels = _stdcall_libraries['DevIL'].ilSetPixels
|
||||
ilSetPixels.restype = None
|
||||
ilSetPixels.argtypes = [ILint, ILint, ILint, ILuint, ILuint, ILuint, ILenum, ILenum, c_void_p]
|
||||
fOpenRProc = WINFUNCTYPE(ILHANDLE, STRING)
|
||||
fCloseRProc = WINFUNCTYPE(None, c_void_p)
|
||||
fEofProc = WINFUNCTYPE(ILboolean, c_void_p)
|
||||
fGetcProc = WINFUNCTYPE(ILint, c_void_p)
|
||||
fReadProc = WINFUNCTYPE(ILint, c_void_p, c_uint, c_uint, c_void_p)
|
||||
fSeekRProc = WINFUNCTYPE(ILint, c_void_p, c_int, c_int)
|
||||
fTellRProc = WINFUNCTYPE(ILint, c_void_p)
|
||||
ilSetRead = _stdcall_libraries['DevIL'].ilSetRead
|
||||
ilSetRead.restype = None
|
||||
ilSetRead.argtypes = [fOpenRProc, fCloseRProc, fEofProc, fGetcProc, fReadProc, fSeekRProc, fTellRProc]
|
||||
ilSetString = _stdcall_libraries['DevIL'].ilSetString
|
||||
ilSetString.restype = None
|
||||
ilSetString.argtypes = [ILenum, STRING]
|
||||
fOpenWProc = WINFUNCTYPE(ILHANDLE, STRING)
|
||||
fCloseWProc = WINFUNCTYPE(None, c_void_p)
|
||||
fPutcProc = WINFUNCTYPE(ILint, c_ubyte, c_void_p)
|
||||
fSeekWProc = WINFUNCTYPE(ILint, c_void_p, c_int, c_int)
|
||||
fTellWProc = WINFUNCTYPE(ILint, c_void_p)
|
||||
fWriteProc = WINFUNCTYPE(ILint, c_void_p, c_uint, c_uint, c_void_p)
|
||||
ilSetWrite = _stdcall_libraries['DevIL'].ilSetWrite
|
||||
ilSetWrite.restype = None
|
||||
ilSetWrite.argtypes = [fOpenWProc, fCloseWProc, fPutcProc, fSeekWProc, fTellWProc, fWriteProc]
|
||||
ilShutDown = _stdcall_libraries['DevIL'].ilShutDown
|
||||
ilShutDown.restype = None
|
||||
ilShutDown.argtypes = []
|
||||
ilTexImage = _stdcall_libraries['DevIL'].ilTexImage
|
||||
ilTexImage.restype = ILboolean
|
||||
ilTexImage.argtypes = [ILuint, ILuint, ILuint, ILubyte, ILenum, ILenum, c_void_p]
|
||||
ilTypeFromExt = _stdcall_libraries['DevIL'].ilTypeFromExt
|
||||
ilTypeFromExt.restype = ILenum
|
||||
ilTypeFromExt.argtypes = [STRING]
|
||||
ilTypeFunc = _stdcall_libraries['DevIL'].ilTypeFunc
|
||||
ilTypeFunc.restype = ILboolean
|
||||
ilTypeFunc.argtypes = [ILenum]
|
||||
ilLoadData = _stdcall_libraries['DevIL'].ilLoadData
|
||||
ilLoadData.restype = ILboolean
|
||||
ilLoadData.argtypes = [STRING, ILuint, ILuint, ILuint, ILubyte]
|
||||
ilLoadDataF = _stdcall_libraries['DevIL'].ilLoadDataF
|
||||
ilLoadDataF.restype = ILboolean
|
||||
ilLoadDataF.argtypes = [ILHANDLE, ILuint, ILuint, ILuint, ILubyte]
|
||||
ilLoadDataL = _stdcall_libraries['DevIL'].ilLoadDataL
|
||||
ilLoadDataL.restype = ILboolean
|
||||
ilLoadDataL.argtypes = [c_void_p, ILuint, ILuint, ILuint, ILuint, ILubyte]
|
||||
ilSaveData = _stdcall_libraries['DevIL'].ilSaveData
|
||||
ilSaveData.restype = ILboolean
|
||||
ilSaveData.argtypes = [STRING]
|
||||
__all__ = ['IL_LOAD_EXT', 'IL_TGA_CREATE_STAMP', 'IL_PAL_RGB24',
|
||||
'IL_LIB_JPEG_ERROR', 'IL_DXTC_DATA_FORMAT',
|
||||
'IL_TIF_AUTHNAME_STRING', 'ilBindImage', 'IL_PSP',
|
||||
'ilConvertPal', 'IL_PAL_BGR24', 'IL_WAL', 'ilLoad',
|
||||
'IL_ACTIVE_MIPMAP', 'size_t', 'IL_PSD', 'IL_VERSION',
|
||||
'IL_NUM_IMAGES', 'IL_PNG_DESCRIPTION_STRING',
|
||||
'IL_INTERNAL_ERROR', 'IL_SEEK_SET', 'ilSetString',
|
||||
'ilRemoveLoad', 'IL_RXGB', 'IL_MDL', 'IL_NO_ERROR',
|
||||
'ILdouble', 'IL_TGA_ID_STRING', 'IL_IMAGE_SIZE_OF_DATA',
|
||||
'ILenum', 'IL_RGBA', 'IL_PALETTE_TYPE', 'fOpenRProc',
|
||||
'fReadProc', 'IL_BGR', 'IL_DOOM', 'IL_COMPRESS_RLE',
|
||||
'IL_ACTIVE_IMAGE', 'ilRegisterMipNum', 'ilLoadImage',
|
||||
'ilGenImages', 'ilSaveImage', 'IL_PAL_BIT',
|
||||
'IL_TGA_AUTHCOMMENT_STRING', 'ilLoadDataL', 'IL_TYPE_SET',
|
||||
'IL_PNG_INTERLACE', 'IL_DXTC_FORMAT', 'IL_RGB',
|
||||
'IL_FORMAT_NOT_SUPPORTED', 'ilSetMemory', 'ilClearImage',
|
||||
'IL_IMAGE_DEPTH', 'IL_NUM_MIPMAPS', 'ilModAlpha',
|
||||
'IL_BAD_DIMENSIONS', 'IL_IMAGE_CUBEFLAGS',
|
||||
'IL_STACK_UNDERFLOW', 'IL_ORIGIN_LOWER_LEFT',
|
||||
'IL_USE_KEY_COLOR', 'ilGetBoolean', 'IL_ACTIVE_LAYER',
|
||||
'ilRegisterNumImages', 'IL_SHORT', 'ilSave',
|
||||
'IL_UNSIGNED_INT', 'IL_FASTEST', 'IL_GIF', 'IL_FLOAT',
|
||||
'ilSaveData', 'IL_KEEP_DXTC_DATA', 'IL_FILE_WRITE_ERROR',
|
||||
'ILuint', 'IL_IMAGE_WIDTH', 'IL_DEFAULT_ON_FAIL',
|
||||
'ilLoadL', 'ilDeleteImages', 'IL_ATI1N', 'ilOverlayImage',
|
||||
'IL_LBM', 'IL_ORIGIN_MODE', 'ILubyte', 'IL_NEU_QUANT',
|
||||
'ilCompressFunc', 'IL_VENDOR', 'ilGetBooleanv',
|
||||
'ilSetAlpha', 'ilTypeFunc', 'IL_SEEK_END', 'IL_MNG',
|
||||
'IL_TIF', 'ILHANDLE', 'IL_DOUBLE', 'IL_VERSION_NUM',
|
||||
'ilGetDXTCData', 'IL_PAL_RGBA32',
|
||||
'IL_TIF_DESCRIPTION_STRING', 'IL_PALETTE_BPP',
|
||||
'ilResetRead', 'IL_JP2', 'IL_DXT4', 'ilLoadData',
|
||||
'ilGetLumpPos', 'IL_DXT1', 'IL_PAL_RGB32', 'IL_DXT3',
|
||||
'IL_PIX', 'IL_LESS_MEM', 'IL_PALETTE_BASE_TYPE',
|
||||
'IL_NUM_LAYERS', 'IL_BYTE', 'ilApplyProfile',
|
||||
'ilPopAttrib', 'fTellRProc', 'ilFormatFunc',
|
||||
'IL_CUBEMAP_POSITIVEZ', 'IL_CUBEMAP_POSITIVEY',
|
||||
'IL_CUBEMAP_POSITIVEX', 'fGetcProc', 'IL_PAL_NONE',
|
||||
'ilGetPalette', 'IL_JPG_PROGRESSIVE', 'ilLoadF',
|
||||
'fCloseRProc', 'IL_PIC', 'ilGetString', 'IL_LOADFAIL_BIT',
|
||||
'IL_UNSIGNED_SHORT', 'IL_JFIF', 'IL_IMAGE_DURATION',
|
||||
'ilGetError', 'IL_PAL_BGRA32', 'IL_PCD', 'IL_TGA',
|
||||
'ILboolean', 'ilSetInteger', 'ilIsValidF',
|
||||
'IL_COLOUR_INDEX', 'IL_ILLEGAL_FILE_VALUE',
|
||||
'IL_OUT_FORMAT_SAME', 'IL_UNSIGNED_BYTE', 'IL_PCX',
|
||||
'IL_HDR', 'ilGetAlpha', 'fTellWProc', 'IL_STACK_OVERFLOW',
|
||||
'IL_JPG_QUALITY', 'IL_VERSION_1_7_5', 'ilActiveLayer',
|
||||
'IL_SUB_MIPMAP', 'IL_FALSE', 'ilCopyPixels',
|
||||
'IL_FORMAT_MODE', 'ilIsValid', 'IL_LIB_GIF_ERROR',
|
||||
'ilRegisterSave', 'IL_USE_COMPRESSION', 'ilGetIntegerv',
|
||||
'IL_DXT2', 'IL_VTF', 'IL_PXR', 'IL_SEEK_CUR', 'IL_PNG',
|
||||
'ilShutDown', 'IL_OUT_OF_MEMORY', 'ILsizei',
|
||||
'IL_IMAGE_CHANNELS', 'ilApplyPal', 'IL_TRUE',
|
||||
'IL_COMPRESSION_HINT', 'IL_INVALID_VALUE',
|
||||
'IL_FILE_ALREADY_EXISTS', 'IL_JPG', 'mFree', 'ilGenImage',
|
||||
'IL_CUBEMAP_NEGATIVEZ', 'IL_CUBEMAP_NEGATIVEY',
|
||||
'IL_CUBEMAP_NEGATIVEX', 'IL_DCX', 'ilDisable', 'ilInit',
|
||||
'IL_ORIGIN_SET', 'IL_DOOM_FLAT', 'ilDefaultImage',
|
||||
'IL_IMAGE_BYTES_PER_PIXEL', 'IL_IMAGE_BITS_PER_PIXEL',
|
||||
'IL_USE_KEY_COLOUR', 'IL_SUB_NEXT', 'ilDetermineTypeF',
|
||||
'IL_PNM', 'ilIsDisabled', 'IL_LIB_PNG_ERROR',
|
||||
'IL_MEM_SPEED_HINT', 'IL_DDS', 'IL_COLOR_INDEX', 'IL_EXIF',
|
||||
'ilGetData', 'IL_JNG', 'IL_IMAGE_HEIGHT', 'ilLoadPal',
|
||||
'ilLoadDataF', 'IL_INVALID_FILE_HEADER', 'IL_BGRA',
|
||||
'ilSaveF', 'ilRegisterLoad', 'ilKeyColour',
|
||||
'IL_PNG_ALPHA_INDEX', 'IL_CONV_PAL',
|
||||
'IL_INVALID_EXTENSION', 'IL_TGA_RLE', 'IL_INT',
|
||||
'IL_IMAGE_ORIGIN', 'ilGetInteger', 'IL_IMAGE_BPC',
|
||||
'IL_EOF', 'IL_UNKNOWN_ERROR', 'IL_COMPRESS_MODE',
|
||||
'IL_COMPRESS_BIT', 'IL_ORIGIN_BIT', 'ilCloneCurImage',
|
||||
'ilRegisterFormat', 'ilSetWrite', 'ilActiveMipmap',
|
||||
'IL_NEU_QUANT_SAMPLE', 'IL_DONT_CARE',
|
||||
'IL_MAX_QUANT_INDEXS', 'IL_DXT_NO_COMP', 'IL_IMAGE_BPP',
|
||||
'ilBlit', 'IL_3DC', 'ilSetDuration', 'IL_TYPE_UNKNOWN',
|
||||
'IL_COMPRESS_NONE', 'mAlloc', 'ilActiveImage',
|
||||
'IL_PALETTE_SIZE', 'ilCreateSubImage', 'ilIsEnabled',
|
||||
'ilSetPixels', 'IL_FILE_MODE', 'ilTexImage',
|
||||
'IL_INVALID_ENUM', 'IL_COMPRESS_ZLIB', 'IL_SGI_RLE',
|
||||
'IL_TYPE_BIT', 'IL_BLIT_BLEND', 'IL_JPG_SAVE_FORMAT',
|
||||
'ilPushAttrib', 'IL_COULD_NOT_OPEN_FILE',
|
||||
'IL_FILE_OVERWRITE', 'IL_LIB_MNG_ERROR', 'IL_SAVEPROC',
|
||||
'IL_FORMAT_SPECIFIC_BIT', 'IL_QUANTIZATION_MODE',
|
||||
'ilSavePal', 'fSeekWProc', 'IL_SAVE_INTERLACED',
|
||||
'ilRegisterOrigin', 'IL_CUR_IMAGE', 'IL_WU_QUANT',
|
||||
'IL_LUMINANCE', 'fCloseWProc', 'IL_ICO', 'IL_IMAGE_OFFX',
|
||||
'IL_IMAGE_OFFY', 'IL_JASC_PAL', 'IL_IMAGE_PLANESIZE',
|
||||
'ilDeleteImage', 'IL_IMAGE_FORMAT', 'ilOriginFunc',
|
||||
'ilSetRead', 'IL_FORMAT_BIT', 'IL_ORIGIN_UPPER_LEFT',
|
||||
'IL_FILE_READ_ERROR', 'IL_NO_COMPRESSION',
|
||||
'IL_TIF_HOSTCOMPUTER_STRING', 'ilIsValidL', 'IL_SGI',
|
||||
'IL_LIB_JP2_ERROR', 'ilCopyImage', 'ilEnable',
|
||||
'ilRegisterType', 'IL_PCD_PICNUM', 'IL_SAVE_EXT',
|
||||
'IL_FILE_BIT', 'IL_BMP', 'IL_RAW', 'fEofProc',
|
||||
'ilRegisterPal', 'IL_BMP_RLE', 'IL_TGA_AUTHNAME_STRING',
|
||||
'IL_TIF_DOCUMENTNAME_STRING', 'IL_FORMAT_SET',
|
||||
'IL_TYPE_MODE', 'IL_SUB_LAYER', 'ilRemoveSave',
|
||||
'IL_LUMINANCE_ALPHA', 'IL_ILLEGAL_OPERATION', 'IL_EXR',
|
||||
'IL_DXT5', 'IL_CUT', 'IL_PAL_BGR32',
|
||||
'IL_PNG_AUTHNAME_STRING', 'IL_INTERLACE_MODE',
|
||||
'IL_IMAGE_TYPE', 'fSeekRProc', 'IL_CHEAD_HEADER_STRING',
|
||||
'fWriteProc', 'IL_PNG_TITLE_STRING', 'IL_COMPRESS_LZO',
|
||||
'ilSaveL', 'ilSetData', 'ilConvertImage', 'ILclampf',
|
||||
'ILint', 'IL_PALETTE_NUM_COLS', 'IL_INVALID_PARAM',
|
||||
'ilClearColour', 'ilTypeFromExt', 'fPutcProc',
|
||||
'IL_ALL_ATTRIB_BITS', 'IL_CHEAD', 'ilResetWrite',
|
||||
'IL_INVALID_CONVERSION', 'IL_LIF', 'IL_XPM', 'IL_ICNS',
|
||||
'IL_HALF', 'ilHint', 'fOpenWProc', 'ilIsImage',
|
||||
'IL_LIB_TIFF_ERROR', 'IL_ALPHA', 'IL_WDP', 'ilResetMemory',
|
||||
'IL_LOADPROC']
|
||||
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
import pygame
|
||||
from OpenGL.GL import *
|
||||
from OpenGL.GLU import *
|
||||
import DevIL
|
||||
|
||||
pygame.init()
|
||||
screen = pygame.display.set_mode((800, 600), pygame.OPENGL | pygame.DOUBLEBUF)
|
||||
pygame.display.set_caption('Devil Test')
|
||||
|
||||
glDisable(GL_DEPTH_TEST)
|
||||
glMatrixMode(GL_PROJECTION)
|
||||
glLoadIdentity()
|
||||
gluOrtho2D(0, 800, 0, 600)
|
||||
glMatrixMode(GL_MODELVIEW)
|
||||
glLoadIdentity()
|
||||
glEnable(GL_TEXTURE_2D)
|
||||
|
||||
DevIL.ilInit()
|
||||
DevIL.ilutRenderer(DevIL.ILUT_OPENGL)
|
||||
texture = DevIL.ilutGLLoadImage('devil.gif')
|
||||
glEnable(GL_TEXTURE_2D)
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)
|
||||
glBindTexture(GL_TEXTURE_2D, texture)
|
||||
|
||||
while 1:
|
||||
event = pygame.event.poll()
|
||||
if event.type == pygame.QUIT:
|
||||
break
|
||||
|
||||
glClear(GL_COLOR_BUFFER_BIT)
|
||||
|
||||
glBegin(GL_QUADS)
|
||||
glTexCoord2f(0, 0); glVertex2f(-400, -400);
|
||||
glTexCoord2f(5, 0); glVertex2f(1200, -400)
|
||||
glTexCoord2f(5, 5); glVertex2f(1200, 1000)
|
||||
glTexCoord2f(0, 5); glVertex2f(-400, 1000)
|
||||
glEnd()
|
||||
|
||||
glTranslatef(400, 300, 0)
|
||||
glRotatef(0.5, 0, 0, 1)
|
||||
glTranslatef(-400, -300, 0)
|
||||
|
||||
pygame.display.flip()
|
||||
@@ -0,0 +1,19 @@
|
||||
Versions of Python since 2.5 include ctypes, easily letting you interface directly with a Windows .dll or a Linux .so. Two .py files are included that let you do this: DevIL-Windows.py and DevIL-Linux.py.
|
||||
|
||||
For more information on ctypes, visit http://starship.python.net/crew/theller/ctypes/ .
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Here is the text for the old version of the DevIL Python wrapper (still included at the moment):
|
||||
|
||||
The test program require Pygame and PyOpenGL to work but
|
||||
you don't need them to use the library. You can find the
|
||||
needed package at:
|
||||
|
||||
Pygame - http://www.pygame.org
|
||||
PyOpenGL - http://pyopengl.sourceforge.net
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
from DevIL import *
|
||||
|
||||
ilInit()
|
||||
image = ilGenImages(1)
|
||||
ilBindImage(image)
|
||||
|
||||
ilLoadImage('devil.gif')
|
||||
|
||||
data = ilGetData()
|
||||
for i in range(len(data)):
|
||||
if data[i] == 255:
|
||||
data[i] = 0
|
||||
ilSetData(data)
|
||||
|
||||
ilSaveImage('test.tga')
|
||||
@@ -0,0 +1,86 @@
|
||||
Using DevIL from Visual Basic 6.0
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
The idea:
|
||||
|
||||
1) Start by installing the DLLs.
|
||||
|
||||
2) In your VB-project, add the .BAS files that you need as modules.
|
||||
|
||||
3) Just use the subs/functions and constants.
|
||||
|
||||
|
||||
|
||||
The buts:
|
||||
|
||||
1) DevIL's data types have been converted to native VB-types. This should generally
|
||||
work alright, except that
|
||||
|
||||
a) VB only knows unsigned bytes and signed integers/longs. So sometimes a value is
|
||||
defined as signed in VB where it is actually unsigned, and vice-versa.
|
||||
|
||||
b) DevIL's ILboolean type has been converted to byte. Don't treat these as VB
|
||||
booleans; only use them to compare to IL_TRUE and IL_FALSE.
|
||||
|
||||
2) Subs/functions that take a pointer to an array as parameter have been declared to
|
||||
take a ByRef Element As ElementType. You should define an array of ElementType (not
|
||||
array of variants!), and pass the first element to the function. The function will
|
||||
then access the whole array.
|
||||
|
||||
Example: Dim Names(2) As Long
|
||||
ilGenImages 3, Names(0) ' Fills all 3 elements of Names
|
||||
|
||||
(If you only use a single element, you do not really need an array. You can just
|
||||
pass a variable of the element type.)
|
||||
|
||||
The following subs/functions uses arrays of byte (binary data):
|
||||
|
||||
ilCopyPixels (Outputs data. Make sure your array is big enough!)
|
||||
ilIsValidL
|
||||
ilLoadL
|
||||
ilRegisterPal
|
||||
ilSetPixels
|
||||
ilTexImage
|
||||
|
||||
ilTexImage is a special case, because you might want to pass it a null-pointer
|
||||
instead of actual data. This cannot be done with the same VB declaration, so I've
|
||||
made ilTexImage0 for this purpose. Pass ilTexImage0 a zero as the last parameter.
|
||||
|
||||
Other functions that operate on arrays:
|
||||
|
||||
ilDeleteImages array of long (image "names")
|
||||
ilGenImages array of long (image "names")
|
||||
|
||||
3) Functions that return pointers have been converted to return a long. But they are
|
||||
effectively useless in VB. These are:
|
||||
|
||||
ilGetData
|
||||
ilGetPalette
|
||||
ilGetString
|
||||
iluErrorString
|
||||
iluGetString
|
||||
ilutGetString
|
||||
ilutGetPaddedData
|
||||
|
||||
4) ilutGetBmpInfo and all ilutD3D8-functions are not available.
|
||||
|
||||
5) You will generally not be able to implement the call-back functions in VB, because
|
||||
they must be able to handle pointers. But the call-back functions are only used if
|
||||
you want to modify the way DevIL loads and saves images, and usually you won't need
|
||||
to do that.
|
||||
|
||||
6) The old VB-examples supplied by Timo Heister don't seem to work. I've yet to write
|
||||
some new ones.
|
||||
|
||||
7) The VB-headers have only seen minimal testing. Bugs may lure on the unwary.
|
||||
(I'm especially nervous about iluGetImageInfo).
|
||||
|
||||
8) The header-files are created specificly for VB 6.0. I very much doubt that they will
|
||||
be of any use in VB.net.
|
||||
|
||||
|
||||
Feel free to send me any comments.
|
||||
|
||||
|
||||
Rune Kock (rune@vupti.com)
|
||||
@@ -0,0 +1,378 @@
|
||||
Attribute VB_Name = "Module1"
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' ImageLib Sources
|
||||
' Copyright (C) 2000-2002 by Denton Woods
|
||||
' Converted from il.h by Rune Kock (rune@vupti.com)
|
||||
' based on the earlier conversion by Timo Heister (Timo-Heister@gmx.de)
|
||||
' Last modified: 22 June 2002, based on il.h dated 06/22/2002
|
||||
'
|
||||
' Filename: il.bas
|
||||
'
|
||||
' Description: The main include file for DevIL
|
||||
'
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
' I've converted the types as follows. I have not dared use user-defined types, as I
|
||||
' don't know how VB handles them internally. This means, unfortunately, that the headers
|
||||
' are less informative than the original. So refer to il.h to see the original types.
|
||||
|
||||
' ILenum long
|
||||
' ILboolean byte
|
||||
' ILbitfield long
|
||||
' ILbyte byte
|
||||
' ILshort integer
|
||||
' ILint long
|
||||
' ILsizei long
|
||||
' ILubyte byte
|
||||
' ILushort integer
|
||||
' ILuint long
|
||||
' ILfloat single
|
||||
' ILclampf single
|
||||
' ILdouble double
|
||||
' ILclampd double
|
||||
' ILvoid n/a
|
||||
|
||||
Option Explicit
|
||||
|
||||
Public Const IL_FALSE = 0
|
||||
Public Const IL_TRUE = 1
|
||||
|
||||
|
||||
' Matches OpenGL's right now.
|
||||
Public Const IL_COLOUR_INDEX = &H1900
|
||||
Public Const IL_COLOR_INDEX = &H1900
|
||||
Public Const IL_RGB = &H1907
|
||||
Public Const IL_RGBA = &H1908
|
||||
Public Const IL_BGR = &H80E0
|
||||
Public Const IL_BGRA = &H80E1
|
||||
Public Const IL_LUMINANCE = &H1909
|
||||
|
||||
Public Const IL_BYTE = &H1400
|
||||
Public Const IL_UNSIGNED_BYTE = &H1401
|
||||
Public Const IL_SHORT = &H1402
|
||||
Public Const IL_UNSIGNED_SHORT = &H1403
|
||||
Public Const IL_INT = &H1404
|
||||
Public Const IL_UNSIGNED_INT = &H1405
|
||||
Public Const IL_FLOAT = &H1406
|
||||
Public Const IL_DOUBLE = &H140A
|
||||
|
||||
Public Const IL_VENDOR = &H1F00
|
||||
|
||||
|
||||
'
|
||||
' IL-specific public const's
|
||||
'
|
||||
|
||||
Public Const IL_VERSION_1_6_0 = 1
|
||||
Public Const IL_VERSION = 160
|
||||
Public Const IL_LOAD_EXT = &H1F01
|
||||
Public Const IL_SAVE_EXT = &H1F02
|
||||
|
||||
|
||||
' Attribute Bits
|
||||
Public Const IL_ORIGIN_BIT = &H1
|
||||
Public Const IL_FILE_BIT = &H2
|
||||
Public Const IL_PAL_BIT = &H4
|
||||
Public Const IL_FORMAT_BIT = &H8
|
||||
Public Const IL_TYPE_BIT = &H10
|
||||
Public Const IL_COMPRESS_BIT = &H20
|
||||
Public Const IL_LOADFAIL_BIT = &H40
|
||||
Public Const IL_FORMAT_SPECIFIC_BIT = &H80
|
||||
Public Const IL_ALL_ATTRIB_BITS = &HFFFFF
|
||||
|
||||
' Palette types
|
||||
Public Const IL_PAL_NONE = &H400
|
||||
Public Const IL_PAL_RGB24 = &H401
|
||||
Public Const IL_PAL_RGB32 = &H402
|
||||
Public Const IL_PAL_RGBA32 = &H403
|
||||
Public Const IL_PAL_BGR24 = &H404
|
||||
Public Const IL_PAL_BGR32 = &H405
|
||||
Public Const IL_PAL_BGRA32 = &H406
|
||||
|
||||
' Image types
|
||||
Public Const IL_TYPE_UNKNOWN = &H0
|
||||
Public Const IL_BMP = &H420
|
||||
Public Const IL_CUT = &H421
|
||||
Public Const IL_DOOM = &H422
|
||||
Public Const IL_DOOM_FLAT = &H423
|
||||
Public Const IL_ICO = &H424
|
||||
Public Const IL_JPG = &H425
|
||||
Public Const IL_LBM = &H426
|
||||
Public Const IL_PCD = &H427
|
||||
Public Const IL_PCX = &H428
|
||||
Public Const IL_PIC = &H429
|
||||
Public Const IL_PNG = &H42A
|
||||
Public Const IL_PNM = &H42B
|
||||
Public Const IL_SGI = &H42C
|
||||
Public Const IL_TGA = &H42D
|
||||
Public Const IL_TIF = &H42E
|
||||
Public Const IL_CHEAD = &H42F
|
||||
Public Const IL_RAW = &H430
|
||||
Public Const IL_MDL = &H431
|
||||
Public Const IL_WAL = &H432
|
||||
Public Const IL_OIL = &H433
|
||||
Public Const IL_LIF = &H434
|
||||
Public Const IL_MNG = &H435
|
||||
Public Const IL_JNG = &H435
|
||||
Public Const IL_GIF = &H436
|
||||
Public Const IL_DDS = &H437
|
||||
Public Const IL_DCX = &H438
|
||||
Public Const IL_PSD = &H439
|
||||
Public Const IL_EXIF = &H43A
|
||||
Public Const IL_PSP = &H43B
|
||||
Public Const IL_PIX = &H43C
|
||||
Public Const IL_PXR = &H43D
|
||||
Public Const IL_XPM = &H43E
|
||||
|
||||
Public Const IL_JASC_PAL = &H475
|
||||
|
||||
' Error Types
|
||||
Public Const IL_NO_ERROR = &H0
|
||||
Public Const IL_INVALID_ENUM = &H501
|
||||
Public Const IL_OUT_OF_MEMORY = &H502
|
||||
Public Const IL_FORMAT_NOT_SUPPORTED = &H503
|
||||
Public Const IL_INTERNAL_ERROR = &H504
|
||||
Public Const IL_INVALID_VALUE = &H505
|
||||
Public Const IL_ILLEGAL_OPERATION = &H506
|
||||
Public Const IL_ILLEGAL_FILE_VALUE = &H507
|
||||
Public Const IL_INVALID_FILE_HEADER = &H508
|
||||
Public Const IL_INVALID_PARAM = &H509
|
||||
Public Const IL_COULD_NOT_OPEN_FILE = &H50A
|
||||
Public Const IL_INVALID_EXTENSION = &H50B
|
||||
Public Const IL_FILE_ALREADY_EXISTS = &H50C
|
||||
Public Const IL_OUT_FORMAT_SAME = &H50D
|
||||
Public Const IL_STACK_OVERFLOW = &H50E
|
||||
Public Const IL_STACK_UNDERFLOW = &H50F
|
||||
Public Const IL_INVALID_CONVERSION = &H510
|
||||
Public Const IL_BAD_DIMENSIONS = &H511
|
||||
Public Const IL_FILE_READ_ERROR = &H512
|
||||
|
||||
Public Const IL_LIB_GIF_ERROR = &H5E1
|
||||
Public Const IL_LIB_JPEG_ERROR = &H5E2
|
||||
Public Const IL_LIB_PNG_ERROR = &H5E3
|
||||
Public Const IL_LIB_TIFF_ERROR = &H5E4
|
||||
Public Const IL_LIB_MNG_ERROR = &H5E5
|
||||
Public Const IL_UNKNOWN_ERROR = &H5FF
|
||||
|
||||
' Origin Definitions
|
||||
Public Const IL_ORIGIN_SET = &H600
|
||||
Public Const IL_ORIGIN_LOWER_LEFT = &H601
|
||||
Public Const IL_ORIGIN_UPPER_LEFT = &H602
|
||||
Public Const IL_ORIGIN_MODE = &H603
|
||||
|
||||
' Format and Type Mode Definitions
|
||||
Public Const IL_FORMAT_SET = &H610
|
||||
Public Const IL_FORMAT_MODE = &H611
|
||||
Public Const IL_TYPE_SET = &H612
|
||||
Public Const IL_TYPE_MODE = &H613
|
||||
|
||||
' File definitions
|
||||
Public Const IL_FILE_OVERWRITE = &H620
|
||||
Public Const IL_FILE_MODE = &H621
|
||||
|
||||
' Palette definitions
|
||||
Public Const IL_CONV_PAL = &H630
|
||||
|
||||
' Load fail definitions
|
||||
Public Const IL_DEFAULT_ON_FAIL = &H632
|
||||
|
||||
' Key colour definitions
|
||||
Public Const IL_USE_KEY_COLOUR = &H635
|
||||
Public Const IL_USE_KEY_COLOR = &H635
|
||||
|
||||
' Interlace definitions
|
||||
Public Const IL_SAVE_INTERLACED = &H639
|
||||
Public Const IL_INTERLACE_MODE = &H63A
|
||||
|
||||
' Quantization definitions
|
||||
Public Const IL_QUANTIZATION_MODE = &H640
|
||||
Public Const IL_WU_QUANT = &H641
|
||||
Public Const IL_NEU_QUANT = &H642
|
||||
Public Const IL_NEU_QUANT_SAMPLE = &H643
|
||||
|
||||
' Hints
|
||||
Public Const IL_FASTEST = &H660
|
||||
Public Const IL_LESS_MEM = &H661
|
||||
Public Const IL_DONT_CARE = &H662
|
||||
Public Const IL_MEM_SPEED_HINT = &H665
|
||||
Public Const IL_USE_COMPRESSION = &H666
|
||||
Public Const IL_NO_COMPRESSION = &H667
|
||||
Public Const IL_COMPRESSION_HINT = &H668
|
||||
|
||||
' Subimage types
|
||||
Public Const IL_SUB_NEXT = &H680
|
||||
Public Const IL_SUB_MIPMAP = &H681
|
||||
Public Const IL_SUB_LAYER = &H682
|
||||
|
||||
' Compression definitions (mostly for .oil)
|
||||
Public Const IL_COMPRESS_MODE = &H700
|
||||
Public Const IL_COMPRESS_NONE = &H701
|
||||
Public Const IL_COMPRESS_RLE = &H702
|
||||
Public Const IL_COMPRESS_LZO = &H703
|
||||
Public Const IL_COMPRESS_ZLIB = &H704
|
||||
|
||||
' File format-specific values
|
||||
Public Const IL_TGA_CREATE_STAMP = &H710
|
||||
Public Const IL_JPG_QUALITY = &H711
|
||||
Public Const IL_PNG_INTERLACE = &H712
|
||||
Public Const IL_TGA_RLE = &H713
|
||||
Public Const IL_BMP_RLE = &H714
|
||||
Public Const IL_SGI_RLE = &H715
|
||||
Public Const IL_TGA_ID_STRING = &H717
|
||||
Public Const IL_TGA_AUTHNAME_STRING = &H718
|
||||
Public Const IL_TGA_AUTHCOMMENT_STRING = &H719
|
||||
Public Const IL_PNG_AUTHNAME_STRING = &H71A
|
||||
Public Const IL_PNG_TITLE_STRING = &H71B
|
||||
Public Const IL_PNG_DESCRIPTION_STRING = &H71C
|
||||
Public Const IL_TIF_DESCRIPTION_STRING = &H71D
|
||||
Public Const IL_TIF_HOSTCOMPUTER_STRING = &H71E
|
||||
Public Const IL_TIF_DOCUMENTNAME_STRING = &H71F
|
||||
Public Const IL_TIF_AUTHNAME_STRING = &H720
|
||||
Public Const IL_JPG_SAVE_FORMAT = &H721
|
||||
Public Const IL_CHEAD_HEADER_STRING = &H722
|
||||
Public Const IL_PCD_PICNUM = &H723
|
||||
|
||||
' DXTC definitions
|
||||
Public Const IL_DXTC_FORMAT = &H705
|
||||
Public Const IL_DXT1 = &H706
|
||||
Public Const IL_DXT2 = &H707
|
||||
Public Const IL_DXT3 = &H708
|
||||
Public Const IL_DXT4 = &H709
|
||||
Public Const IL_DXT5 = &H70A
|
||||
Public Const IL_DXT_NO_COMP = &H70B
|
||||
Public Const IL_KEEP_DXTC_DATA = &H70C
|
||||
Public Const IL_DXTC_DATA_FORMAT = &H70D
|
||||
|
||||
' Cube map definitions
|
||||
Public Const IL_CUBEMAP_POSITIVEX = &H400
|
||||
Public Const IL_CUBEMAP_NEGATIVEX = &H800
|
||||
Public Const IL_CUBEMAP_POSITIVEY = &H1000
|
||||
Public Const IL_CUBEMAP_NEGATIVEY = &H2000
|
||||
Public Const IL_CUBEMAP_POSITIVEZ = &H4000
|
||||
Public Const IL_CUBEMAP_NEGATIVEZ = &H8000
|
||||
|
||||
' Values
|
||||
Public Const IL_VERSION_NUM = &HDE2
|
||||
Public Const IL_IMAGE_WIDTH = &HDE4
|
||||
Public Const IL_IMAGE_HEIGHT = &HDE5
|
||||
Public Const IL_IMAGE_DEPTH = &HDE6
|
||||
Public Const IL_IMAGE_SIZE_OF_DATA = &HDE7
|
||||
Public Const IL_IMAGE_BPP = &HDE8
|
||||
Public Const IL_IMAGE_BYTES_PER_PIXEL = &HDE8
|
||||
Public Const IL_IMAGE_BITS_PER_PIXEL = &HDE9
|
||||
Public Const IL_IMAGE_FORMAT = &HDEA
|
||||
Public Const IL_IMAGE_TYPE = &HDEB
|
||||
Public Const IL_PALETTE_TYPE = &HDEC
|
||||
Public Const IL_PALETTE_SIZE = &HDED
|
||||
Public Const IL_PALETTE_BPP = &HDEE
|
||||
Public Const IL_PALETTE_NUM_COLS = &HDEF
|
||||
Public Const IL_PALETTE_BASE_TYPE = &HDF0
|
||||
Public Const IL_NUM_IMAGES = &HDF1
|
||||
Public Const IL_NUM_MIPMAPS = &HDF2
|
||||
Public Const IL_NUM_LAYERS = &HDF3
|
||||
Public Const IL_ACTIVE_IMAGE = &HDF4
|
||||
Public Const IL_ACTIVE_MIPMAP = &HDF5
|
||||
Public Const IL_ACTIVE_LAYER = &HDF6
|
||||
Public Const IL_CUR_IMAGE = &HDF7
|
||||
Public Const IL_IMAGE_DURATION = &HDF8
|
||||
Public Const IL_IMAGE_PLANESIZE = &HDF9
|
||||
Public Const IL_IMAGE_BPC = &HDFA
|
||||
Public Const IL_IMAGE_OFFX = &HDFB
|
||||
Public Const IL_IMAGE_OFFY = &HDFC
|
||||
Public Const IL_IMAGE_CUBEFLAGS = &HDFD
|
||||
|
||||
Public Const IL_SEEK_SET = 0
|
||||
Public Const IL_SEEK_CUR = 1
|
||||
Public Const IL_SEEK_END = 2
|
||||
Public Const IL_EOF = -1
|
||||
|
||||
|
||||
' ImageLib Functions
|
||||
Public Declare Function ilActiveImage Lib "devil" (ByVal Number As Long) As Byte
|
||||
Public Declare Function ilActiveLayer Lib "devil" (ByVal Number As Long) As Byte
|
||||
Public Declare Function ilActiveMipmap Lib "devil" (ByVal Number As Long) As Byte
|
||||
Public Declare Function ilApplyPal Lib "devil" (ByVal FileName As String) As Byte
|
||||
Public Declare Function ilApplyProfile Lib "devil" (ByVal InProfile As String, ByVal OutProfile As String) As Byte
|
||||
Public Declare Sub ilBindImage Lib "devil" (ByVal Image As Long)
|
||||
Public Declare Function ilBlit Lib "devil" (ByVal Src As Long, ByVal DestX As Long, ByVal DestY As Long, ByVal DestZ As Long, ByVal SrcX As Long, ByVal SrcY As Long, ByVal SrcZ As Long, ByVal width As Long, ByVal height As Long, ByVal Depth As Long) As Byte
|
||||
Public Declare Sub ilClearColour Lib "devil" (ByVal Red As Single, ByVal Green As Single, ByVal Blue As Single, ByVal Alpha As Single)
|
||||
Public Declare Function ilClearImage Lib "devil" () As Byte
|
||||
Public Declare Function ilCloneCurImage Lib "devil" () As Long
|
||||
Public Declare Function ilCompressFunc Lib "devil" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilConvertImage Lib "devil" (ByVal DestFormat As Long, ByVal DestType As Long) As Byte
|
||||
Public Declare Function ilConvertPal Lib "devil" (ByVal DestFormat As Long) As Byte
|
||||
Public Declare Function ilCopyImage Lib "devil" (ByVal Src As Long) As Byte
|
||||
Public Declare Sub ilCopyPixels Lib "devil" (ByVal XOff As Long, ByVal YOff As Long, ByVal ZOff As Long, ByVal width As Long, ByVal height As Long, ByVal Depth As Long, ByVal OutFormat As Long, ByVal OutType As Long, ByRef OutData As Byte)
|
||||
Public Declare Function ilCreateSubImage Lib "devil" (ByVal IType As Long, ByVal Num As Long) As Long
|
||||
Public Declare Function ilDefaultImage Lib "devil" () As Boolean
|
||||
Public Declare Sub ilDeleteImages Lib "devil" (ByVal Num As Long, ByRef Images As Long)
|
||||
Public Declare Function ilDisable Lib "devil" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilEnable Lib "devil" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilFormatFunc Lib "devil" (ByVal Mode As Long) As Byte
|
||||
Public Declare Sub ilGenImages Lib "devil" (ByVal Num As Long, ByRef Images As Long)
|
||||
Public Declare Function ilGetBoolean Lib "devil" (ByVal Mode As Long) As Byte
|
||||
Public Declare Sub ilGetBooleanv Lib "devil" (ByVal Mode As Long, ByRef Param As Byte)
|
||||
Public Declare Function ilGetData Lib "devil" () As Long
|
||||
Public Declare Function ilGetError Lib "devil" () As Long
|
||||
Public Declare Function ilGetInteger Lib "devil" (ByVal Mode As Long) As Long
|
||||
Public Declare Sub ilGetIntegerv Lib "devil" (ByVal Mode As Long, ByRef Param As Long)
|
||||
Public Declare Function ilGetLumpPos Lib "devil" () As Long
|
||||
Public Declare Function ilGetPalette Lib "devil" () As Long
|
||||
Public Declare Function ilGetString Lib "devil" (StringName As Long) As Long
|
||||
Public Declare Sub ilHint Lib "devil" (ByVal Target As Long, ByVal Mode As Long)
|
||||
Public Declare Sub ilInit Lib "devil" ()
|
||||
Public Declare Function ilIsDisabled Lib "devil" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilIsEnabled Lib "devil" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilIsImage Lib "devil" (ByVal Image As Long) As Byte
|
||||
Public Declare Function ilIsValid Lib "devil" (ByVal IType As Long, ByVal FileName As String) As Byte
|
||||
Public Declare Function ilIsValidF Lib "devil" (ByVal IType As Long, ByVal File As Long) As Byte
|
||||
Public Declare Function ilIsValidL Lib "devil" (ByVal IType As Long, ByRef Lump As Byte, ByVal Size As Long) As Byte
|
||||
Public Declare Sub ilKeyColour Lib "devil" (ByVal Red As Single, ByVal Green As Single, ByVal Blue As Single, ByVal Alpha As Single)
|
||||
Public Declare Function ilLoad Lib "devil" (ByVal IType As Long, ByVal FileName As String) As Byte
|
||||
Public Declare Function ilLoadF Lib "devil" (ByVal IType As Long, ByVal File As Long) As Byte
|
||||
Public Declare Function ilLoadImage Lib "devil" (ByVal FileName As String) As Byte
|
||||
Public Declare Function ilLoadL Lib "devil" (ByVal IType As Long, ByRef Lump As Byte, ByVal Size As Long)
|
||||
Public Declare Function ilLoadPal Lib "devil" (ByVal FileName As String) As Byte
|
||||
Public Declare Function ilOriginFunc Lib "devil" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilOverlayImage Lib "devil" (ByVal Src As Long, ByVal XCoord As Long, ByVal YCoord As Long, ByVal ZCoord As Long) As Byte
|
||||
Public Declare Sub ilPopAttrib Lib "devil" ()
|
||||
Public Declare Sub ilPushAttrib Lib "devil" (ByVal Bits As Long)
|
||||
Public Declare Sub ilRegisterFormat Lib "devil" (ByVal Format As Long)
|
||||
Public Declare Function ilRegisterLoad Lib "devil" (ByVal Ext As String, ByVal LoadProc As Long) As Byte
|
||||
Public Declare Function ilRegisterMipNum Lib "devil" (ByVal Num As Long) As Byte
|
||||
Public Declare Function ilRegisterNumImages Lib "devil" (ByVal Num As Long) As Byte
|
||||
Public Declare Sub ilRegisterOrigin Lib "devil" (ByVal Origin As Long)
|
||||
Public Declare Sub ilRegisterPal Lib "devil" (ByRef Pal As Byte, ByVal Size As Long, ByVal IType As Long)
|
||||
Public Declare Function ilRegisterSave Lib "devil" (ByVal Ext As String, ByVal SaveProc As Long) As Byte
|
||||
Public Declare Sub ilRegisterType Lib "devil" (ByVal IType As Long)
|
||||
Public Declare Function ilRemoveLoad Lib "devil" (ByVal Ext As String) As Byte
|
||||
Public Declare Function ilRemoveSave Lib "devil" (ByVal Ext As String) As Byte
|
||||
Public Declare Sub ilResetRead Lib "devil" ()
|
||||
Public Declare Sub ilResetWrite Lib "devil" ()
|
||||
Public Declare Function ilSave Lib "devil" (ByVal IType As Long, ByVal FileName As String) As Byte
|
||||
Public Declare Function ilSaveF Lib "devil" (ByVal IType As Long, ByVal File As Long) As Byte
|
||||
Public Declare Function ilSaveImage Lib "devil" (ByVal FileName As String) As Byte
|
||||
Public Declare Function ilSaveL Lib "devil" (ByVal IType As Long, ByRef Lump As Byte, ByVal Size As Long) As Byte
|
||||
Public Declare Function ilSavePal Lib "devil" (ByVal FileName As String) As Byte
|
||||
Public Declare Function ilSetData Lib "devil" (ByRef Data As Byte) As Byte
|
||||
Public Declare Function ilSetDuration Lib "devil" (ByVal Duration As Long) As Byte
|
||||
Public Declare Sub ilSetInteger Lib "devil" (ByVal Mode As Long, ByVal Param As Long)
|
||||
Public Declare Sub ilSetPixels Lib "devil" (ByVal XOff As Long, ByVal YOff As Long, ByVal ZOff As Long, ByVal width As Long, ByVal height As Long, ByVal Depth As Long, ByVal Format As Long, ByVal IType As Long, ByRef Data As Byte)
|
||||
Public Declare Sub ilSetRead Lib "devil" (ByVal fOpenRProc As Long, ByVal fCloseRProc As Long, ByVal fEofProc As Long, ByVal fGetcProc As Long, ByVal fReadProc As Long, ByVal fSeekRProc As Long, ByVal fTellRProc As Long)
|
||||
Public Declare Sub ilSetString Lib "devil" (ByVal Mode As Long, ByVal FileName As String)
|
||||
Public Declare Sub ilSetWrite Lib "devil" (ByVal fOpenWProc As Long, ByVal fCloseWProc As Long, ByVal fPutcProc As Long, ByVal fSeekWProc As Long, ByVal fTellWProc As Long, ByVal fWriteProc As Long)
|
||||
Public Declare Function ilTexImage Lib "devil" (ByVal width As Long, ByVal height As Long, ByVal Depth As Long, ByVal Bpp As Byte, ByVal Format As Long, ByVal IType As Long, ByRef Data As Byte) As Byte
|
||||
Public Declare Function ilTexImage0 Lib "devil" Alias "ilTexImage" (ByVal width As Long, ByVal height As Long, ByVal Depth As Long, ByVal Bpp As Byte, ByVal Format As Long, ByVal IType As Long, ByVal DataPointer As Long) As Byte
|
||||
' used if you want to pass a NULL-pointer (zero).
|
||||
Public Declare Function ilTypeFunc Lib "devil" (ByVal Mode As Long) As Byte
|
||||
|
||||
Public Declare Function ilLoadData Lib "devil" (ByVal FileName As String, ByVal width As Long, ByVal height As Long, ByVal Depth As Long, ByVal Bpp As Byte) As Byte
|
||||
Public Declare Function ilLoadDataF Lib "devil" (ByVal File As Long, ByVal width As Long, ByVal height As Long, ByVal Depth As Long, ByVal Bpp As Byte) As Byte
|
||||
Public Declare Function ilLoadDataL Lib "devil" (ByRef Lump As Long, ByVal Size As Long, ByVal width As Long, ByVal height As Long, ByVal Depth As Long, ByVal Bpp As Byte) As Byte
|
||||
Public Declare Function ilSaveData Lib "devil" (ByVal FileName As String) As Byte
|
||||
|
||||
' For all those weirdos that spell "colour" without the 'u'.
|
||||
Public Declare Sub ilClearColor Lib "devil" Alias "ilClearColour" (ByVal Red As Single, ByVal Green As Single, ByVal Blue As Single, ByVal Alpha As Single)
|
||||
Public Declare Sub ilKeyColor Lib "devil" Alias "ilKeyColour" (ByVal Red As Single, ByVal Green As Single, ByVal Blue As Single, ByVal Alpha As Single)
|
||||
@@ -0,0 +1,162 @@
|
||||
Attribute VB_Name = "DevIL_manipulate"
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' ImageLib Utility Sources
|
||||
' Copyright (C) 2000-2002 by Denton Woods
|
||||
' Converted from ilu.h by Rune Kock (rune@vupti.com)
|
||||
' based on the earlier conversion by Timo Heister (Timo-Heister@gmx.de)
|
||||
' Last modified: 22 June 2002, based on ilu.h dated 06/22/2002
|
||||
'
|
||||
' Filename: ilu.bas
|
||||
'
|
||||
' Description: The main include file for ILU
|
||||
'
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
' I've converted the types as follows. I have not dared use user-defined types, as I
|
||||
' don't know how VB handles them internally. This means, unfortunately, that the headers
|
||||
' are less informative than the original. So refer to ilu.h to see the original types.
|
||||
|
||||
' ILenum long
|
||||
' ILboolean byte
|
||||
' ILbitfield long
|
||||
' ILbyte byte
|
||||
' ILshort integer
|
||||
' ILint long
|
||||
' ILsizei long
|
||||
' ILubyte byte
|
||||
' ILushort integer
|
||||
' ILuint long
|
||||
' ILfloat single
|
||||
' ILclampf single
|
||||
' ILdouble double
|
||||
' ILclampd double
|
||||
' ILvoid n/a
|
||||
' ILHANDLE long
|
||||
|
||||
|
||||
Option Explicit
|
||||
|
||||
Public Const ILU_VERSION_1_6_0 = 1
|
||||
Public Const ILU_VERSION = 160
|
||||
|
||||
|
||||
Public Const ILU_FILTER = &H2600
|
||||
Public Const ILU_NEAREST = &H2601
|
||||
Public Const ILU_LINEAR = &H2602
|
||||
Public Const ILU_BILINEAR = &H2603
|
||||
Public Const ILU_SCALE_BOX = &H2604
|
||||
Public Const ILU_SCALE_TRIANGLE = &H2605
|
||||
Public Const ILU_SCALE_BELL = &H2606
|
||||
Public Const ILU_SCALE_BSPLINE = &H2607
|
||||
Public Const ILU_SCALE_LANCZOS3 = &H2608
|
||||
Public Const ILU_SCALE_MITCHELL = &H2609
|
||||
|
||||
|
||||
' Error types
|
||||
Public Const ILU_INVALID_ENUM = &H501
|
||||
Public Const ILU_OUT_OF_MEMORY = &H502
|
||||
Public Const ILU_INTERNAL_ERROR = &H504
|
||||
Public Const ILU_INVALID_VALUE = &H505
|
||||
Public Const ILU_ILLEGAL_OPERATION = &H506
|
||||
Public Const ILU_INVALID_PARAM = &H509
|
||||
|
||||
|
||||
' Values
|
||||
Public Const ILU_PLACEMENT = &H700
|
||||
Public Const ILU_LOWER_LEFT = &H701
|
||||
Public Const ILU_LOWER_RIGHT = &H702
|
||||
Public Const ILU_UPPER_LEFT = &H703
|
||||
Public Const ILU_UPPER_RIGHT = &H704
|
||||
Public Const ILU_CENTER = &H705
|
||||
Public Const ILU_CONVOLUTION_MATRIX = &H710
|
||||
Public Const ILU_VERSION_NUM = &HDE2
|
||||
|
||||
|
||||
' Filters
|
||||
Public Const ILU_FILTER_BLUR = &H803
|
||||
Public Const ILU_FILTER_GAUSSIAN_3x3 = &H804
|
||||
Public Const ILU_FILTER_GAUSSIAN_5X5 = &H805
|
||||
Public Const ILU_FILTER_EMBOSS1 = &H807
|
||||
Public Const ILU_FILTER_EMBOSS2 = &H808
|
||||
Public Const ILU_FILTER_LAPLACIAN1 = &H80A
|
||||
Public Const ILU_FILTER_LAPLACIAN2 = &H80B
|
||||
Public Const ILU_FILTER_LAPLACIAN3 = &H80C
|
||||
Public Const ILU_FILTER_LAPLACIAN4 = &H80D
|
||||
Public Const ILU_FILTER_SHARPEN1 = &H80E
|
||||
Public Const ILU_FILTER_SHARPEN2 = &H80F
|
||||
Public Const ILU_FILTER_SHARPEN3 = &H810
|
||||
|
||||
|
||||
Public Type ILinfo
|
||||
ID As Long ' the image's id
|
||||
DataPointer As Long ' pointer to the image's data (useless in VB)
|
||||
width As Long ' the image's width
|
||||
height As Long ' the image's height
|
||||
Depth As Long ' the image's depth
|
||||
Bpp As Byte ' bytes per pixel (not bits) of the image
|
||||
SizeOfData As Long ' the total size of the data (in bytes)
|
||||
Format As Long ' image format (in IL enum style)
|
||||
IType As Long ' image type (in IL enum style)
|
||||
Origin As Long ' origin of the image
|
||||
PalettePointer As Long ' pointer to the image's palette (useless in VB)
|
||||
PalType As Long ' palette type
|
||||
PalSize As Long ' palette size
|
||||
NumNext As Long ' number of images following
|
||||
NumMips As Long ' number of mipmaps
|
||||
NumLayers As Long ' number of layers
|
||||
End Type
|
||||
|
||||
|
||||
' ImageLib Utility Functions
|
||||
Public Declare Function iluAlienify Lib "ilu" () As Byte
|
||||
Public Declare Function iluBitFilter1 Lib "ilu" () As Byte
|
||||
Public Declare Function iluBitFilter2 Lib "ilu" () As Byte
|
||||
Public Declare Function iluBitFilter3 Lib "ilu" () As Byte
|
||||
Public Declare Function iluBlurAvg Lib "ilu" (ByVal Iter As Long) As Byte
|
||||
Public Declare Function iluBlurGaussian Lib "ilu" (ByVal Iter As Long) As Byte
|
||||
Public Declare Function iluBuildMipmaps Lib "ilu" () As Byte
|
||||
Public Declare Function iluColoursUsed Lib "ilu" () As Long
|
||||
Public Declare Function iluCompareImage Lib "ilu" (ByVal Comp As Long) As Byte
|
||||
Public Declare Function iluContrast Lib "ilu" (ByVal Contrast As Single) As Byte
|
||||
Public Declare Function iluCrop Lib "ilu" (ByVal XOff As Long, ByVal YOff As Long, ByVal ZOff As Long, ByVal width As Long, ByVal height As Long, ByVal Depth As Long) As Byte
|
||||
Public Declare Sub iluDeleteImage Lib "ilu" (ByVal ID As Long)
|
||||
Public Declare Function iluEdgeDetectE Lib "ilu" () As Byte
|
||||
Public Declare Function iluEdgeDetectP Lib "ilu" () As Byte
|
||||
Public Declare Function iluEdgeDetectS Lib "ilu" () As Byte
|
||||
Public Declare Function iluEmboss Lib "ilu" () As Byte
|
||||
Public Declare Function iluEnlargeCanvas Lib "ilu" (ByVal width As Long, ByVal height As Long, ByVal Depth As Long) As Byte
|
||||
Public Declare Function iluEnlargeImage Lib "ilu" (ByVal XDim As Single, ByVal YDim As Single, ByVal ZDim As Single) As Byte
|
||||
Public Declare Function iluEqualize Lib "ilu" () As Byte
|
||||
Public Declare Function iluErrorString Lib "ilu" (ByVal Error As Long) As Long
|
||||
Public Declare Function iluFlipImage Lib "ilu" () As Byte
|
||||
Public Declare Function iluGammaCorrect Lib "ilu" (ByVal Gamma As Single) As Byte
|
||||
Public Declare Function iluGenImage Lib "ilu" () As Long
|
||||
Public Declare Sub iluGetImageInfo Lib "ilu" (ByRef Info As ILinfo)
|
||||
Public Declare Function iluGetInteger Lib "ilu" (ByVal Mode As Long) As Long
|
||||
Public Declare Sub iluGetIntegerv Lib "ilu" (ByVal Mode As Long, ByRef Param As Long)
|
||||
Public Declare Function iluGetString Lib "ilu" (ByVal StringName As Long) As Long
|
||||
Public Declare Sub iluImageParameter Lib "ilu" (ByVal PName As Long, ByVal Param As Long)
|
||||
Public Declare Sub iluInit Lib "ilu" ()
|
||||
Public Declare Function iluLoadImage Lib "ilu" (ByVal FileName As String) As Long
|
||||
Public Declare Function iluMirror Lib "ilu" () As Byte
|
||||
Public Declare Function iluNegative Lib "ilu" () As Byte
|
||||
Public Declare Function iluNoisify Lib "ilu" (ByVal Tolerance As Single) As Byte
|
||||
Public Declare Function iluPixelize Lib "ilu" (ByVal PixSize As Long) As Byte
|
||||
' Public Declare Sub iluRegionf Lib "ilu" (ByVal ULx As Single, ByVal ULy As Single, ByVal BRx As Single, ByVal BRy As Single)
|
||||
' Public Declare Sub iluRegioni Lib "ilu" (ByVal ULx As Long, ByVal ULy As Long, ByVal BRx As Long, ByVal BRy As Long)
|
||||
Public Declare Function iluReplaceColour Lib "ilu" (ByVal Red As Byte, ByVal Green As Byte, ByVal Blue As Byte, ByVal Tolerance As Single) As Byte
|
||||
Public Declare Function iluRotate Lib "ilu" (ByVal Angle As Single) As Byte
|
||||
Public Declare Function iluRotate3D Lib "ilu" (ByVal x As Single, ByVal y As Single, ByVal z As Single, ByVal Angle As Single) As Byte
|
||||
Public Declare Function iluSaturate1f Lib "ilu" (ByVal Saturation As Single) As Byte
|
||||
Public Declare Function iluSaturate4f Lib "ilu" (ByVal r As Single, ByVal g As Single, ByVal b As Single, ByVal Saturation As Single) As Byte
|
||||
Public Declare Function iluScale Lib "ilu" (ByVal width As Long, ByVal height As Long, ByVal Depth As Long) As Byte
|
||||
Public Declare Function iluScaleColours Lib "ilu" (ByVal r As Single, ByVal g As Single, ByVal b As Single) As Byte
|
||||
Public Declare Function iluSharpen Lib "ilu" (ByVal Factor As Single, ByVal Iter As Long) As Byte
|
||||
Public Declare Function iluSwapColours Lib "ilu" () As Byte
|
||||
Public Declare Function iluWave Lib "ilu" (ByVal Angle As Single) As Byte
|
||||
|
||||
Public Declare Function iluColorsUsed Lib "ilu" Alias "iluColoursUsed" () As Long
|
||||
Public Declare Function iluSwapColors Lib "ilu" Alias "iluSwapColours" () As Byte
|
||||
Public Declare Function iluReplaceColor Lib "ilu" Alias "iluReplaceColour" (ByVal Red As Byte, ByVal Green As Byte, ByVal Blue As Byte, ByVal Tolerance As Single) As Byte
|
||||
Public Declare Function iluScaleColors Lib "ilu" Alias "iluScaleColours" (ByVal r As Single, ByVal g As Single, ByVal b As Single) As Byte
|
||||
@@ -0,0 +1,156 @@
|
||||
Attribute VB_Name = "Module3"
|
||||
'-----------------------------------------------------------------------------
|
||||
'
|
||||
' ImageLib Utility Toolkit Sources
|
||||
' Copyright (C) 2000-2002 by Denton Woods
|
||||
' Converted from ilut.h by Rune Kock (rune@vupti.com)
|
||||
' based on the earlier conversion by Timo Heister (Timo-Heister@gmx.de)
|
||||
' Last modified: 22 June 2002, based on ilut.h dated 06/22/2002
|
||||
'
|
||||
' Filename: ilut.bas
|
||||
'
|
||||
' Description: The main include file for ILUT
|
||||
'
|
||||
'-----------------------------------------------------------------------------
|
||||
|
||||
' I've converted the types as follows. I have not dared use user-defined types, as I
|
||||
' don't know how VB handles them internally. This means, unfortunately, that the headers
|
||||
' are less informative than the original. So refer to ilut.h to see the original types.
|
||||
|
||||
' ILenum long
|
||||
' ILboolean byte
|
||||
' ILbitfield long
|
||||
' ILbyte byte
|
||||
' ILshort integer
|
||||
' ILint long
|
||||
' ILsizei long
|
||||
' ILubyte byte
|
||||
' ILushort integer
|
||||
' ILuint long
|
||||
' ILfloat single
|
||||
' ILclampf single
|
||||
' ILdouble double
|
||||
' ILclampd double
|
||||
' ILvoid n/a
|
||||
' <all Windows handles> integer
|
||||
|
||||
|
||||
Option Explicit
|
||||
|
||||
Public Const ILUT_VERSION_1_6_0 = 1
|
||||
Public Const ILUT_VERSION = 160
|
||||
|
||||
|
||||
' Attribute Bits
|
||||
Public Const ILUT_OPENGL_BIT = &H1
|
||||
Public Const ILUT_D3D_BIT = &H2
|
||||
Public Const ILUT_ALL_ATTRIB_BITS = &HFFFFF
|
||||
|
||||
|
||||
' Error Types
|
||||
Public Const ILUT_INVALID_ENUM = &H501
|
||||
Public Const ILUT_OUT_OF_MEMORY = &H502
|
||||
Public Const ILUT_INVALID_VALUE = &H505
|
||||
Public Const ILUT_ILLEGAL_OPERATION = &H506
|
||||
Public Const ILUT_INVALID_PARAM = &H509
|
||||
Public Const ILUT_COULD_NOT_OPEN_FILE = &H50A
|
||||
Public Const ILUT_STACK_OVERFLOW = &H50E
|
||||
Public Const ILUT_STACK_UNDERFLOW = &H50F
|
||||
Public Const ILUT_NOT_SUPPORTED = &H550
|
||||
|
||||
|
||||
' State Definitions
|
||||
Public Const ILUT_PALETTE_MODE = &H600
|
||||
Public Const ILUT_OPENGL_CONV = &H610
|
||||
Public Const ILUT_D3D_MIPLEVELS = &H620
|
||||
Public Const ILUT_MAXTEX_WIDTH = &H630
|
||||
Public Const ILUT_MAXTEX_HEIGHT = &H631
|
||||
Public Const ILUT_MAXTEX_DEPTH = &H632
|
||||
Public Const ILUT_GL_USE_S3TC = &H634
|
||||
Public Const ILUT_D3D_USE_DXTC = &H634
|
||||
Public Const ILUT_GL_GEN_S3TC = &H635
|
||||
Public Const ILUT_D3D_GEN_DXTC = &H635
|
||||
Public Const ILUT_S3TC_FORMAT = &H705
|
||||
Public Const ILUT_DXTC_FORMAT = &H706
|
||||
|
||||
|
||||
' Values
|
||||
Public Const ILUT_VERSION_NUM = &HDE2
|
||||
|
||||
|
||||
' ImageLib Utility Toolkit Functions
|
||||
Public Declare Function ilutDisable Lib "ilut" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilutEnable Lib "ilut" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilutGetBoolean Lib "ilut" (ByVal Mode As Long) As Byte
|
||||
Public Declare Sub ilutGetBooleanv Lib "ilut" (ByVal Mode As Long, ByRef Param As Byte)
|
||||
Public Declare Function ilutGetInteger Lib "ilut" (ByVal Mode As Long) As Long
|
||||
Public Declare Sub ilutGetIntegerv Lib "ilut" (ByVal Mode As Long, ByRef Param As Long)
|
||||
Public Declare Function ilutGetString Lib "ilut" (ByVal StringName As Long) As Long
|
||||
Public Declare Sub ilutInit Lib "ilut" ()
|
||||
Public Declare Function ilutIsDisabled Lib "ilut" (ByVal Mode As Long) As Byte
|
||||
Public Declare Function ilutIsEnabled Lib "ilut" (ByVal Mode As Long) As Byte
|
||||
Public Declare Sub ilutPopAttrib Lib "ilut" ()
|
||||
Public Declare Sub ilutPushAttrib Lib "ilut" (ByVal Bits As Long)
|
||||
Public Declare Sub ilutSetInteger Lib "ilut" (ByVal Mode As Long, ByVal Param As Long)
|
||||
|
||||
|
||||
Public Const ILUT_USE_ALLEGRO = False
|
||||
Public Const ILUT_USE_WIN32 = True
|
||||
Public Const ILUT_USE_OPENGL = True
|
||||
|
||||
|
||||
' The different rendering api's...more to be added later?
|
||||
Public Const ILUT_OPENGL = 0
|
||||
Public Const ILUT_ALLEGRO = 1
|
||||
Public Const ILUT_WIN32 = 2
|
||||
|
||||
|
||||
Public Declare Function ilutRenderer Lib "ilut" (ByVal Renderer As Long) As Byte
|
||||
|
||||
|
||||
' ImageLib Utility Toolkit's OpenGL Functions
|
||||
Public Declare Function ilutGLBindTexImage Lib "ilut" () As Long
|
||||
Public Declare Function ilutGLBindMipmaps Lib "ilut" () As Long
|
||||
Public Declare Function ilutGLBuildMipmaps Lib "ilut" () As Byte
|
||||
Public Declare Function ilutGLLoadImage Lib "ilut" (ByVal FileName As String) As Long
|
||||
Public Declare Function ilutGLScreen Lib "ilut" () As Byte
|
||||
Public Declare Function ilutGLScreenie Lib "ilut" () As Byte
|
||||
Public Declare Function ilutGLSaveImage Lib "ilut" (ByVal FileName As String, ByVal TexID As Long) As Byte
|
||||
Public Declare Function ilutGLSetTex Lib "ilut" (ByVal TexID As Long) As Byte
|
||||
Public Declare Function ilutGLTexImage Lib "ilut" (ByVal Level As Long) As Byte
|
||||
|
||||
|
||||
' Allegro and BeOS are probably irrelevant for VB, so they are left out...
|
||||
|
||||
|
||||
' ImageLib Utility Toolkit's Win32 (DirectX/GDI) Functions
|
||||
Public Declare Function ilutConvertToHBitmap Lib "ilut" (ByVal hDC As Integer) As Integer
|
||||
' Public Declare Sub ilutGetBmpInfo Lib "ilut" (ByRef Info As BITMAPINFO)
|
||||
' (The BITMAPINFO structure can probably not be ported to VB).
|
||||
Public Declare Function ilutGetHPal Lib "ilut" () As Integer
|
||||
Public Declare Function ilutGetPaddedData Lib "ilut" () As Long
|
||||
Public Declare Function ilutGetWinClipboard Lib "ilut" () As Byte
|
||||
Public Declare Function ilutLoadResource Lib "ilut" (ByVal hInst As Integer, ByVal ID As Long, ByVal ResourceType As String, ByVal IType As Long) As Byte
|
||||
Public Declare Function ilutSetHBitmap Lib "ilut" (ByVal Bitmap As Integer) As Byte
|
||||
Public Declare Function ilutSetHPal Lib "ilut" (ByVal Pal As Integer) As Byte
|
||||
Public Declare Function ilutSetWinClipboard Lib "ilut" () As Byte
|
||||
Public Declare Function ilutWinLoadImage Lib "ilut" (ByVal FileName As String, ByVal hDC As Integer) As Integer
|
||||
Public Declare Function ilutWinLoadUrl Lib "ilut" (ByVal Url As String) As Byte
|
||||
Public Declare Function ilutWinSaveImage Lib "ilut" (ByVal FileName As String, ByVal Bitmap As Integer) As Byte
|
||||
|
||||
' The DirectX 8 functions below might not be compiled into the DLL, so I've not
|
||||
' bothered figuring out whether VB can be fooled into handling all those pointers.
|
||||
' ILAPI ILvoid ILAPIENTRY ilutD3D8MipFunc(ILuint NumLevels);
|
||||
' ILAPI IDirect3DTexture8* ILAPIENTRY ilutD3D8Texture(IDirect3DDevice8 *Device);
|
||||
' ILAPI IDirect3DVolumeTexture8* ILAPIENTRY ilutD3D8VolumeTexture(IDirect3DDevice8 *Device);
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8TexFromFile(IDirect3DDevice8 *Device, char *FileName, IDirect3DTexture8 **Texture);
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8VolTexFromFile(IDirect3DDevice8 *Device, char *FileName, IDirect3DVolumeTexture8 **Texture);
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8TexFromFileInMemory(IDirect3DDevice8 *Device, ILvoid *Lump, ILuint Size, IDirect3DTexture8 **Texture);
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8VolTexFromFileInMemory(IDirect3DDevice8 *Device, ILvoid *Lump, ILuint Size, IDirect3DVolumeTexture8 **Texture);
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8TexFromFileHandle(IDirect3DDevice8 *Device, ILHANDLE File, IDirect3DTexture8 **Texture);
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8VolTexFromFileHandle(IDirect3DDevice8 *Device, ILHANDLE File, IDirect3DVolumeTexture8 **Texture);
|
||||
' // These two are not tested yet.
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8TexFromResource(IDirect3DDevice8 *Device, HMODULE SrcModule, char *SrcResource, IDirect3DTexture8 **Texture);
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8VolTexFromResource(IDirect3DDevice8 *Device, HMODULE SrcModule, char *SrcResource, IDirect3DVolumeTexture8 **Texture);
|
||||
'
|
||||
' ILAPI ILboolean ILAPIENTRY ilutD3D8LoadSurface(IDirect3DDevice8 *Device, IDirect3DSurface8 *Surface);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,809 @@
|
||||
# Microsoft eMbedded Visual Tools Project File - Name="ILUT" - Package Owner=<4>
|
||||
# Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (WCE x86em) Dynamic-Link Library" 0x7f02
|
||||
# TARGTYPE "Win32 (WCE SH3) Dynamic-Link Library" 0x8102
|
||||
# TARGTYPE "Win32 (WCE ARM) Dynamic-Link Library" 0x8502
|
||||
# TARGTYPE "Win32 (WCE MIPS) Dynamic-Link Library" 0x8202
|
||||
|
||||
CFG=ILUT - Win32 (WCE MIPS) 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 "ILUT.VCN".
|
||||
!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 "ILUT.VCN" CFG="ILUT - Win32 (WCE MIPS) Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "ILUT - Win32 (WCE MIPS) Release" (based on "Win32 (WCE MIPS) Dynamic-Link Library")
|
||||
!MESSAGE "ILUT - Win32 (WCE MIPS) Debug" (based on "Win32 (WCE MIPS) Dynamic-Link Library")
|
||||
!MESSAGE "ILUT - Win32 (WCE SH3) Release" (based on "Win32 (WCE SH3) Dynamic-Link Library")
|
||||
!MESSAGE "ILUT - Win32 (WCE SH3) Debug" (based on "Win32 (WCE SH3) Dynamic-Link Library")
|
||||
!MESSAGE "ILUT - Win32 (WCE ARM) Release" (based on "Win32 (WCE ARM) Dynamic-Link Library")
|
||||
!MESSAGE "ILUT - Win32 (WCE ARM) Debug" (based on "Win32 (WCE ARM) Dynamic-Link Library")
|
||||
!MESSAGE "ILUT - Win32 (WCE x86em) Release" (based on "Win32 (WCE x86em) Dynamic-Link Library")
|
||||
!MESSAGE "ILUT - Win32 (WCE x86em) Debug" (based on "Win32 (WCE x86em) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
# PROP ATL_Project 2
|
||||
|
||||
!IF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "MIPSRel"
|
||||
# PROP BASE Intermediate_Dir "MIPSRel"
|
||||
# PROP BASE CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "MIPSRel"
|
||||
# PROP Intermediate_Dir "MIPSRel"
|
||||
# PROP CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
RSC=rc.exe
|
||||
# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r
|
||||
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r
|
||||
CPP=clmips.exe
|
||||
# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Oxs /M$(CECrtMT) /c
|
||||
# ADD CPP /nologo /W3 /I "..\..\..\src-ILUT\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Oxs /M$(CECrtMT) /c
|
||||
MTL=midl.exe
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS
|
||||
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "MIPSDbg"
|
||||
# PROP BASE Intermediate_Dir "MIPSDbg"
|
||||
# PROP BASE CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "MIPSDbg"
|
||||
# PROP Intermediate_Dir "MIPSDbg"
|
||||
# PROP CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
RSC=rc.exe
|
||||
# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r
|
||||
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r
|
||||
CPP=clmips.exe
|
||||
# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /M$(CECrtMTDebug) /c
|
||||
# ADD CPP /nologo /W3 /Zi /Od /I "..\..\..\src-ILUT\include" /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /M$(CECrtMTDebug) /c
|
||||
MTL=midl.exe
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS
|
||||
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "SH3Rel"
|
||||
# PROP BASE Intermediate_Dir "SH3Rel"
|
||||
# PROP BASE CPU_ID "{D6519020-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "SH3Rel"
|
||||
# PROP Intermediate_Dir "SH3Rel"
|
||||
# PROP CPU_ID "{D6519020-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
RSC=rc.exe
|
||||
# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "SHx" /d "SH3" /d "_SH3_" /r
|
||||
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "SHx" /d "SH3" /d "_SH3_" /r
|
||||
CPP=shcl.exe
|
||||
# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Oxs /M$(CECrtMT) /c
|
||||
# ADD CPP /nologo /W3 /I "..\..\..\src-ILUT\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Oxs /M$(CECrtMT) /c
|
||||
MTL=midl.exe
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH3
|
||||
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH3
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "SH3Dbg"
|
||||
# PROP BASE Intermediate_Dir "SH3Dbg"
|
||||
# PROP BASE CPU_ID "{D6519020-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "SH3Dbg"
|
||||
# PROP Intermediate_Dir "SH3Dbg"
|
||||
# PROP CPU_ID "{D6519020-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
RSC=rc.exe
|
||||
# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "SHx" /d "SH3" /d "_SH3_" /r
|
||||
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "SHx" /d "SH3" /d "_SH3_" /r
|
||||
CPP=shcl.exe
|
||||
# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /M$(CECrtMTDebug) /c
|
||||
# ADD CPP /nologo /W3 /Zi /Od /I "..\..\..\src-ILUT\include" /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /M$(CECrtMTDebug) /c
|
||||
MTL=midl.exe
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH3
|
||||
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH3
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "ARMRel"
|
||||
# PROP BASE Intermediate_Dir "ARMRel"
|
||||
# PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "ARMRel"
|
||||
# PROP Intermediate_Dir "ARMRel"
|
||||
# PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
RSC=rc.exe
|
||||
# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r
|
||||
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r
|
||||
CPP=clarm.exe
|
||||
# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Oxs /M$(CECrtMT) /c
|
||||
# ADD CPP /nologo /W3 /I "..\..\..\src-ILUT\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Oxs /M$(CECrtMT) /c
|
||||
MTL=midl.exe
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
|
||||
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "ARMDbg"
|
||||
# PROP BASE Intermediate_Dir "ARMDbg"
|
||||
# PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "ARMDbg"
|
||||
# PROP Intermediate_Dir "ARMDbg"
|
||||
# PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
RSC=rc.exe
|
||||
# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r
|
||||
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r
|
||||
CPP=clarm.exe
|
||||
# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /M$(CECrtMTDebug) /c
|
||||
# ADD CPP /nologo /W3 /Zi /Od /I "..\..\..\src-ILUT\include" /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /M$(CECrtMTDebug) /c
|
||||
MTL=midl.exe
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
|
||||
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "X86EMRel"
|
||||
# PROP BASE Intermediate_Dir "X86EMRel"
|
||||
# PROP BASE CPU_ID "{D6518FF4-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "X86EMRel"
|
||||
# PROP Intermediate_Dir "X86EMRel"
|
||||
# PROP CPU_ID "{D6518FF4-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
RSC=rc.exe
|
||||
# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
|
||||
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
|
||||
CPP=cl.exe
|
||||
# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Gz /Oxs /c
|
||||
# ADD CPP /nologo /W3 /I "..\..\..\src-ILUT\include" /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Gz /Oxs /c
|
||||
MTL=midl.exe
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /stack:0x10000,0x1000 /dll /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /windowsce:emulation /MACHINE:IX86
|
||||
# ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /stack:0x10000,0x1000 /dll /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /windowsce:emulation /MACHINE:IX86
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "X86EMDbg"
|
||||
# PROP BASE Intermediate_Dir "X86EMDbg"
|
||||
# PROP BASE CPU_ID "{D6518FF4-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "X86EMDbg"
|
||||
# PROP Intermediate_Dir "X86EMDbg"
|
||||
# PROP CPU_ID "{D6518FF4-710F-11D3-99F2-00105A0DF099}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
RSC=rc.exe
|
||||
# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
|
||||
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
|
||||
CPP=cl.exe
|
||||
# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Gz /c
|
||||
# ADD CPP /nologo /W3 /Zi /Od /I "..\..\..\src-ILUT\include" /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "_USRDLL" /D "ILUT_EXPORTS" /YX /Gz /c
|
||||
MTL=midl.exe
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /stack:0x10000,0x1000 /dll /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /windowsce:emulation /MACHINE:IX86
|
||||
# ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /stack:0x10000,0x1000 /dll /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /windowsce:emulation /MACHINE:IX86
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "ILUT - Win32 (WCE MIPS) Release"
|
||||
# Name "ILUT - Win32 (WCE MIPS) Debug"
|
||||
# Name "ILUT - Win32 (WCE SH3) Release"
|
||||
# Name "ILUT - Win32 (WCE SH3) Debug"
|
||||
# Name "ILUT - Win32 (WCE ARM) Release"
|
||||
# Name "ILUT - Win32 (WCE ARM) Debug"
|
||||
# Name "ILUT - Win32 (WCE x86em) Release"
|
||||
# Name "ILUT - Win32 (WCE x86em) Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\..\..\src-ILUT\src\ilut_internal.c"
|
||||
|
||||
!IF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Release"
|
||||
|
||||
DEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Debug"
|
||||
|
||||
DEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Release"
|
||||
|
||||
DEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Debug"
|
||||
|
||||
DEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Release"
|
||||
|
||||
DEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"il\config.h"\
|
||||
{$(INCLUDE)}"il\il.h"\
|
||||
{$(INCLUDE)}"il\ilu.h"\
|
||||
{$(INCLUDE)}"il\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Debug"
|
||||
|
||||
DEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"il\config.h"\
|
||||
{$(INCLUDE)}"il\il.h"\
|
||||
{$(INCLUDE)}"il\ilu.h"\
|
||||
{$(INCLUDE)}"il\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Release"
|
||||
|
||||
DEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Debug"
|
||||
|
||||
DEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\..\..\src-ILUT\src\ilut_main.c"
|
||||
|
||||
!IF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Release"
|
||||
|
||||
DEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Debug"
|
||||
|
||||
DEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Release"
|
||||
|
||||
DEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Debug"
|
||||
|
||||
DEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Release"
|
||||
|
||||
DEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"il\config.h"\
|
||||
{$(INCLUDE)}"il\il.h"\
|
||||
{$(INCLUDE)}"il\ilu.h"\
|
||||
{$(INCLUDE)}"il\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Debug"
|
||||
|
||||
DEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"il\config.h"\
|
||||
{$(INCLUDE)}"il\il.h"\
|
||||
{$(INCLUDE)}"il\ilu.h"\
|
||||
{$(INCLUDE)}"il\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Release"
|
||||
|
||||
DEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Debug"
|
||||
|
||||
DEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_M=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\..\..\src-ILUT\src\ilut_states.c"
|
||||
|
||||
!IF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Release"
|
||||
|
||||
DEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_opengl.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_states.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Debug"
|
||||
|
||||
DEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_opengl.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_states.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Release"
|
||||
|
||||
DEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_opengl.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_states.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Debug"
|
||||
|
||||
DEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_opengl.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_states.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Release"
|
||||
|
||||
DEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_opengl.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_states.h"\
|
||||
{$(INCLUDE)}"il\config.h"\
|
||||
{$(INCLUDE)}"il\il.h"\
|
||||
{$(INCLUDE)}"il\ilu.h"\
|
||||
{$(INCLUDE)}"il\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Debug"
|
||||
|
||||
DEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_opengl.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_states.h"\
|
||||
{$(INCLUDE)}"il\config.h"\
|
||||
{$(INCLUDE)}"il\il.h"\
|
||||
{$(INCLUDE)}"il\ilu.h"\
|
||||
{$(INCLUDE)}"il\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Release"
|
||||
|
||||
DEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_opengl.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_states.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Debug"
|
||||
|
||||
DEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_opengl.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_states.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_S=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\..\..\src-ILUT\src\ilut_win32.c"
|
||||
|
||||
!IF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Release"
|
||||
|
||||
DEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE MIPS) Debug"
|
||||
|
||||
DEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Release"
|
||||
|
||||
DEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE SH3) Debug"
|
||||
|
||||
DEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Release"
|
||||
|
||||
DEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"il\config.h"\
|
||||
{$(INCLUDE)}"il\il.h"\
|
||||
{$(INCLUDE)}"il\ilu.h"\
|
||||
{$(INCLUDE)}"il\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE ARM) Debug"
|
||||
|
||||
DEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"il\config.h"\
|
||||
{$(INCLUDE)}"il\il.h"\
|
||||
{$(INCLUDE)}"il\ilu.h"\
|
||||
{$(INCLUDE)}"il\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Release"
|
||||
|
||||
DEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "ILUT - Win32 (WCE x86em) Debug"
|
||||
|
||||
DEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\ilut_error.h"\
|
||||
"..\..\..\src-ILUT\include\ilut_internal.h"\
|
||||
{$(INCLUDE)}"IL\il.h"\
|
||||
{$(INCLUDE)}"IL\ilu.h"\
|
||||
{$(INCLUDE)}"IL\ilut.h"\
|
||||
|
||||
NODEP_CPP_ILUT_W=\
|
||||
"..\..\..\src-ILUT\include\config.h"\
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\include\il\ilut.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\..\..\src-ILUT\include\ilut_error.h"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\..\..\src-ILUT\include\ilut_internal.h"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\..\..\src-ILUT\include\ilut_states.h"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\..\..\src-ILUT\src\resource.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
|
||||
# End Target
|
||||
# End Project
|
||||
@@ -0,0 +1,83 @@
|
||||
Microsoft eMbedded Visual Tools Workspace File, Format Version 3.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "DevIL"=.\IL\IL.vcp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "ILU"=.\ILU\ILU.VCP - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name DevIL
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "ILUT"=.\ILUT\ILUT.VCP - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name DevIL
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name ILU
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "Test WinCE"=".\Test WinCE\Test WinCE.vcp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name DevIL
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name ILU
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name ILUT
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,125 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IL", "IL\IL.vcproj", "{90BA58CA-EF30-492C-BE9F-4164E4616ED4}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILU", "ILU\ILU.vcproj", "{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4} = {90BA58CA-EF30-492C-BE9F-4164E4616ED4}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ILUT", "ILUT\ILUT.vcproj", "{FE7A3430-01D7-4821-AE97-BD882D7C00DE}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4} = {90BA58CA-EF30-492C-BE9F-4164E4616ED4}
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE} = {8F8666D6-C5C4-4DC8-942E-066B09E90DEE}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Pocket PC 2003 (ARMV4) = Debug|Pocket PC 2003 (ARMV4)
|
||||
Debug|Smartphone 2003 (ARMV4) = Debug|Smartphone 2003 (ARMV4)
|
||||
Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
Debug|Windows Mobile 6 Professional SDK (ARMV4I) = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
Release|Pocket PC 2003 (ARMV4) = Release|Pocket PC 2003 (ARMV4)
|
||||
Release|Smartphone 2003 (ARMV4) = Release|Smartphone 2003 (ARMV4)
|
||||
Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
Release|Windows Mobile 6 Professional SDK (ARMV4I) = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Pocket PC 2003 (ARMV4).Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Smartphone 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Smartphone 2003 (ARMV4).Build.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Smartphone 2003 (ARMV4).Deploy.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Pocket PC 2003 (ARMV4).Deploy.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Smartphone 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Smartphone 2003 (ARMV4).Build.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Smartphone 2003 (ARMV4).Deploy.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{90BA58CA-EF30-492C-BE9F-4164E4616ED4}.Release|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Pocket PC 2003 (ARMV4).Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Smartphone 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Smartphone 2003 (ARMV4).Build.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Smartphone 2003 (ARMV4).Deploy.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Pocket PC 2003 (ARMV4).Deploy.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Smartphone 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Smartphone 2003 (ARMV4).Build.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Smartphone 2003 (ARMV4).Deploy.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{8F8666D6-C5C4-4DC8-942E-066B09E90DEE}.Release|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Pocket PC 2003 (ARMV4).Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Smartphone 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Smartphone 2003 (ARMV4).Build.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Smartphone 2003 (ARMV4).Deploy.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Pocket PC 2003 (ARMV4).Deploy.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Smartphone 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Smartphone 2003 (ARMV4).Build.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Smartphone 2003 (ARMV4).Deploy.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{FE7A3430-01D7-4821-AE97-BD882D7C00DE}.Release|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,471 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
activeBuildConfigurationName = Development;
|
||||
activeTarget = A36D10E8080E8E5D0012BB8B /* Configure */;
|
||||
addToTargets = (
|
||||
A3009514080E7F44003DEA28 /* libILU */,
|
||||
);
|
||||
codeSenseManager = EACAFE600E7936340024FAE4 /* Code sense */;
|
||||
perUserDictionary = {
|
||||
PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
341,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
20,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
PBXFileDataSource_Target_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXConfiguration.PBXFileTableDataSource3.PBXSymbolsDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXSymbolsDataSource_SymbolNameID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
16,
|
||||
200,
|
||||
50,
|
||||
281,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXSymbolsDataSource_SymbolTypeIconID,
|
||||
PBXSymbolsDataSource_SymbolNameID,
|
||||
PBXSymbolsDataSource_SymbolTypeID,
|
||||
PBXSymbolsDataSource_ReferenceNameID,
|
||||
);
|
||||
};
|
||||
PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
301,
|
||||
60,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXTargetDataSource_PrimaryAttribute,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 254793687;
|
||||
PBXWorkspaceStateSaveDate = 254793687;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
EACAFF130E793EC20024FAE4 /* PBXTextBookmark */ = EACAFF130E793EC20024FAE4 /* PBXTextBookmark */;
|
||||
EACAFF150E793EC20024FAE4 /* PBXTextBookmark */ = EACAFF150E793EC20024FAE4 /* PBXTextBookmark */;
|
||||
EAF51F470F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F470F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F480F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F480F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F490F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F490F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F4A0F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F4A0F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F4B0F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F4B0F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F4C0F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F4C0F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F4E0F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F4E0F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F4F0F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F4F0F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F500F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F500F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F510F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F510F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F520F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F520F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F530F2FCF1E00264BE8 /* PBXTextBookmark */ = EAF51F530F2FCF1E00264BE8 /* PBXTextBookmark */;
|
||||
EAF51F6C0F2FD7F000264BE8 /* PBXTextBookmark */ = EAF51F6C0F2FD7F000264BE8 /* PBXTextBookmark */;
|
||||
EAF51F6D0F2FD7F000264BE8 /* PBXBookmark */ = EAF51F6D0F2FD7F000264BE8 /* PBXBookmark */;
|
||||
EAF51F6E0F2FD7F000264BE8 /* PBXTextBookmark */ = EAF51F6E0F2FD7F000264BE8 /* PBXTextBookmark */;
|
||||
EAF51F730F2FD80A00264BE8 /* PBXTextBookmark */ = EAF51F730F2FD80A00264BE8 /* PBXTextBookmark */;
|
||||
};
|
||||
sourceControlManager = EACAFE5F0E7936340024FAE4 /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
A3009514080E7F44003DEA28 /* libILU */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
A3009519080E7F51003DEA28 /* libILUT */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
A3009525080E7F6E003DEA28 /* libIL */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
A32D48B108102349008510AC /* ilu_error.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 924}}";
|
||||
sepNavSelRange = "{377, 27}";
|
||||
sepNavVisRange = "{0, 0}";
|
||||
sepNavWindowFrame = "{{15, 63}, {750, 683}}";
|
||||
};
|
||||
};
|
||||
A32D48B908102349008510AC /* ilu_region.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 4214}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 530}";
|
||||
};
|
||||
};
|
||||
A32D48BE08102349008510AC /* ilu_scaling.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 6748}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 121}";
|
||||
};
|
||||
};
|
||||
A32D48DC0810234E008510AC /* ilu_region.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 406}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{302, 291}";
|
||||
};
|
||||
};
|
||||
A32D49450810244F008510AC /* ilut_internal.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 1148}}";
|
||||
sepNavSelRange = "{499, 29}";
|
||||
sepNavVisRange = "{313, 331}";
|
||||
};
|
||||
};
|
||||
A36D106F080E84D70012BB8B /* il_alloc.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 3696}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 424}";
|
||||
sepNavWindowFrame = "{{38, 162}, {750, 558}}";
|
||||
};
|
||||
};
|
||||
A36D1071080E84D70012BB8B /* il_bmp.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {963, 14140}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 644}";
|
||||
};
|
||||
};
|
||||
A36D1073080E84D70012BB8B /* il_convert.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1056, 14588}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 506}";
|
||||
};
|
||||
};
|
||||
A36D1077080E84D80012BB8B /* il_dds.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {963, 38976}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{515, 1011}";
|
||||
sepNavWindowFrame = "{{107, 99}, {750, 558}}";
|
||||
};
|
||||
};
|
||||
A36D107E080E84D80012BB8B /* il_gif.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 11004}}";
|
||||
sepNavSelRange = "{4532, 50}";
|
||||
sepNavVisRange = "{80, 164}";
|
||||
sepNavWindowFrame = "{{15, 63}, {750, 683}}";
|
||||
};
|
||||
};
|
||||
A36D1094080E84D80012BB8B /* il_psp.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {963, 9716}}";
|
||||
sepNavSelRange = "{6707, 12}";
|
||||
sepNavVisRange = "{6322, 579}";
|
||||
sepNavWindowFrame = "{{15, 63}, {750, 683}}";
|
||||
};
|
||||
};
|
||||
A36D109E080E84D80012BB8B /* il_targa.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 13160}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 216}";
|
||||
};
|
||||
};
|
||||
A36D10A1080E84D80012BB8B /* il_wal.c */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {486, 2478}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 403}";
|
||||
sepNavWindowFrame = "{{15, 183}, {750, 558}}";
|
||||
};
|
||||
};
|
||||
A36D10E8080E8E5D0012BB8B /* Configure */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
A36D10F5080E8FD80012BB8B /* Install */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
A36D110E080E92150012BB8B /* il_internal.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {691, 6006}}";
|
||||
sepNavSelRange = "{732, 0}";
|
||||
sepNavVisRange = "{529, 1030}";
|
||||
sepNavWindowFrame = "{{61, 61}, {750, 685}}";
|
||||
};
|
||||
};
|
||||
A36D1111080E92150012BB8B /* il_manip.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {963, 3108}}";
|
||||
sepNavSelRange = "{1199, 0}";
|
||||
sepNavVisRange = "{757, 531}";
|
||||
};
|
||||
};
|
||||
A36D115F080E95D60012BB8B /* ilut.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {660, 5544}}";
|
||||
sepNavSelRange = "{7444, 58}";
|
||||
sepNavVisRange = "{7422, 187}";
|
||||
sepNavWindowFrame = "{{15, 67}, {750, 679}}";
|
||||
};
|
||||
};
|
||||
A36D1165080E95D60012BB8B /* ilu_region.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 322}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 248}";
|
||||
};
|
||||
};
|
||||
A36D1166080E95D60012BB8B /* config.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {691, 1918}}";
|
||||
sepNavSelRange = "{1126, 0}";
|
||||
sepNavVisRange = "{529, 701}";
|
||||
sepNavWindowFrame = "{{15, 76}, {750, 670}}";
|
||||
};
|
||||
};
|
||||
A36D1167080E95D60012BB8B /* il.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 8428}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 422}";
|
||||
sepNavWindowFrame = "{{15, 56}, {750, 685}}";
|
||||
};
|
||||
};
|
||||
A36D1168080E95D60012BB8B /* ilu.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 2772}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{111, 229}";
|
||||
};
|
||||
};
|
||||
A36D116C080E95D60012BB8B /* devil_internal_exports.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {720, 2240}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 205}";
|
||||
sepNavWindowFrame = "{{84, 120}, {750, 558}}";
|
||||
};
|
||||
};
|
||||
A38C3C170818FC42008EE126 /* Makefile.am */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 224}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 423}";
|
||||
sepNavWindowFrame = "{{15, 64}, {750, 682}}";
|
||||
};
|
||||
};
|
||||
EACAFE5F0E7936340024FAE4 /* Source Control */ = {
|
||||
isa = PBXSourceControlManager;
|
||||
fallbackIsa = XCSourceControlManager;
|
||||
isSCMEnabled = 0;
|
||||
scmConfiguration = {
|
||||
};
|
||||
};
|
||||
EACAFE600E7936340024FAE4 /* Code sense */ = {
|
||||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
EACAFF130E793EC20024FAE4 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A32D48B108102349008510AC /* ilu_error.c */;
|
||||
name = "ilu_error.c: 14";
|
||||
rLen = 27;
|
||||
rLoc = 377;
|
||||
rType = 0;
|
||||
vrLen = 0;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EACAFF150E793EC20024FAE4 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A32D48B108102349008510AC /* ilu_error.c */;
|
||||
name = "ilu_error.c: 14";
|
||||
rLen = 27;
|
||||
rLoc = 377;
|
||||
rType = 0;
|
||||
vrLen = 0;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F2A0F2FB9FE00264BE8 /* il_exr.cpp */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {519, 6104}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{0, 216}";
|
||||
};
|
||||
};
|
||||
EAF51F470F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D107E080E84D80012BB8B /* il_gif.c */;
|
||||
name = "il_gif.c: 214";
|
||||
rLen = 50;
|
||||
rLoc = 4532;
|
||||
rType = 0;
|
||||
vrLen = 164;
|
||||
vrLoc = 80;
|
||||
};
|
||||
EAF51F480F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D1168080E95D60012BB8B /* ilu.h */;
|
||||
name = "ilu.h: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 229;
|
||||
vrLoc = 111;
|
||||
};
|
||||
EAF51F490F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D115F080E95D60012BB8B /* ilut.h */;
|
||||
name = "ilut.h: 268";
|
||||
rLen = 58;
|
||||
rLoc = 7444;
|
||||
rType = 0;
|
||||
vrLen = 187;
|
||||
vrLoc = 7422;
|
||||
};
|
||||
EAF51F4A0F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D1165080E95D60012BB8B /* ilu_region.h */;
|
||||
name = "ilu_region.h: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 248;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F4B0F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D109E080E84D80012BB8B /* il_targa.c */;
|
||||
name = "il_targa.c: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 216;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F4C0F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A32D48BE08102349008510AC /* ilu_scaling.c */;
|
||||
name = "ilu_scaling.c: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 121;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F4E0F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D107E080E84D80012BB8B /* il_gif.c */;
|
||||
name = "il_gif.c: 214";
|
||||
rLen = 50;
|
||||
rLoc = 4532;
|
||||
rType = 0;
|
||||
vrLen = 164;
|
||||
vrLoc = 80;
|
||||
};
|
||||
EAF51F4F0F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D1168080E95D60012BB8B /* ilu.h */;
|
||||
name = "ilu.h: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 229;
|
||||
vrLoc = 111;
|
||||
};
|
||||
EAF51F500F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D115F080E95D60012BB8B /* ilut.h */;
|
||||
name = "ilut.h: 268";
|
||||
rLen = 58;
|
||||
rLoc = 7444;
|
||||
rType = 0;
|
||||
vrLen = 187;
|
||||
vrLoc = 7422;
|
||||
};
|
||||
EAF51F510F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D1165080E95D60012BB8B /* ilu_region.h */;
|
||||
name = "ilu_region.h: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 248;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F520F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A36D109E080E84D80012BB8B /* il_targa.c */;
|
||||
name = "il_targa.c: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 216;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F530F2FCF1E00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A32D48BE08102349008510AC /* ilu_scaling.c */;
|
||||
name = "ilu_scaling.c: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 121;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F6C0F2FD7F000264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = EAF51F2A0F2FB9FE00264BE8 /* il_exr.cpp */;
|
||||
name = "il_exr.cpp: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 216;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F6D0F2FD7F000264BE8 /* PBXBookmark */ = {
|
||||
isa = PBXBookmark;
|
||||
fRef = A38C3C170818FC42008EE126 /* Makefile.am */;
|
||||
};
|
||||
EAF51F6E0F2FD7F000264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = EAF51F2A0F2FB9FE00264BE8 /* il_exr.cpp */;
|
||||
name = "il_exr.cpp: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 216;
|
||||
vrLoc = 0;
|
||||
};
|
||||
EAF51F730F2FD80A00264BE8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = A38C3C170818FC42008EE126 /* Makefile.am */;
|
||||
name = "Makefile.am: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 423;
|
||||
vrLoc = 0;
|
||||
};
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
*.dylib
|
||||
|
||||
Reference in New Issue
Block a user