mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-18 12:49:20 +01:00
Basic screen system
This commit is contained in:
19
Game/Gui/Button.h
Normal file
19
Game/Gui/Button.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "Texture.h"
|
||||
|
||||
class Button
|
||||
{
|
||||
public:
|
||||
Button() = default;
|
||||
Button(const std::string& filePath, Point2f pos, Point2f size);
|
||||
void Draw() const;
|
||||
void Update(float elapsedSec);
|
||||
|
||||
private:
|
||||
Texture* m_Texture{ nullptr };
|
||||
Point2f m_Position;
|
||||
Point2f m_Size;
|
||||
|
||||
bool m_IsHovered{ false };
|
||||
bool m_IsPressed{ false };
|
||||
};
|
||||
Reference in New Issue
Block a user