public override void LoadContent(GuiEngine engine) { fTexture = GuiPainter.GetTexture1x1(Device); base.LoadContent(engine); if (Childs != null) { foreach (var child in Childs) { child.Header.LoadContent(engine); } } }
public override void LoadContent(GuiEngine engine) { fTexture = GuiPainter.GetTexture1x1(Device); /* * int w = 100; * int h = 2; * int pixels = w * h; * Color[] colors = new Color[pixels]; * Texture2D texture = new Texture2D(device, w,h); * int index = 0; * for (int y = 0; y < h; y++) * { * for (int x = 0; x < w; x++) * { * Color c = new Color(1.0f*x / w, 1.0f * y / h, 1.0f); * colors[index++] = c; * } * } * texture.SetData<Color>(colors); * fTexture = texture; */ base.LoadContent(engine); }
public override void LoadContent(GuiEngine engine) { fTexture = GuiPainter.GetTexture1x1(Device); base.LoadContent(engine); }