Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoCpuBufferObjectCache.h File Reference
#include <Inventor/SbBase.h>
#include <Inventor/STL/map>
#include <Inventor/STL/list>

Go to the source code of this file.

Functions

virtual void resize (const size_t newSize)
  VSG extension CPUBufferObject cache management class.
 
virtual size_t getSize ()
 Return the max size of the cache (number of buffers).
 

Function Documentation

◆ getSize()

virtual size_t getSize ( )
virtual

Return the max size of the cache (number of buffers).

◆ resize()

virtual void resize ( const size_t  newSize)
virtual

VSG extension CPUBufferObject cache management class.

A base class used to manage a simple cache of SoCpuBufferObject objects.

SoBufferObject creates an instance of this class that is primarily used for the LDM tile cache (see SoLDMGlobalResourceParameters for more information). The buffer object cache can be accessed using the SoBufferObject static method getBufferObjectCache. Default size is 50 or the value of OIV_BUFFER_OBJECT_CACHE_SIZE.

This class was added in Open Inventor 8.5. Resize cache to the given size.

Parameters
newSizenew size for the cache (number of buffers).
Default is 50 or the value specified for OIV_BUFFER_OBJECT_CACHE_SIZE.