コード例 #1
0
 private void Initialize(GraphicsDevice graphicsDevice, FontStb font, float height, string text)
 {
     name = (text + height.ToString()).GetHashCode().ToString();
     this.graphicsDevice = graphicsDevice;
     this.font           = font;
     this.text           = text;
     this.height         = height;
     GetGlyph();
 }
コード例 #2
0
 private void Initialize(GraphicsDevice graphicsDevice, FontStb font, float height)
 {
     this.graphicsDevice = graphicsDevice;
     this.font           = font;
     this.height         = height;
     Glyphs = new Dictionary <char, Glyph>();
     Glyph[] Glyph = font.GetGlyphsFromCodepoint(height, new int[] { 'A', '国' }, 1f, 1f);
     defaultGlyph   = Glyph[0];
     defaultGlyphCn = Glyph[1];
 }
コード例 #3
0
 public void Refresh(FontStb font, float height, string text)
 {
     Initialize(graphicsDevice, font, height, text);
 }
コード例 #4
0
 public DynamicTextureTextStb(GraphicsDevice graphicsDevice, FontStb font, float height, string text) : base(graphicsDevice, ((text + height.ToString()).GetHashCode()).ToString())
 {
     Initialize(graphicsDevice, font, height, text);
 }
コード例 #5
0
 public DynamicTextureFont(GraphicsDevice graphicsDevice, FontStb font, float height) : base(graphicsDevice)
 {
     Initialize(graphicsDevice, font, height);
 }