iWaveOcean
3ds Max ocean simulation plugin
ExternalFile.h
1 #pragma once
2 #include <vector>
3 #include "Grid.h"
4 
5 #define MAGIC_NUMBER_1 0x76615769 // = "iWav"
6 #define MAGIC_NUMBER_2 0x11111111
7 #define BLOCK_HEADER 0x4B4F4C42 // = "BLOK"
8 
10 {
11  std::wstring _filename;
12 
13 public:
14  ExternalFile(std::wstring filename);
15 
19  int CheckValidity() const;
20  bool Read(int* startFrameOut, std::vector<Grid*>* gridsOut) const;
21  bool Write(int startFrame, const std::vector<Grid*>& gridsIn) const;
22 };
23 
Definition: ExternalFile.h:9
int CheckValidity() const
Definition: ExternalFile.cpp:7