Panda3D
indexBufferContext.cxx
1 // Filename: indexBufferContext.cxx
2 // Created by: drose (17Mar05)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "indexBufferContext.h"
16 
17 TypeHandle IndexBufferContext::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: IndexBufferContext::output
21 // Access: Public, Virtual
22 // Description:
23 ////////////////////////////////////////////////////////////////////
24 void IndexBufferContext::
25 output(ostream &out) const {
26  out << *get_data() << ", " << get_data_size_bytes();
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: IndexBufferContext::write
31 // Access: Published, Virtual
32 // Description:
33 ////////////////////////////////////////////////////////////////////
34 void IndexBufferContext::
35 write(ostream &out, int indent_level) const {
36  SavedContext::write(out, indent_level);
37 }
size_t get_data_size_bytes() const
Returns the number of bytes previously reported for the data object.
Definition: bufferContext.I:26
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:85