Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
textureCompress.cpp File Reference
#include <windows.h>
#include <lmcons.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "resource.h"
#include <map>
#include <string>
#include <set>
#include <cstdarg>
#include <io.h>
#include <sys/stat.h>
#include <sys/utime.h>

Go to the source code of this file.

Classes

class  DebugMunkee
 
class  FileInfo
 
struct  FileInfoComparator
 
class  Directory
 

Macros

#define WIN32_LEAN_AND_MEAN
 
#define LOG(x)
 
#define DEBUG_LOG(x)
 

Typedefs

typedef std::set< FileInfo, FileInfoComparatorFileInfoSet
 
typedef std::set< std::string > StringSet
 

Functions

void eraseCachedFiles (const std::string &sourceDirName, const std::string &targetDirName, const std::string &cacheDirName, StringSet &cachedFilesToErase)
 
void copyCachedFiles (const std::string &sourceDirName, const std::string &targetDirName, const std::string &cacheDirName, StringSet &cachedFilesToCopy)
 
void compressOrigFiles (const std::string &sourceDirName, const std::string &targetDirName, const std::string &cacheDirName, StringSet &origFilesToCompress, const std::string &dxtOutFname)
 
void copyOrigFiles (const std::string &sourceDirName, const std::string &targetDirName, const std::string &cacheDirName, StringSet &origFilesToCopy)
 
int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
 

Macro Definition Documentation

◆ DEBUG_LOG

#define DEBUG_LOG ( x)
Value:
debugLog x

Definition at line 80 of file textureCompress.cpp.

◆ LOG

#define LOG ( x)
Value:
logStuff x

Definition at line 53 of file textureCompress.cpp.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 23 of file textureCompress.cpp.

Typedef Documentation

◆ FileInfoSet

Definition at line 138 of file textureCompress.cpp.

◆ StringSet

typedef std::set<std::string> StringSet

Definition at line 308 of file textureCompress.cpp.

Function Documentation

◆ compressOrigFiles()

void compressOrigFiles ( const std::string & sourceDirName,
const std::string & targetDirName,
const std::string & cacheDirName,
StringSet & origFilesToCompress,
const std::string & dxtOutFname )

Definition at line 351 of file textureCompress.cpp.

◆ copyCachedFiles()

void copyCachedFiles ( const std::string & sourceDirName,
const std::string & targetDirName,
const std::string & cacheDirName,
StringSet & cachedFilesToCopy )

Definition at line 327 of file textureCompress.cpp.

◆ copyOrigFiles()

void copyOrigFiles ( const std::string & sourceDirName,
const std::string & targetDirName,
const std::string & cacheDirName,
StringSet & origFilesToCopy )

Definition at line 433 of file textureCompress.cpp.

◆ eraseCachedFiles()

void eraseCachedFiles ( const std::string & sourceDirName,
const std::string & targetDirName,
const std::string & cacheDirName,
StringSet & cachedFilesToErase )

Definition at line 311 of file textureCompress.cpp.

◆ WinMain()

int APIENTRY WinMain ( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow )

Definition at line 627 of file textureCompress.cpp.