CSharpGL.GlyphInfo.GlyphInfo C# (CSharp) Method

GlyphInfo() public method

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