Witam, pisze sobie klase obliczająca deltatime, i kompilator wywala mi takie błędy. Siedzie na tym juz ponad godzinę, i nie moge dojsc co jest przyczyną. Przesylam zdjecie bledow i kod.
Poniżej kod:
Deltatime.h
#pragma once
#include "Entity.h"
class DeltaTime
{
friend class Player;
public:
Clock clock;
float dt;
float multiplier = 60.f;
DeltaTime();
virtual ~DeltaTime();
void getDeltaTime();
};
Deltatime.cpp
#include "DeltaTime.h"
DeltaTime::DeltaTime()
{
}
DeltaTime::~DeltaTime()
{
}
void DeltaTime::getDeltaTime()
{
dt = clock.restart().asSeconds();
}
Co jest nie tak, prosze o pomoc i z gory dziekuje, pozdro.