|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
No-op implementation for headless/testing scenarios. More...
#include <image_service.h>
Public Member Functions | |
| void | clearCache () override |
| Clear all cached images and free resources. | |
| bool | getImageDimensions (const std::string &, int *width, int *height) const override |
| Get dimensions of a loaded image. | |
| bool | isImageLoaded (const std::string &) const override |
| Check if an image is already loaded/cached. | |
| bool | loadImage (const std::string &, int *width=nullptr, int *height=nullptr) override |
| Load an image from disk. | |
| void | unloadImage (const std::string &) override |
| Unload a specific image and free resources. | |
| Public Member Functions inherited from core::IImageService | |
| virtual | ~IImageService ()=default |
No-op implementation for headless/testing scenarios.
Definition at line 134 of file image_service.h.
|
inlineoverridevirtual |
Clear all cached images and free resources.
Implements core::IImageService.
Definition at line 154 of file image_service.h.
|
inlineoverridevirtual |
Get dimensions of a loaded image.
| path | Path to the image |
| width | Output parameter for width |
| height | Output parameter for height |
Implements core::IImageService.
Definition at line 156 of file image_service.h.
|
inlineoverridevirtual |
Check if an image is already loaded/cached.
| path | Path to check |
Implements core::IImageService.
Definition at line 147 of file image_service.h.
|
inlineoverridevirtual |
Load an image from disk.
| path | Path to the image file |
| width | Output parameter for image width (optional) |
| height | Output parameter for image height (optional) |
Implementations should cache the loaded image for subsequent calls.
Implements core::IImageService.
Definition at line 137 of file image_service.h.
|
inlineoverridevirtual |
Unload a specific image and free resources.
| path | Path of the image to unload |
Implements core::IImageService.
Definition at line 152 of file image_service.h.