17 lines
317 B
C++
17 lines
317 B
C++
#pragma once
|
|
#include "Texture.h"
|
|
|
|
class Particle {
|
|
public:
|
|
Particle() = default;
|
|
Particle(const Vector2f& pos, const Vector2f& velocity, Texture* pTexture);
|
|
void Update(float elapsedSec);
|
|
void Draw() const;
|
|
private:
|
|
Vector2f m_Position;
|
|
Vector2f m_Velocity;
|
|
Vector2f m_Acceleration;
|
|
|
|
Texture* m_pTexture;
|
|
};
|