add new "SaveImageToFile" functions
This commit is contained in:
parent
99d311bf1f
commit
a1977d372f
@ -4,8 +4,10 @@ project(TexConv)
|
|||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
add_definitions(-DUNICODE -D_UNICODE)
|
||||||
|
|
||||||
include_directories("DevIL Windows SDK/include")
|
if(WIN32)
|
||||||
link_directories("DevIL Windows SDK/lib/x64/unicode/Release")
|
include_directories("DevIL Windows SDK/include")
|
||||||
|
link_directories("DevIL Windows SDK/lib/x64/unicode/Release")
|
||||||
|
endif(WIN32)
|
||||||
|
|
||||||
SET(ILIMAGE_SOURCE ILImage.h
|
SET(ILIMAGE_SOURCE ILImage.h
|
||||||
ILImageSupport.cpp)
|
ILImageSupport.cpp)
|
||||||
|
10
ILImage.h
10
ILImage.h
@ -59,3 +59,13 @@ public:
|
|||||||
};//class ILImage
|
};//class ILImage
|
||||||
|
|
||||||
bool SaveImageToFile(const OSString &filename,ILuint w,ILuint h,const float scale,ILuint c,ILuint t,void *data);
|
bool SaveImageToFile(const OSString &filename,ILuint w,ILuint h,const float scale,ILuint c,ILuint t,void *data);
|
||||||
|
|
||||||
|
inline bool SaveImageToFile(const OSString &filename,ILuint w,ILuint h,ILuint c,ILuint t,void *data)
|
||||||
|
{
|
||||||
|
return SaveImageToFile(filename,w,h,1.0,c,t,data);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline bool SaveImageToFile(const OSString &filename,ILuint w,ILuint h,ILuint c,void *data)
|
||||||
|
{
|
||||||
|
return SaveImageToFile(filename,w,h,1.0,c,IL_UNSIGNED_BYTE,data);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user