-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathc4dReader.h
More file actions
executable file
·67 lines (50 loc) · 1.39 KB
/
Copy pathc4dReader.h
File metadata and controls
executable file
·67 lines (50 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Copyright(c) 2005-2006. All Rights Reserved
// By Jean-René Bédard (https://github.com/jrbedard/3d-converter)
#ifndef __C4DREADER_H__
#define __C4DREADER_H__
#include <stdio.h>
#include "binaryReader.h"
#include "c4dFile.h"
namespace ZBPlugin
{
class CFile;
// CC4dReader: C4D file format reader
class CC4dReader : public CBinaryReader
{
public:
CC4dReader(CFile* pFile, const fs::path& fileName);
private:
CC4dReader(const CC4dReader&); // Copy constructor
void operator=(const CC4dReader&); // Assignment operator
public:
bool Read();
bool ReadDebug(){return true;}
private:
bool LoadC4D(char* name);
protected:
// should be in binaryReader
bool SkipChunk(CC4dFile::SChunkC4d &chunk);
private:
/*
File* file;
File* FOpen(CHAR* name); // Open a file
void FSkip(LONG relskip); // Skip 'relskip' bytes
void FClose(File* file); // Close a file
LONG FPos(); // Return absolute position in file
CHAR ReadCHAR(); // Read 1 byte
WORD ReadWORD(); // Read 2 bytes
LONG ReadLONG(); // Read 4 bytes
Real ReadREAL(); // Read 4 bytes
Vector ReadVECTOR(); // Read 12 bytes
void* ReadNBytes(LONG n); // Read n bytes
void LoadMaterials(void);
void LoadObjects(void);
void LoadEnvironment(void);
*/
private:
long m_fileSize;
long m_pc; // File Pointer
CC4dFile* m_pC4dFile;
};
} // End ZBPlugin namespace
#endif // __C4DREADER_H__