COMPLETER LA CLASSE ABSTRAITE
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <iostream>
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <exception>
|
||||
|
||||
class Sprite {
|
||||
private:
|
||||
@@ -11,6 +12,7 @@ private:
|
||||
float posY = 0.0f;
|
||||
public:
|
||||
Sprite() = default;
|
||||
Sprite(SDL_Renderer* renderer, std::string filePath);
|
||||
virtual ~Sprite() = default;
|
||||
|
||||
// Pure virtual function to be implemented by derived classes
|
||||
|
||||
Reference in New Issue
Block a user