Panda3D
panda
src
gobj
vertexDataBlock.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file vertexDataBlock.h
10
* @author drose
11
* @date 2007-06-04
12
*/
13
14
#ifndef VERTEXDATABLOCK_H
15
#define VERTEXDATABLOCK_H
16
17
#include "
pandabase.h
"
18
#include "
simpleAllocator.h
"
19
#include "
vertexDataPage.h
"
20
#include "
referenceCount.h
"
21
22
class
VertexDataPage
;
23
class
VertexDataBlock
;
24
25
/**
26
* A block of bytes that stores the actual raw vertex data referenced by a
27
* GeomVertexArrayData object.
28
*/
29
class
EXPCL_PANDA_GOBJ
VertexDataBlock
:
public
SimpleAllocatorBlock
,
public
ReferenceCount
{
30
protected
:
31
INLINE
VertexDataBlock
(
VertexDataPage
*page,
32
size_t
start,
size_t
size);
33
34
PUBLISHED:
35
INLINE
VertexDataPage
*get_page()
const
;
36
INLINE
VertexDataBlock
*
get_next_block
()
const
;
37
38
public
:
39
INLINE
unsigned
char
*get_pointer(
bool
force)
const
;
40
41
friend
class
VertexDataPage
;
42
};
43
44
#include "
vertexDataBlock.I
"
45
46
#endif
VertexDataPage
A block of bytes that holds one or more VertexDataBlocks.
Definition:
vertexDataPage.h:37
vertexDataPage.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
referenceCount.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
VertexDataBlock
A block of bytes that stores the actual raw vertex data referenced by a GeomVertexArrayData object.
Definition:
vertexDataBlock.h:29
SimpleAllocatorBlock
A single block as returned from SimpleAllocator::alloc().
Definition:
simpleAllocator.h:90
SimpleAllocatorBlock::get_next_block
SimpleAllocatorBlock * get_next_block() const
Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated bl...
Definition:
simpleAllocator.I:274
simpleAllocator.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
ReferenceCount
A base class for all things that want to be reference-counted.
Definition:
referenceCount.h:38
vertexDataBlock.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Wed Jan 23 2019 21:40:05 for Panda3D by
1.8.15