Moved mouse handling to the model.

This commit is contained in:
leo
2014-10-05 05:21:51 +00:00
parent d1f1401ca3
commit 2ca5665235
22 changed files with 1004 additions and 1244 deletions
+19
View File
@@ -8,6 +8,25 @@
lcTexture* gGridTexture;
lcTexture* lcLoadTexture(const QString& FileName, int Flags)
{
lcTexture* Texture = new lcTexture();
if (!Texture->Load(FileName.toLatin1().constData(), Flags)) // todo: qstring
{
delete Texture;
Texture = NULL;
}
return Texture;
}
void lcReleaseTexture(lcTexture* Texture)
{
if (Texture && Texture->Release() == 0)
delete Texture;
}
lcTexture::lcTexture()
{
mTexture = 0;