textureContext.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 textureContext.cxx
10  * @author drose
11  * @date 1999-10-07
12  */
13 
14 #include "textureContext.h"
15 
16 TypeHandle TextureContext::_type_handle;
17 
18 /**
19  *
20  */
21 void TextureContext::
22 output(ostream &out) const {
23  out << *get_texture() << ", " << get_data_size_bytes();
24 }
25 
26 /**
27  *
28  */
29 void TextureContext::
30 write(ostream &out, int indent_level) const {
31  SavedContext::write(out, indent_level);
32 }
size_t get_data_size_bytes() const
Returns the number of bytes previously reported for the data object.
Definition: bufferContext.I:21
Texture * get_texture() const
Returns the pointer to the associated Texture object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.