(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// MonoGame - Copyright (C) The MonoGame Team
|
||||
// This file is subject to the terms and conditions defined in
|
||||
// file 'LICENSE.txt', which is part of this source code package.
|
||||
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace Microsoft.Xna.Framework.Content.Pipeline.Graphics
|
||||
{
|
||||
public class Dxt3BitmapContent : DxtBitmapContent
|
||||
{
|
||||
public Dxt3BitmapContent(int width, int height)
|
||||
: base(16, width, height)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the corresponding GPU texture format for the specified bitmap type.
|
||||
/// </summary>
|
||||
/// <param name="format">Format being retrieved.</param>
|
||||
/// <returns>The GPU texture format of the bitmap type.</returns>
|
||||
public override bool TryGetFormat(out SurfaceFormat format)
|
||||
{
|
||||
format = SurfaceFormat.Dxt3;
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a string description of the bitmap.
|
||||
/// </summary>
|
||||
/// <returns>Description of the bitmap.</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
return "DXT3 " + Width + "x" + Height;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user