mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 21:01:48 +01:00
16 lines
444 B
C++
16 lines
444 B
C++
#include "pch.h"
|
|
#include "Building.h"
|
|
|
|
#include <iostream>
|
|
Building::Building(const std::string& filePath, const Vector2f& position, TextureManager* pTextureManager): m_Position(position) {
|
|
m_Texture = pTextureManager->GetTexture(filePath);
|
|
m_Size = Vector2f(m_Texture->GetWidth(), m_Texture->GetHeight());
|
|
}
|
|
Building::~Building() = default;
|
|
|
|
void Building::Draw() const {
|
|
m_Texture->Draw(m_Position);
|
|
}
|
|
void Building::Update(float dt) {
|
|
}
|