NDEVR
API Documentation
GLESImageManager

Manages all images within the Vulkan space. More...

Collaboration diagram for GLESImageManager:
[legend]

Public Member Functions

 GLESImageManager (const DynamicPointer< GLESGraphicsDevice > &instance)
 Constructs a GLESImageManager for the given device.
 ~GLESImageManager ()
 Destroys all managed GPU textures.
ConstPointer< GLESImageDatagetImage (const StringView &id)
 Retrieves or creates a GPU-backed image by identifier.
bool needsImageUpdate () const
 Checks whether any managed image needs re-uploading.
bool updateImages ()
 Re-uploads any images whose source data has changed.

Public Attributes

DynamicPointer< GLESGraphicsDevicem_device
 The OpenGL graphics device.
Dictionary< String, DynamicPointer< GLESImageData > > m_file_map
 Map of image IDs to GPU image data.

Detailed Description

Manages all images within the Vulkan space.


Definition at line 153 of file GLESImage.h.

Constructor & Destructor Documentation

◆ GLESImageManager()

GLESImageManager::GLESImageManager ( const DynamicPointer< GLESGraphicsDevice > & instance)
inline

Constructs a GLESImageManager for the given device.

Parameters
[in]instanceThe OpenGL graphics device.

Definition at line 158 of file GLESImage.h.

References m_device.

Member Function Documentation

◆ getImage()

ConstPointer< GLESImageData > GLESImageManager::getImage ( const StringView & id)
inline

Retrieves or creates a GPU-backed image by identifier.

Parameters
[in]idThe image identifier in the ImageFactory.
Returns
A ConstPointer to the GLESImageData.

Definition at line 198 of file GLESImage.h.

References IsValid(), m_device, and m_file_map.

◆ needsImageUpdate()

bool GLESImageManager::needsImageUpdate ( ) const
inline

Checks whether any managed image needs re-uploading.

Returns
True if at least one image is out of date.

Definition at line 186 of file GLESImage.h.

References m_file_map.

◆ updateImages()

bool GLESImageManager::updateImages ( )
inline

Re-uploads any images whose source data has changed.

Returns
True if at least one image was updated.

Definition at line 171 of file GLESImage.h.

References m_device, and m_file_map.


The documentation for this class was generated from the following file: