Panda3D
Loading...
Searching...
No Matches
indexBufferContext.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 indexBufferContext.cxx
10 * @author drose
11 * @date 2005-03-17
12 */
13
14#include "indexBufferContext.h"
15
16TypeHandle IndexBufferContext::_type_handle;
17
18/**
19 *
20 */
21void IndexBufferContext::
22output(std::ostream &out) const {
23 GeomPrimitive *prim = get_data();
24 if (prim != nullptr) {
25 out << *prim;
26 } else {
27 out << "NULL";
28 }
29 out << ", " << get_data_size_bytes();
30}
31
32/**
33 *
34 */
35void IndexBufferContext::
36write(std::ostream &out, int indent_level) const {
37 SavedContext::write(out, indent_level);
38}
get_data_size_bytes
Returns the number of bytes previously reported for the data object.
This is an abstract base class for a family of classes that represent the fundamental geometry primit...
GeomPrimitive * get_data() const
Returns the pointer to the client-side array data object.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.