public SSTexture_FromAsset(SSAssetItem textureAsset)
        {
            this.textureAsset = textureAsset;
            Bitmap textureBitmap = new Bitmap (textureAsset.Open());

            this.loadFromBitmap (textureBitmap, name: textureAsset.resourceName);
        }
Esempio n. 2
0
 public SSShader(ShaderType type, string shaderName, SSAssetItem shaderAsset)
     : this(type, shaderName, shaderAsset.Open().AsString())
 {
 }