Added cTexturePacker. Utility class to create texture atlas and save the subtextures as shapes.

Added cTextureGroupLoader. Utility class to load the texture atlas saved shapes ( sync and async ).
Added cTexturePackerNode and cTexturePackerTex, both are helpers to create the texture atlas, and not visibles to the end user.
Added some helpers functions for file path management.
Added some new functions for cImage. scaling, resize, thumnails, copy image into image, and some others, and moved some cTexture functions to cImage.
Added stbi_info support for BMP,PSD,HDR,PIC in stb_image.
Added Progress() function to cResourceLoader, to know the current loading progress in percent ( 0%-100% ).
Added api calls to some classes. But i'm still looking how to work with DLL.
Modified some details in cTimer and cTimeElapsed.
The code was only tested on linux, so, still need some checking, but, it's a lot of code, so i'll commit it and fix bugs if it's necessary.
This commit is contained in:
spartanj
2010-08-20 01:47:07 -03:00
parent 32e36d645a
commit 28868341ec
46 changed files with 2027 additions and 188 deletions

View File

@@ -145,5 +145,9 @@ void cResourceLoader::SetLoaded() {
}
}
eeFloat cResourceLoader::Progress() {
return ( (eeFloat)mObjsLoaded.size() / (eeFloat)( mObjs.size() + mObjsLoaded.size() ) ) * 100.f;
}
}}