Example #1
0
        public OGLTexture(OGLTextureManager manager, string filename, string key)
        {
            Source = (Bitmap)Bitmap.FromFile(filename);

            CreateOpenGlSurface(Source);
            Filename = filename;
            manager.Add(this, key);
        }
Example #2
0
        public OGLTexture(OGLTextureManager manager, string filename, string key)
        {
            Source = (Bitmap)Bitmap.FromFile(filename);

            CreateOpenGlSurface(Source);
            Filename = filename;
            manager.Add(this, key);
        }
Example #3
0
 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"));
 }