Exemple #1
0
        public SSTexture(string filename)
            : this()
        {
            Bitmap textureBitmap = new Bitmap(SSAssetManager.OpenStream(filename));

            loadFromBitmap(textureBitmap, name: filename);
        }
Exemple #2
0
        public SSTextureWithAlpha(string path)
            : base()
        {
            Bitmap textureBitmap = new Bitmap(SSAssetManager.OpenStream(path));
            string name          = Path.GetFileName(path);

            loadFromBitmap(textureBitmap, name, hasAlpha: true);
        }
Exemple #3
0
 public SSGeometryShader(string path)
     : base(ShaderType.GeometryShader, Path.GetFileName(path),
            SSAssetManager.OpenStream(path).AsString())
 {
 }