mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-08 07:09:52 +00:00
some work on quadgrid, still untested
This commit is contained in:
parent
ad36f6cf99
commit
fa35ee41bd
3 changed files with 54 additions and 4 deletions
|
@ -44,9 +44,10 @@ public:
|
|||
|
||||
virtual void onRender();
|
||||
virtual void onUpdate(float dt);
|
||||
virtual void onSetTexture();
|
||||
|
||||
void resetUV(float xmul = 1, float ymul = 1);
|
||||
void resetPos(float xmul = 1, float ymul = 1);
|
||||
void resetPos(float w, float h, float xoffs = 0, float yoffs = 0);
|
||||
|
||||
inline size_t quadsX() const { return _w; }
|
||||
inline size_t quadsY() const { return _h; }
|
||||
|
@ -62,7 +63,7 @@ public:
|
|||
|
||||
private:
|
||||
QuadGrid(size_t w, size_t h);
|
||||
const size_t _w, _h;
|
||||
const size_t _w, _h; // number of quads in each direction (2x3 quads => 3x4 grid points)
|
||||
std::vector<Point> _points;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue