21 INLINE IndexBufferContext::
48 nassertr(reader->get_object() == _data,
false);
60 nassertr(reader->get_object() == _data,
false);
61 return _usage_hint != reader->get_usage_hint();
72 nassertr(reader->get_object() == _data,
false);
97 nassertv(reader->get_object() == _data);
100 _usage_hint = reader->get_usage_hint();
bool changed_size(const GeomPrimitivePipelineReader *reader) const
Returns true if the data has changed size since the last time mark_loaded() was called.
bool was_modified(const GeomPrimitivePipelineReader *reader) const
Returns true if the data has been modified 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...
This is an abstract base class for a family of classes that represent the fundamental geometry primit...
void set_lru_size(size_t lru_size)
Specifies the size of this page, presumably in bytes, although any unit is possible.
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...
GeomPrimitive * get_data() const
Returns the pointer to the client-side array data object.
size_t get_data_size_bytes() const
Returns the number of bytes previously reported for the data object.
void set_resident(bool flag)
Changes the resident flag associated with this object.
One atomic piece that may be managed by a AdaptiveLru chain.
bool changed_usage_hint(const GeomPrimitivePipelineReader *reader) const
Returns true if the data has changed its usage hint since the last time mark_loaded() was called...
void mark_unloaded()
Should be called after the buffer has been forced out of graphics memory.
UpdateSeq get_modified() const
Returns the UpdateSeq that was recorded the last time mark_loaded() was called.
static UpdateSeq old()
Returns an UpdateSeq in the 'old' state.
void mark_loaded(const GeomPrimitivePipelineReader *reader)
Should be called after the IndexBufferContext has been loaded into graphics memory, this updates the internal flags for changed_size() and modified().
int get_data_size_bytes() const
Returns the number of bytes stored in the vertices array.
void update_modified(UpdateSeq new_modified)
Should be called (usually by a derived class) when the modified counter for this object has changed...
Encapsulates the data from a GeomPrimitive, pre-fetched for one stage of the pipeline.
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...