C# Class CSharpGL.GlyphInfo

绘制一个字符所需要的所有信息
Inheritance: ICloneable
Mostrar archivo Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Properties

Property Type Description
Default GlyphInfo
height int
width int
xoffset int
yoffset int

Public Methods

Method Description
Clone ( ) : object

clone this object.

GlyphInfo ( int xoffset, int yoffset, int width, int height ) : System

绘制一个字符所需要的所有信息

ToRectangle ( int shrinkX, int shrinkY, int shrinkWidth, int shrinkHeight ) : Rectangle

ToString ( ) : string

Method Details

Clone() public method

clone this object.
public Clone ( ) : object
return object

GlyphInfo() public method

绘制一个字符所需要的所有信息
public GlyphInfo ( int xoffset, int yoffset, int width, int height ) : System
xoffset int 此字符的字形在纹理的横向偏移量(左上角)
yoffset int 此字符的字形在纹理的纵向偏移量(左上角)
width int 此字符的字形宽度
height int 此字符的字形高度
return System

ToRectangle() public method

public ToRectangle ( int shrinkX, int shrinkY, int shrinkWidth, int shrinkHeight ) : Rectangle
shrinkX int
shrinkY int
shrinkWidth int
shrinkHeight int
return System.Drawing.Rectangle

ToString() public method

public ToString ( ) : string
return string

Property Details

Default public_oe static_oe property

public static GlyphInfo,CSharpGL Default
return GlyphInfo

height public_oe property

此字符的字形高度
public int height
return int

width public_oe property

此字符的字形宽度
public int width
return int

xoffset public_oe property

此字符的字形在纹理的横向偏移量(左上角)
public int xoffset
return int

yoffset public_oe property

此字符的字形在纹理的纵向偏移量(左上角)
public int yoffset
return int