extern int netdatanew;
extern float mapinfo;
extern bool stillloading;
-extern ImageRec texture;
extern short vRefNum;
extern long dirID;
extern int mainmenu;
extern int whichjointstartarray[26];
extern int whichjointendarray[26];
extern int difficulty;
-extern float tintr, tintg, tintb;
extern float slomospeed;
extern bool gamestarted;
}
OPENAL_Close();
- if (texture.data) {
- free(texture.data);
- }
- texture.data = 0;
#endif
}
texdetail = 1;
//Load Image
- upload_image(ConvertFileName(fileName));
+ ImageRec texture;
+ load_image(ConvertFileName(fileName), texture);
texdetail = temptexdetail;
int bytesPerPixel = texture.bpp / 8;
accountactive = Account::loadFile(":Data:Users");
- tintr = 1;
- tintg = 1;
- tintb = 1;
-
whichjointstartarray[0] = righthip;
whichjointendarray[0] = rightfoot;
stillloading = 1;
- texture.data = ( GLubyte* )malloc( 1024 * 1024 * 4 );
-
int temptexdetail = texdetail;
texdetail = 1;
text->LoadFontTexture(":Data:Textures:Font.png");