goat3d

diff src/chunk.h @ 9:04bb114fcf05

implementing Scene::save, lots to do still
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Aug 2013 06:36:47 +0300
parents cd71f0b92f44
children 798df5111b56
line diff
     1.1 --- a/src/chunk.h	Wed Aug 21 05:52:28 2013 +0300
     1.2 +++ b/src/chunk.h	Fri Aug 23 06:36:47 2013 +0300
     1.3 @@ -1,6 +1,8 @@
     1.4  #ifndef CHUNK_H_
     1.5  #define CHUNK_H_
     1.6  
     1.7 +#include <stdint.h>
     1.8 +
     1.9  enum {
    1.10  	CNK_INVALID,		// this shouldn't appear in files
    1.11  	CNK_SCENE,			// the root chunk
    1.12 @@ -100,6 +102,8 @@
    1.13  	MAX_NUM_CHUNKS
    1.14  };
    1.15  
    1.16 +#define UNKNOWN_SIZE	((uint32_t)0xbaadf00d)
    1.17 +
    1.18  struct ChunkHeader {
    1.19  	uint32_t id;
    1.20  	uint32_t size;
    1.21 @@ -110,4 +114,6 @@
    1.22  	char data[1];
    1.23  };
    1.24  
    1.25 +
    1.26 +
    1.27  #endif	// CHUNK_H_