14 #ifndef BUFFERCONTEXT_H 15 #define BUFFERCONTEXT_H 46 INLINE
size_t get_data_size_bytes()
const;
48 INLINE
bool get_active()
const;
49 INLINE
bool get_resident()
const;
51 MAKE_PROPERTY(
object, get_object);
53 MAKE_PROPERTY(data_size_bytes, get_data_size_bytes);
54 MAKE_PROPERTY(modified, get_modified);
55 MAKE_PROPERTY(active, get_active);
56 MAKE_PROPERTY(resident, get_resident);
59 INLINE
void set_active(
bool flag);
60 INLINE
void set_resident(
bool flag);
64 INLINE
void update_data_size_bytes(
size_t new_data_size_bytes);
65 INLINE
void update_modified(
UpdateSeq new_modified);
79 size_t _data_size_bytes;
87 static void init_type() {
88 SavedContext::init_type();
90 SavedContext::get_class_type());
93 return get_class_type();
95 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
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...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is used to keep track of the current state of all the BufferContexts for a particular grap...
A table of objects that are saved within the graphics context for reference by handle later.
This just stores the pointers to implement a doubly-linked list of some kind of object.
This class maintains a linked list of BufferContexts that might be allocated on the graphics card in ...
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
This is a sequence number that increments monotonically.
This is the base class for all GSG-specific context objects, such as TextureContext and GeomContext.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.