An image cache maintains a cache of GPU-based and / or CPU-based images. This allows efficient reuse of images. More...
Public Member Functions | |
ImageCache (Accelerator accel, PixelFormat pixelFormat) | |
Creates a new image cache instance which uses the provided accelerator to allocate image instances. More... | |
void | Dispose () |
void | Dispose (bool disposing) |
Image | CreateImage (int width, int height) |
Returns a new image from the image cache. Null is returned if the image can not be reused from the cache or created on demand. E.g. the caller is asking for a texture-based image but the image cache was instantiated without an accelerator. More... | |
Properties | |
ImageCacheStatistics | Statistics [get] |
Returns the current statistics. More... | |
An image cache maintains a cache of GPU-based and / or CPU-based images. This allows efficient reuse of images.
RealNetworks.CameraKit.ImageCache.ImageCache | ( | Accelerator | accel, |
PixelFormat | pixelFormat | ||
) |
Creates a new image cache instance which uses the provided accelerator to allocate image instances.
accel | the accelerator |
pixelFormat | the preferred pixel format |
Image RealNetworks.CameraKit.ImageCache.CreateImage | ( | int | width, |
int | height | ||
) |
Returns a new image from the image cache. Null is returned if the image can not be reused from the cache or created on demand. E.g. the caller is asking for a texture-based image but the image cache was instantiated without an accelerator.
width | the desired image width |
height | the desired image height |
void RealNetworks.CameraKit.ImageCache.Dispose | ( | ) |
void RealNetworks.CameraKit.ImageCache.Dispose | ( | bool | disposing | ) |
|
get |
Returns the current statistics.