class CVector2
{
public:
CVector2();
CVector2(...);
inline Set(float x, float y);
};
CVector2::CVector2() { ... }
CVector2::CVector2(...) { ... }
inline CVector2::Set(float x, float y) { ... }
class CVector2
{
public:
CVector2();
CVector2(...);
inline Set(float x, float y);
};
CVector2::CVector2() { ... }
CVector2::CVector2(...) { ... }
inline CVector2::Set(float x, float y) { ... }
inline void Set(float x, float y);inline void CVector2::Set(float x, float y) { ... }
public class BLP // The big daddy, all the functionality. Every function WILL throw errors if something's off. Probably a good idea to catch them! ~.^ { BLPData Data; // Most of the actual data. // CatchError() // Internal. Function called when an exception is thrown. // >>all the fun utility functions like... inline void ImportDXT3FormatFromFileStream(IO::FileStream ^FS); // Internal. Decompresses the DXT3 data found in the file stream FS and puts the image data into this->Data.ImageData. The current file position MUST be the start of the data. inline void ImportDXT1FormatFromFileStream(IO::FileStream ^FS); // Internal. Decompresses the DXT1 data found in the file stream FS and puts the image data into this->Data.ImageData. The current file position MUST be the start of the data. inline void ImportPalettedDataFromFileStream(IO::FileStream ^FS); // Internal. Reads in paletted data to this->Data.ImageData. The current position MUST be the start of the pixel indicees. This reads in all known 8bit paletted types, and this->Type MUST be set before this is called! inline void SaveDXT3FormatToFileStream(IO::FileStream ^FS); // Internal. Compresses the data in Data.ImageData into DXT3 format, building the header and palette data, then outputting everything to the file stream. The current file position MUST be the start of the file. inline void SaveDXT1FormatToFileStream(IO::FileStream ^FS); // Internal. Compresses the data in Data.ImageData into DXT1 format, building the header and palette data, then outputting everything to the file stream. The current file position MUST be the start of the file. inline void SavePalettedDataToFileStream(IO::FileStream ^FS); // Internal. Compresses the data in Data.ImageData into 8bit paletted format, building the header and palette, then outputting it into the file stream. The current file position MUST be the start of the file. This saves all known 8bit paletted types, and this->Type MUST be set before this is called! //... };// later in the cpp file...inline void SaveDXT3FormatToFileStream(IO::FileStream ^FS){ // ...}// etc...