Beispiel #1
0
 internal int GetTexture(string name)
 {
     if (!textures.Contains(name))
     {
         BoolRef  found   = new BoolRef();
         BitmapCi bmp     = p.BitmapCreateFromPng(GetFile(name), GetFileLength(name));
         int      texture = p.LoadTextureFromBitmap(bmp);
         textures.Set(name, texture);
         p.BitmapDelete(bmp);
     }
     return(textures.Get(name));
 }