Enhance image type support (#18)
* adds tiff support * doc update * adds memory-based =IPixelariumImage= implementation * add usage example for custom user control * enhance * clang-format fix readme fix docs
This commit is contained in:
committed by
Maximilian Kueffner
parent
356f966d01
commit
e3e161ce52
@@ -6,9 +6,17 @@
|
||||
namespace pixelarium::application
|
||||
{
|
||||
|
||||
/// @brief Defines a concept for a gallery type
|
||||
/// @tparam P The resource pool type of the gallery concept
|
||||
template <typename P>
|
||||
concept GalleryT = requires(P& r) { static_cast<resources::IResourcePool<P>&>(r); };
|
||||
concept GalleryT = requires(P& p) { static_cast<resources::IResourcePool<P>&>(p); };
|
||||
|
||||
/// @brief Interface for a Pixelarium gallery.
|
||||
///
|
||||
/// Defines generic functionality for a gallery of a specific
|
||||
/// resource type given by the template argument.
|
||||
/// @tparam GalleryT The type of IResourcePool that the given implementation
|
||||
/// provides a gallery for.
|
||||
template <typename GalleryT>
|
||||
class IPixelariumGallery
|
||||
{
|
||||
@@ -17,6 +25,7 @@ class IPixelariumGallery
|
||||
virtual void RenderGallery() = 0;
|
||||
};
|
||||
|
||||
/// @brief Implements IPixelariumGallery for a ImageResourcePool
|
||||
class PixelariumImageGallery : IPixelariumGallery<resources::ImageResourcePool>
|
||||
{
|
||||
using Pool = resources::ImageResourcePool;
|
||||
|
||||
Reference in New Issue
Block a user