#include <WDFFile.h>
Inherits File.
Inheritance diagram for WDFFile:


Public Methods | |
| WDFFile () | |
| ~WDFFile () | |
| WDFFile (const string &name) | |
| uint16 | getVersion () |
| void | read (Chunk &ch) |
| bool | readNext (Chunk &chunk) |
| Vertex3 | readVertex () |
| Color4 | readColor () |
| RefMaterial | readMaterial (uint16 type) |
| void | writeChunk (uint16 chunkId) |
| void | openChunk () |
| void | closeChunk () |
| void | writeVertex (const Vertex3 &v) |
| void | writeColor (const Color4 &c) |
| void | writeMaterial (RefMaterial &material) |
| void | open (const string &name) |
| Opens a file for reading. More... | |
| void | create (const string &name) |
| Creates a file for writing. More... | |
Protected Types | |
| typedef File | super |
| typedef stack< uint32 > | ChukStack |
| typedef map< Material *, uint16 > | MaterialID |
| typedef map< uint16, RefMaterial > | MaterialPool |
Protected Methods | |
| void | write (Chunk &ch) |
Protected Attributes | |
| uint16 | version |
| bool | reading |
| ChukStack | chunkStack |
| MaterialID | materialId |
| MaterialPool | materialPool |
Static Protected Attributes | |
| const uint16 | latestVersion = 1 |
|
|
Creates a file for writing.
Reimplemented from File. |
|
|
Opens a file for reading.
Reimplemented from File. |