mirror of https://github.com/AxioDL/metaforce.git
Merge branch 'master' of ssh://gitlab.axiodl.com:6431/AxioDL/specter
This commit is contained in:
commit
b6501850de
|
@ -50,7 +50,13 @@ public:
|
||||||
for (int r=0 ; r<ROWS ; ++r)
|
for (int r=0 ; r<ROWS ; ++r)
|
||||||
m_icons[c][r] = MakeIcon(c, r);
|
m_icons[c][r] = MakeIcon(c, r);
|
||||||
}
|
}
|
||||||
void destroyAtlas() { m_tex.reset(); }
|
void destroyAtlas()
|
||||||
|
{
|
||||||
|
for (int c=0 ; c<COLS ; ++c)
|
||||||
|
for (int r=0 ; r<ROWS ; ++r)
|
||||||
|
m_icons[c][r].m_tex.reset();
|
||||||
|
m_tex.reset();
|
||||||
|
}
|
||||||
Icon& getIcon(size_t c, size_t r) {return m_icons[c][r];}
|
Icon& getIcon(size_t c, size_t r) {return m_icons[c][r];}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue