blob: afd968f00cdc26a7d70072265657c8832d09902e [file]
#ifndef _RIVE_OPENGL_RENDER_PATH_HPP_
#define _RIVE_OPENGL_RENDER_PATH_HPP_
#include "contour_render_path.hpp"
#include "opengl.h"
#include "math/mat2d.hpp"
namespace rive
{
class OpenGLRenderer;
class OpenGLRenderPath : public ContourRenderPath
{
private:
FillRule m_FillRule;
GLuint m_ContourBuffer = 0;
public:
OpenGLRenderPath();
~OpenGLRenderPath();
void fillRule(FillRule value) override;
FillRule fillRule() const { return m_FillRule; }
void stencil(OpenGLRenderer* renderer, const Mat2D& transform);
void cover(OpenGLRenderer* renderer,
const Mat2D& transform,
const Mat2D& localTransform = Mat2D::identity());
};
} // namespace rive
#endif