2023-03-02 02:37:42 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Common.h"
|
|
|
|
class GameEngine; // forward declare
|
|
|
|
|
|
|
|
class IndexTexture {
|
|
|
|
public:
|
|
|
|
sf::Texture texture;
|
|
|
|
int grid_size, grid_width, grid_height;
|
|
|
|
static GameEngine* game;
|
|
|
|
sf::IntRect spriteCoordinates(int);
|
2023-03-02 23:57:09 +00:00
|
|
|
IndexTexture(sf::Texture, int, int, int);
|
2023-03-02 02:37:42 +00:00
|
|
|
};
|