Implemented resource manager which can load textures and levels.

Implemented script to generate Resources.g.h file linking assets to code.
Added assets from old project.
This commit is contained in:
2016-11-12 14:17:00 +02:00
parent 294fd6e2ac
commit 914ae0de0d
74 changed files with 14937 additions and 304 deletions

View File

@@ -32,6 +32,8 @@ namespace model {
Cell cell(size_t layer, size_t row, size_t col) const;
void setCell(size_t layer, size_t row, size_t col, Cell value);
size_t m_cellWidth, m_cellHeight;
private:
Cell* m_cells;
size_t m_layers;

24
src/model/Player.h Normal file
View File

@@ -0,0 +1,24 @@
/*
* Player.h
*
* Created on: Nov 12, 2016
* Author: tibi
*/
#ifndef MODEL_PLAYER_H_
#define MODEL_PLAYER_H_
namespace farmlands {
namespace model {
struct Player
{
float posX, posY;
};
}
}
#endif /* MODEL_PLAYER_H_ */