GL - Resource get size

This commit is contained in:
Pontus Fransson 2014-01-27 13:54:56 +01:00
parent d6432b2c73
commit 51a1b3ecff
2 changed files with 12 additions and 0 deletions

View File

@ -214,7 +214,14 @@ int OysterResource::GetResourceId(const wchar_t c[])
return -1;
}
int OysterResource::GetResourceSize(const OHRESOURCE& resource)
{
OResource* t = resourcePrivate.FindResource(resource);
if(t) return t->GetResourceSize();
return -1;
}
OResource* ResourcePrivate::FindResource(const OHRESOURCE& h) const
{

View File

@ -151,6 +151,11 @@ namespace Oyster
*/
static int GetResourceId(const wchar_t filename[]);
static int GetResourceSize(const OHRESOURCE& resource);
};
}
}