private void AddTexture(string name, string filename)
        {
            var tex = new Texture
            {
                Name     = name,
                Filename = $"Textures\\{filename}"
            };

            tex.Resource        = TextureUtilities.CreateTextureFromDDS(Device, tex.Filename);
            _textures[tex.Name] = tex;
        }
Exemplo n.º 2
0
        private void LoadTextures()
        {
            var woodCrateTex = new Texture
            {
                Name     = "woodCrateTex",
                Filename = "Textures/WoodCrate01.dds"
            };

            woodCrateTex.Resource        = TextureUtilities.CreateTextureFromDDS(Device, woodCrateTex.Filename);
            _textures[woodCrateTex.Name] = woodCrateTex;
        }