コード例 #1
0
        private bool LoadTexture(Device device, string textureFileName)
        {
            textureFileName = SystemConfiguration.DataFilePath + textureFileName;

            // Create new texture object.
            Texture = new Texture();

            // Initialize the texture object.
            if (!Texture.Initialize(device, textureFileName))
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
ファイル: Bitmap.cs プロジェクト: nyx1220/sharpdx-examples
        private bool LoadTexture(Device device, string textureFileName)
        {
            textureFileName = SystemConfiguration.DataFilePath + textureFileName;

            // Create the texture object.
            Texture = new Texture();

            // Initialize the texture object.
            Texture.Initialize(device, textureFileName);

            return true;
        }