X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FTGALoader.cpp;h=45bde23d592c4c60d1117befa13372afa9182d57;hb=34ce0cdd42f673a04aa29ae148d2206420dfd813;hp=c9796b528b34ba8cce8953c774c6e71feef16f08;hpb=6aeefd781d62a9b5b8cf2f4d3a7ba4abaf82f54f;p=lugaru.git diff --git a/Source/TGALoader.cpp b/Source/TGALoader.cpp index c9796b5..45bde23 100644 --- a/Source/TGALoader.cpp +++ b/Source/TGALoader.cpp @@ -21,21 +21,11 @@ along with Lugaru. If not, see . #include "Game.h" #include "TGALoader.h" -extern float texdetail; -extern TGAImageRec texture; -extern short vRefNum; -extern long dirID; -extern bool visibleloading; - -extern bool LoadImage(const char * fname, TGAImageRec & tex); -/********************> LoadTGA() <*****/ -bool upload_image(const unsigned char* filePath, bool hasalpha) -{ - if (visibleloading) - Game::LoadingScreen(); +extern ImageRec texture; + +extern bool load_image(const char * fname, ImageRec & tex); - // for Windows, just use TGA loader for now - char fileName[256]; - CopyPascalStringToC( filePath, fileName); - return (LoadImage(fileName, texture)); +bool upload_image(const char* fileName) +{ + return load_image(fileName, texture); }