Panda3D
panda
src
gobj
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
}
TextureContext::get_texture
Texture * get_texture() const
Returns the pointer to the associated Texture object.
Definition:
textureContext.I:37
BufferContext::get_data_size_bytes
size_t get_data_size_bytes() const
Returns the number of bytes previously reported for the data object.
Definition:
bufferContext.I:26
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:85
Generated on Wed May 17 2017 23:42:56 for Panda3D by
1.8.13