Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. namespace juce
  14. {
  15. //==============================================================================
  16. /**
  17. A lowest-common-denominator implementation of LowLevelGraphicsContext that does all
  18. its rendering in memory.
  19. User code is not supposed to create instances of this class directly - do all your
  20. rendering via the Graphics class instead.
  21. @tags{Graphics}
  22. */
  23. class JUCE_API LowLevelGraphicsSoftwareRenderer : public RenderingHelpers::StackBasedLowLevelGraphicsContext<RenderingHelpers::SoftwareRendererSavedState>
  24. {
  25. public:
  26. //==============================================================================
  27. /** Creates a context to render into an image. */
  28. LowLevelGraphicsSoftwareRenderer (const Image& imageToRenderOnto);
  29. /** Creates a context to render into a clipped subsection of an image. */
  30. LowLevelGraphicsSoftwareRenderer (const Image& imageToRenderOnto, Point<int> origin,
  31. const RectangleList<int>& initialClip);
  32. /** Destructor. */
  33. ~LowLevelGraphicsSoftwareRenderer() override;
  34. private:
  35. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LowLevelGraphicsSoftwareRenderer)
  36. };
  37. } // namespace juce