Panda3D
Loading...
Searching...
No Matches
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
16TypeHandle TextureContext::_type_handle;
17
18/**
19 * Returns an implementation-defined handle or pointer that can be used
20 * to interface directly with the underlying API.
21 * Returns 0 if the underlying implementation does not support this.
22 */
24get_native_id() const {
25 return 0;
26}
27
28/**
29 * Similar to get_native_id, but some implementations use a separate
30 * identifier for the buffer object associated with buffer textures.
31 * Returns 0 if the underlying implementation does not support this, or
32 * if this is not a buffer texture.
33 */
36 return 0;
37}
38
39/**
40 *
41 */
42void TextureContext::
43output(std::ostream &out) const {
44 out << *get_texture() << ", " << get_data_size_bytes();
45}
46
47/**
48 *
49 */
50void TextureContext::
51write(std::ostream &out, int indent_level) const {
52 SavedContext::write(out, indent_level);
53}
get_data_size_bytes
Returns the number of bytes previously reported for the data object.
virtual uint64_t get_native_buffer_id() const
Similar to get_native_id, but some implementations use a separate identifier for the buffer object as...
virtual uint64_t get_native_id() const
Returns an implementation-defined handle or pointer that can be used to interface directly with the u...
Texture * get_texture() const
Returns the pointer to the associated Texture object.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.