SBSPSS/Utils/Libs/TexGrab/AllFiles.h
2001-02-08 16:30:06 +00:00

99 lines
2.5 KiB
C++

/*=========================================================================
AllFiles.h
Author: Gary
Created: 011200
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __ALLFILES_H__
#define __ALLFILES_H__
/*----------------------------------------------------------------------
Includes
-------- */
using namespace std;
/*----------------------------------------------------------------------
AllFiles Class
Hold's a list of all the files to be processed on along with the options that apply to them
------------------------------------------------------------------------------------------- */
class AllFiles : protected FileCycler
{
public:
AllFiles(void)
{
RecurseFiles=false;
CrossHair=false;
ZeroColZero=false;
MoveUVs=false;
AllowRotate=true;
ForceOffsets=false;
ShrinkToFit=true;
m_allocateAs16bit=false;
MaxSize=0;
m_noSort=false;
DebugFlag=false;
}
void SetFileRecursion(bool NewRecurseFiles) {RecurseFiles=NewRecurseFiles;}
void SetCrossHair(bool NewCrossHair) {CrossHair=NewCrossHair;}
void SetZeroColZero(bool NewColZero) {ZeroColZero=NewColZero;}
void SetMoveUVs(bool NewMoveUVs) {MoveUVs=NewMoveUVs;}
void SetAllowRotate(bool NewAllowRotate) {AllowRotate=NewAllowRotate;}
void SetForceOffsets(bool NewForceOffsets) {ForceOffsets=NewForceOffsets;}
void SetShrinkToFit(bool NewSetShrinkToFit) {ShrinkToFit=NewSetShrinkToFit;}
void SetXOff(int NewXOff) {XOff=NewXOff;}
void SetYOff(int NewYOff) {YOff=NewYOff;}
void SetMaxSize(int New) {MaxSize=New;}
void SetDebug(bool f) {DebugFlag=f;}
int GetMaxSize(void) const {return(MaxSize);}
FIVec const & GetFileInfoVector(void) const {return(AllFileInfos);}
void setAllocateAs16Bit(bool newVal) {m_allocateAs16bit=newVal;}
void setNoSort(void) {m_noSort=true;}
void SortOrder();
int AddFile(const char * Name);
int AddMemFrame(char const * FName,Frame &Frame);
protected:
vector<GString> UniqueTexturesSoFar;
vector<GString> AllExternalSharedTextures;
void FileCallback(char const * FName,int FileNum);
bool ShrinkToFit;
bool RecurseFiles;
bool CrossHair;
bool ZeroColZero;
bool MoveUVs;
bool AllowRotate;
bool ForceOffsets;
bool m_allocateAs16bit;
bool m_noSort;
int XOff,YOff;
FIVec AllFileInfos;
int MaxSize;
bool DebugFlag;
};
#endif /* _ */
/*===========================================================================
end */