Use base Texture2D instead of AlphaTexture2D.

This commit is contained in:
the_fiddler 2008-11-25 16:43:21 +00:00
parent 8e7348d085
commit d840251dbd

View file

@ -34,7 +34,7 @@ namespace OpenTK.Graphics
{ {
struct CachedGlyphInfo struct CachedGlyphInfo
{ {
public readonly AlphaTexture2D Texture; public readonly Texture2D Texture;
public readonly RectangleF RectangleNormalized; public readonly RectangleF RectangleNormalized;
public Rectangle Rectangle public Rectangle Rectangle
{ {
@ -49,7 +49,7 @@ namespace OpenTK.Graphics
} }
// Rect denotes the absolute position of the glyph in the texture [0, Texture.Width], [0, Texture.Height]. // Rect denotes the absolute position of the glyph in the texture [0, Texture.Width], [0, Texture.Height].
public CachedGlyphInfo(AlphaTexture2D texture, Rectangle rect) public CachedGlyphInfo(Texture2D texture, Rectangle rect)
{ {
Texture = texture; Texture = texture;
RectangleNormalized = new RectangleF( RectangleNormalized = new RectangleF(