mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-28 00:55:39 +00:00
542d41c682
Pass a matrix (Eigen::Affine3f) in GuiComponent::render instead of doing glTranslate behind the scenes.
28 lines
540 B
C++
28 lines
540 B
C++
#ifndef _GUIMENU_H_
|
|
#define _GUIMENU_H_
|
|
|
|
#include "../GuiComponent.h"
|
|
#include "TextListComponent.h"
|
|
|
|
class GuiGameList;
|
|
|
|
class GuiMenu : public GuiComponent
|
|
{
|
|
public:
|
|
GuiMenu(Window* window, GuiGameList* parent);
|
|
virtual ~GuiMenu();
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
void update(int deltaTime) override;
|
|
void render(const Eigen::Affine3f& parentTrans) override;
|
|
|
|
private:
|
|
GuiGameList* mParent;
|
|
TextListComponent<std::string>* mList;
|
|
|
|
void populateList();
|
|
void executeCommand(std::string command);
|
|
};
|
|
|
|
#endif
|