void update_modified(UpdateSeq new_modified)
Should be called (usually by a derived class) when the modified counter for this object has changed.
get_data_size_bytes
Returns the number of bytes previously reported for the data object.
void mark_unloaded()
Should be called after the buffer has been forced out of graphics memory.
void set_lru_size(size_t lru_size)
Specifies the size of this page, presumably in bytes, although any unit is possible.
void mark_loaded(const GeomVertexArrayDataHandle *reader)
Should be called after the VertexBufferContext has been loaded into graphics memory,...
get_modified
Returns the UpdateSeq that was recorded the last time mark_loaded() was called.
bool was_modified(const GeomVertexArrayDataHandle *reader) const
Returns true if the data has been modified since the last time mark_loaded() was called.
bool changed_size(const GeomVertexArrayDataHandle *reader) const
Returns true if the data has changed size since the last time mark_loaded() was called.
One atomic piece that may be managed by a AdaptiveLru chain.
bool changed_usage_hint(const GeomVertexArrayDataHandle *reader) const
Returns true if the data has changed its usage hint since the last time mark_loaded() was called.
This is a base class for those kinds of SavedContexts that occupy an easily-measured (and substantial...
void set_resident(bool flag)
Changes the resident flag associated with this object.
GeomVertexArrayData * get_data() const
Returns the pointer to the client-side array data object.
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.
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.