mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 22:30:30 +01:00
19 lines
497 B
C++
19 lines
497 B
C++
#ifndef KANDINSKY_FRAMEBUFFER_CONTEXT_H
|
|
#define KANDINSKY_FRAMEBUFFER_CONTEXT_H
|
|
|
|
#include <kandinsky/context.h>
|
|
#include <kandinsky/framebuffer.h>
|
|
|
|
class KDFrameBufferContext : public KDContext {
|
|
public:
|
|
KDFrameBufferContext(KDFrameBuffer * frameBuffer);
|
|
protected:
|
|
void pushRect(KDRect, const KDColor * pixels) override;
|
|
void pushRectUniform(KDRect rect, KDColor color) override;
|
|
void pullRect(KDRect rect, KDColor * pixels) override;
|
|
private:
|
|
KDFrameBuffer * m_frameBuffer;
|
|
};
|
|
|
|
#endif
|