00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef VERTEXDATABLOCK_H
00016 #define VERTEXDATABLOCK_H
00017
00018 #include "pandabase.h"
00019 #include "simpleAllocator.h"
00020 #include "referenceCount.h"
00021
00022 class VertexDataPage;
00023 class VertexDataBlock;
00024
00025
00026
00027
00028
00029
00030 class EXPCL_PANDA_GOBJ VertexDataBlock : public SimpleAllocatorBlock, public ReferenceCount {
00031 protected:
00032 INLINE VertexDataBlock(VertexDataPage *page,
00033 size_t start, size_t size);
00034
00035 PUBLISHED:
00036 INLINE VertexDataPage *get_page() const;
00037 INLINE VertexDataBlock *get_next_block() const;
00038
00039 public:
00040 INLINE unsigned char *get_pointer(bool force) const;
00041
00042 friend class VertexDataPage;
00043 };
00044
00045 #include "vertexDataBlock.I"
00046
00047 #endif