2
2
#include " dxtlib.h"
3
3
#include < nvtt/nvtt.h>
4
4
#include " ETextureParams.h"
5
- #include " dds.h"
5
+ // #include "dds.h"
6
6
7
- BOOL APIENTRY DllMain (HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved) { return TRUE ; }
7
+ // BOOL APIENTRY DllMain(HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved) { return TRUE; }
8
8
static HFILE gFileOut ;
9
9
static HFILE gFileIn ;
10
10
11
- const u32 fcc_DXT1 = MAKEFOURCC(' D' , ' X' , ' T' , ' 1' );
11
+ /* const u32 fcc_DXT1 = MAKEFOURCC('D', 'X', 'T', '1');
12
12
const u32 fcc_DXT2 = MAKEFOURCC('D', 'X', 'T', '2');
13
13
const u32 fcc_DXT3 = MAKEFOURCC('D', 'X', 'T', '3');
14
14
const u32 fcc_DXT4 = MAKEFOURCC('D', 'X', 'T', '4');
15
- const u32 fcc_DXT5 = MAKEFOURCC(' D' , ' X' , ' T' , ' 5' );
15
+ const u32 fcc_DXT5 = MAKEFOURCC('D', 'X', 'T', '5');*/
16
16
17
- void __cdecl WriteDTXnFile (DWORD count, void * buffer, void * userData)
17
+ /* void __cdecl WriteDTXnFile(DWORD count, void* buffer, void* userData)
18
18
{
19
19
if (count == sizeof(DDS_HEADER))
20
20
{
@@ -32,7 +32,7 @@ void __cdecl WriteDTXnFile(DWORD count, void* buffer, void* userData)
32
32
}
33
33
}
34
34
_write(gFileOut, buffer, count);
35
- }
35
+ }*/
36
36
37
37
class DDSWriter : public nvtt ::OutputHandler
38
38
{
@@ -48,7 +48,7 @@ DDSWriter::DDSWriter(HFILE& file) : file(file) {}
48
48
void DDSWriter::beginImage (int size, int width, int height, int depth, int face, int miplevel) {}
49
49
bool DDSWriter::writeData (const void * data, int size)
50
50
{
51
- if (size == sizeof (DDS_HEADER))
51
+ /* if (size == sizeof(DDS_HEADER))
52
52
{
53
53
DDS_HEADER* hdr = (DDS_HEADER*)data;
54
54
if (hdr->dwSize == size)
@@ -62,7 +62,7 @@ bool DDSWriter::writeData(const void* data, int size)
62
62
case fcc_DXT5: hdr->ddspf.dwRGBBitCount = 0; break;
63
63
}
64
64
}
65
- }
65
+ }*/
66
66
_write (file, data, size);
67
67
return true ;
68
68
}
@@ -89,15 +89,15 @@ void DDSErrorHandler::error(nvtt::Error e)
89
89
MessageBox (0 , msg, " DXT compress error" , MB_ICONERROR | MB_OK);
90
90
}
91
91
92
- void __cdecl ReadDTXnFile (DWORD count, void * buffer, void * userData) { _read (gFileIn , buffer, count); }
92
+ /* void __cdecl ReadDTXnFile(DWORD count, void* buffer, void* userData) { _read(gFileIn, buffer, count); }
93
93
HRESULT WriteCompressedData(void* data, int miplevel, u32 size)
94
94
{
95
95
_write(gFileOut, data, size);
96
96
FillMemory(data, size, 0xff);
97
97
return 0;
98
- }
98
+ }*/
99
99
100
- ENGINE_API u32 * Build32MipLevel (u32 & _w, u32 & _h, u32 & _p, u32 * pdwPixelSrc, STextureParams* fmt, float blend)
100
+ /* ENGINE_API*/ u32 * Build32MipLevel (u32 & _w, u32 & _h, u32 & _p, u32 * pdwPixelSrc, STextureParams* fmt, float blend)
101
101
{
102
102
R_ASSERT (pdwPixelSrc);
103
103
R_ASSERT (_w % 2 == 0 );
0 commit comments