14 #ifndef TEXTURECONTEXT_H 15 #define TEXTURECONTEXT_H 38 INLINE
Texture *get_texture()
const;
39 INLINE
int get_view()
const;
40 virtual uint64_t get_native_id()
const;
41 virtual uint64_t get_native_buffer_id()
const;
43 INLINE
bool was_modified()
const;
44 INLINE
bool was_properties_modified()
const;
45 INLINE
bool was_image_modified()
const;
46 INLINE
bool was_simple_image_modified()
const;
48 INLINE
UpdateSeq get_properties_modified()
const;
49 INLINE
UpdateSeq get_image_modified()
const;
50 INLINE
UpdateSeq get_simple_image_modified()
const;
54 INLINE
void mark_loaded();
55 INLINE
void mark_simple_loaded();
56 INLINE
void mark_unloaded();
57 INLINE
void mark_needs_reload();
59 virtual void output(std::ostream &out)
const;
60 virtual void write(std::ostream &out,
int indent_level)
const;
72 static void init_type() {
73 BufferContext::init_type();
75 BufferContext::get_class_type());
78 return get_class_type();
80 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
88 inline std::ostream &operator << (std::ostream &out,
const TextureContext &context) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a base class for those kinds of SavedContexts that occupy an easily-measured (and substantial...
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a special class object that holds all the information returned by a particular GSG to indicat...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A table of objects that are saved within the graphics context for reference by handle later.
void update_data_size_bytes(size_t new_data_size_bytes)
Should be called (usually by a derived class) when the on-card size of this object has changed.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
One atomic piece that may be managed by a AdaptiveLru chain.
TypeHandle is the identifier used to differentiate C++ class types.
This is a sequence number that increments monotonically.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.