mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 21:01:48 +01:00
18 lines
522 B
C++
18 lines
522 B
C++
#include "pch.h"
|
|
#include "GuiMeter.h"
|
|
|
|
#include "TextureManager.h"
|
|
GuiMeter::GuiMeter(const std::string& filePath, Vector2f pos, Vector2f frameSize, int frameCount, TextureManager* manager): m_Position(pos), m_FrameCount(frameCount) {
|
|
m_Animation = new Animation(manager->GetTexture(filePath),frameCount, 0.0f, Rectf{0, 0, frameSize.x, frameSize.y}, false);
|
|
|
|
}
|
|
GuiMeter::~GuiMeter() {
|
|
delete m_Animation;
|
|
}
|
|
void GuiMeter::Draw() const {
|
|
m_Animation->Draw(m_Position);
|
|
}
|
|
void GuiMeter::Update(float elapsedSec) {
|
|
|
|
|
|
} |