\r
switch (ext)\r
{\r
- case ".TGA": tex = LoadTarga(file); break;\r
- case ".BMP": tex = LoadBitmap(file); break;\r
+ case ".TGA": tex = LoadTGA(file); break;\r
+ case ".BMP": tex = LoadBMP(file); break;\r
default: throw new Exception("Unsupported texture file: " + file);\r
}\r
\r
return tex;\r
}\r
\r
- unsafe TSOTex LoadTarga(string file)\r
+ unsafe TSOTex LoadTGA(string file)\r
{\r
using (FileStream fs = File.OpenRead(file))\r
{\r
}\r
}\r
\r
- unsafe TSOTex LoadBitmap(string file)\r
+ TSOTex LoadBMP(string file)\r
{\r
using (FileStream fs = File.OpenRead(file))\r
{\r