Files
DrumMachine/graphrenderer.h

21 lines
665 B
C
Raw Permalink Normal View History

2020-04-27 22:59:30 +02:00
#pragma once
2022-12-27 21:19:21 +01:00
#include <utility>
2020-04-27 22:59:30 +02:00
class QPixmap;
class QSize;
class QPainter;
class QPalette;
2022-12-27 21:19:21 +01:00
class QRect;
class QPoint;
2020-04-27 22:59:30 +02:00
2022-12-27 21:19:21 +01:00
struct frame_t;
2020-04-27 22:59:30 +02:00
namespace GraphRenderer
{
2020-04-30 21:06:17 +02:00
QPixmap render(const QSize &size, const frame_t *begin, const frame_t *end, const QPalette &palette);
void render(const QRect &rect, const frame_t *begin, const frame_t *end, QPainter &painter);
void render(const QPoint &pos, int height, std::pair<frame_t, frame_t> *begin, std::pair<frame_t, frame_t> *end, QPainter &painter);
void reduceSamples(const frame_t *inputBegin, const frame_t *inputEnd, std::pair<frame_t, frame_t> *outputBegin, std::pair<frame_t, frame_t> *outputEnd);
2020-04-27 22:59:30 +02:00
}