Panda3D
 All Classes Functions Variables Enumerations
textureContext.cxx
1 // Filename: textureContext.cxx
2 // Created by: drose (07Oct99)
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 "textureContext.h"
16 
17 TypeHandle TextureContext::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: TextureContext::output
21 // Access: Public, Virtual
22 // Description:
23 ////////////////////////////////////////////////////////////////////
24 void TextureContext::
25 output(ostream &out) const {
26  out << *get_texture() << ", " << get_data_size_bytes();
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: TextureContext::write
31 // Access: Published, Virtual
32 // Description:
33 ////////////////////////////////////////////////////////////////////
34 void TextureContext::
35 write(ostream &out, int indent_level) const {
36  SavedContext::write(out, indent_level);
37 }
Texture * get_texture() const
Returns the pointer to the associated Texture object.
size_t get_data_size_bytes() const
Returns the number of bytes previously reported for the data object.
Definition: bufferContext.I:26
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85