public OGLTexture(OGLTextureManager manager, string filename, string key) { Source = (Bitmap)Bitmap.FromFile(filename); CreateOpenGlSurface(Source); Filename = filename; manager.Add(this, key); }
public ExtraTileInfo (LayMapTile tile, OGLTextureManager manager) { Parent = tile; TextureManager = manager; Texture = TextureManager.LoadTexture(EvilTools.GetExecutingPath(@"MapEditor\Tiles\" + tile.Id + ".png")); if (Texture == null) Texture = TextureManager.LoadTexture(EvilTools.GetExecutingPath(@"MapEditor\Tiles\unknown.png")); }