Working on UI part
This commit is contained in:
1 parent
6c8fcf17b6
commit
0da1ae124c
17 files changed
+221
-42
No files matched your search
@@ -62,13 +62,17 @@ namespace ZL
|
||||
TextureDataStruct CreateTextureDataFromPng(const std::string& fullFileName, const std::string& ZIPFileName = "");
|
||||
#endif
|
||||
|
||||
bool IsPowerOf2(size_t n);
|
||||
size_t NextPowerOf2(size_t n);
|
||||
TextureDataStruct ResizeTextureDataToPOT(const TextureDataStruct& texData);
|
||||
|
||||
class TextureManager
|
||||
{
|
||||
public:
|
||||
std::shared_ptr<Texture> LoadFromBmp24(const std::string& fileName, const std::string& zipFile = "");
|
||||
std::shared_ptr<Texture> LoadFromBmp32(const std::string& fileName, const std::string& zipFile = "");
|
||||
std::shared_ptr<Texture> LoadFromBmp24(const std::string& fileName, const std::string& zipFile = "", bool resizeToPOT = false);
|
||||
std::shared_ptr<Texture> LoadFromBmp32(const std::string& fileName, const std::string& zipFile = "", bool resizeToPOT = false);
|
||||
#ifdef PNG_ENABLED
|
||||
std::shared_ptr<Texture> LoadFromPng(const std::string& fileName, const std::string& zipFile = "");
|
||||
std::shared_ptr<Texture> LoadFromPng(const std::string& fileName, const std::string& zipFile = "", bool resizeToPOT = false);
|
||||
#endif
|
||||
|
||||
void Unload(const std::string& fileName, const std::string& zipFile = "");
|
||||
|
||||
Reference in new issue
Block a user