public void Render() { window = new RenderWindow(new Window.VideoMode(500, 300), "test"); window.SetVisible(true); window.Closed += new EventHandler(OnClosed); Spritehandler Sprite_Library = new Spritehandler(); Font testfont = new Font("font.ttf"); Text testText = new Text(); Tag_Listings Tagtest = new Tag_Listings(); Tag testtag = Tagtest.GetTag("Metal"); testText.DisplayedString = testtag.Identifier; testText.Font = testfont; testText.CharacterSize = 24; testText.Color = Color.Red; testText.Position = new System.Vector2f(0, 0); float small = 0; while (window.IsOpen) { small += 0.001f; testText.Position = new System.Vector2f(small, small); window.Clear(); //Sprite_Library.Draw_Sprite("Testsprite.png", 1, 1, window); window.Draw(testText); window.DispatchEvents(); window.Display(); } }
public Material_Handler(Tag_Listings Tag_Listings_Reference) { Tag_Dictionary = Tag_Listings_Reference; Create_Material("NULL", 0, 0, Tag_Dictionary.GetTag("NULL")); }