ES-DE/src/components/HelpComponent.h

28 lines
579 B
C
Raw Normal View History

#pragma once
#include "../GuiComponent.h"
class ImageComponent;
class TextureResource;
class ComponentGrid;
class HelpComponent : public GuiComponent
{
public:
HelpComponent(Window* window);
void clearPrompts();
void setPrompts(const std::vector<HelpPrompt>& prompts);
void render(const Eigen::Affine3f& parent) override;
private:
std::shared_ptr<TextureResource> getIconTexture(const char* name);
std::map< std::string, std::shared_ptr<TextureResource> > mIconCache;
std::shared_ptr<ComponentGrid> mGrid;
void updateGrid();
std::vector<HelpPrompt> mPrompts;
};