ES-DE/src/components/SwitchComponent.h
Aloshi 542d41c682 Move from homegrown Vector2 class to Eigen.
Pass a matrix (Eigen::Affine3f) in GuiComponent::render instead of doing
glTranslate behind the scenes.
2013-07-10 06:29:43 -05:00

19 lines
342 B
C++

#pragma once
#include "../GuiComponent.h"
class SwitchComponent : public GuiComponent
{
public:
SwitchComponent(Window* window, bool state = false);
bool input(InputConfig* config, Input input) override;
void render(const Eigen::Affine3f& parentTrans) override;
bool getState();
void setState(bool state);
private:
bool mState;
};