15#include <AUI/Util/Cache.h>
16#include <AUI/Url/AUrl.h>
17#include <AUI/Enum/Repeat.h>
18#include <AUI/Enum/ImageRendering.h>
19#include <AUI/Image/AImage.h>
29 friend class AImageLoaderRegistry;
32 friend class ::Cache<IDrawable, Cache, AUrl>;
33 friend class AImageLoaderRegistry;
34 class Cache:
public ::Cache<IDrawable, Cache, AUrl> {
44 glm::vec2 offset = {0.f, 0.f};
49 Repeat repeat = Repeat::NONE;
61 virtual AImage
rasterize(glm::ivec2 imageSize);
Utility wrapper implementing the stack-allocated (fast) optional idiom.
Definition: AOptional.h:32
Uniform Resource Locator implementation.
Definition: AUrl.h:31
An abstract image that determines itself how it is displayed. Essentially an abstraction from vector ...
Definition: IDrawable.h:28
virtual void draw(IRenderer &render, const IDrawable::Params ¶ms)=0
Called when the image needs to be displayed. It is assumed that the renderer is already set to the de...
virtual AImage rasterize(glm::ivec2 imageSize)
Converts possibly vector drawable to a raster image.
Definition: IDrawable.cpp:52
virtual bool isDpiDependent() const
Definition: IDrawable.h:79
virtual glm::ivec2 getSizeHint()=0
static API_AUI_VIEWS _< IDrawable > fromUrl(const AUrl &url) noexcept
Creates a drawable from an url.
Definition: IDrawable.cpp:19
Base class for rendering.
Definition: IRenderer.h:149
An std::weak_ptr with AUI extensions.
Definition: SharedPtrTypes.h:177
ImageRendering
Controls the image rendering type.
Definition: ImageRendering.h:26
Definition: IDrawable.h:43