Panda3D
panda
src
gobj
vertexBufferContext.cxx
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 vertexBufferContext.cxx
10
* @author drose
11
* @date 2005-03-17
12
*/
13
14
#include "
vertexBufferContext.h
"
15
#include "
config_gobj.h
"
16
17
TypeHandle
VertexBufferContext::_type_handle;
18
19
/**
20
*
21
*/
22
void
VertexBufferContext::
23
output(std::ostream &out)
const
{
24
GeomVertexArrayData
*data =
get_data
();
25
if
(data !=
nullptr
) {
26
out << *data;
27
}
else
{
28
out <<
"NULL"
;
29
}
30
out <<
", "
<<
get_data_size_bytes
();
31
}
32
33
/**
34
*
35
*/
36
void
VertexBufferContext::
37
write(std::ostream &out,
int
indent_level)
const
{
38
SavedContext::write(out, indent_level);
39
}
BufferContext::get_data_size_bytes
get_data_size_bytes
Returns the number of bytes previously reported for the data object.
Definition:
bufferContext.h:53
GeomVertexArrayData
This is the data for one array of a GeomVertexData structure.
Definition:
geomVertexArrayData.h:58
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
VertexBufferContext::get_data
GeomVertexArrayData * get_data() const
Returns the pointer to the client-side array data object.
Definition:
vertexBufferContext.I:28
config_gobj.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
vertexBufferContext.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Tue Aug 31 2021 11:10:08 for Panda3D by
1.9.1