mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
This gives better support for smaller screens and side-by-side windows. Also standardize the formatting check on GitHub on version 17. Diffs= e52e9fff29 Drop the ColumnLimit to 80 for clang-format (#8320) Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com>
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
/*
|
|
* Copyright 2022 Rive
|
|
*/
|
|
|
|
#ifndef _RIVE_NOOP_FACTORY_HPP_
|
|
#define _RIVE_NOOP_FACTORY_HPP_
|
|
|
|
#include "rive/factory.hpp"
|
|
|
|
namespace rive
|
|
{
|
|
|
|
class NoOpFactory : public Factory
|
|
{
|
|
rcp<RenderBuffer> makeRenderBuffer(RenderBufferType,
|
|
RenderBufferFlags,
|
|
size_t) override;
|
|
|
|
rcp<RenderShader> makeLinearGradient(float sx,
|
|
float sy,
|
|
float ex,
|
|
float ey,
|
|
const ColorInt colors[], // [count]
|
|
const float stops[], // [count]
|
|
size_t count) override;
|
|
|
|
rcp<RenderShader> makeRadialGradient(float cx,
|
|
float cy,
|
|
float radius,
|
|
const ColorInt colors[], // [count]
|
|
const float stops[], // [count]
|
|
size_t count) override;
|
|
|
|
rcp<RenderPath> makeRenderPath(RawPath&, FillRule) override;
|
|
|
|
rcp<RenderPath> makeEmptyRenderPath() override;
|
|
|
|
rcp<RenderPaint> makeRenderPaint() override;
|
|
|
|
rcp<RenderImage> decodeImage(Span<const uint8_t>) override;
|
|
};
|
|
} // namespace rive
|
|
#endif
|