#pragma once
#include <AUI/View/AView.h>
#include <AUI/GL/Program.h>
#include <AUI/GL/Texture2D.h>
class FractalView :
public AView {
private:
glm::dmat4 mTransform;
float mAspectRatio;
void handleMatrixUpdated();
public:
FractalView();
void reset();
void setIterations(unsigned it);
void onKeyDown(AInput::Key key) override;
void onKeyRepeat(AInput::Key key) override;
void setSize(glm::ivec2 size) override;
glm::dvec2 getPlotPosition() const;
double getPlotScale() const;
void setPlotPositionAndScale(glm::dvec2 position, double scale);
signals:
};
Base class of all UI objects.
Definition AView.h:78
virtual void render(ARenderContext ctx)
Draws this AView. Noone should call this function except rendering routine.
virtual void onScroll(const AScrollEvent &event)
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:179
ASignal< Args... > emits
A signal declaration.
Definition ASignal.h:572
Render context passed to AView::render.
Definition ARenderContext.h:43