Panda3D

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 * 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 */
23 uint64_t TextureContext::
24 get_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 */
34 uint64_t TextureContext::
35 get_native_buffer_id() const {
36 return 0;
37 }
38
39 /**
40 *
41 */
42 void TextureContext::
43 output(std::ostream &out) const {
44 out << *get_texture() << ", " << get_data_size_bytes();
45 }
46
47 /**
48 *
49 */
50 void TextureContext::
51 write(std::ostream &out, int indent_level) const {
52 SavedContext::write(out, indent_level);
53 }
BufferContext::get_data_size_bytes
get_data_size_bytes
Returns the number of bytes previously reported for the data object.
Definition: bufferContext.h:53
TextureContext::get_native_buffer_id
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...
Definition: textureContext.cxx:35
TextureContext::get_native_id
virtual uint64_t get_native_id() const
Returns an implementation-defined handle or pointer that can be used to interface directly with the u...
Definition: textureContext.cxx:24
TextureContext::get_texture
Texture * get_texture() const
Returns the pointer to the associated Texture object.
Definition: textureContext.I:29
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
textureContext.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.