15 #ifndef VERTEXDATASAVEFILE_H 16 #define VERTEXDATASAVEFILE_H 18 #include "pandabase.h" 19 #include "simpleAllocator.h" 24 #ifndef WIN32_LEAN_AND_MEAN 25 #define WIN32_LEAN_AND_MEAN 1 46 INLINE
bool is_valid()
const;
48 INLINE
size_t get_total_file_size()
const;
49 INLINE
size_t get_used_file_size()
const;
54 bool read_data(
unsigned char *data,
size_t size,
63 size_t _total_file_size;
80 size_t start,
size_t size);
83 INLINE
void set_compressed(
bool compressed);
84 INLINE
bool get_compressed()
const;
90 INLINE
unsigned char *get_pointer()
const;
95 #include "vertexDataSaveFile.I" A block of bytes on the save file.
A temporary file to hold the vertex data that has been evicted from memory and written to disk...
An implementation of a very simple block allocator.
A standard mutex, or mutual exclusion lock.
A single block as returned from SimpleAllocator::alloc().
The name of a file, such as a texture file or an Egg file.
A base class for all things that want to be reference-counted.