public void DrawFormSolid(Vector4 col, int x = 0, int y = 0, int w = -1, int h = -1) { if (w == -1) { w = W; h = H; } Pen2D.Rect(GX + x, GY + y, w, h, col * UI.BootAlpha); }
public static void Draw(Font2D font, string text, int x, int y, Vector4 col) { int dx = x; Pen2D.BlendMod = PenBlend.Alpha; foreach (char c in text) { VGlyph cg = font.Glypth[c]; Pen2D.Rect(dx, y, cg.W, cg.H, cg.Img, col); dx += (int)(cg.W / 1.3f); } }
public void DrawForm(Texture2D tex, Vector4 col, int x = 0, int y = 0, int w = -1, int h = -1) { Pen2D.BlendMod = PenBlend.Alpha; int dw = W; int dh = H; if (w != -1) { dw = w; dh = h; } Pen2D.Rect(GX + x, GY + y, dw, dh, tex, col * UI.BootAlpha); }
public void Render() { if (GeneratedGeo == false) { GenerateGeo(); } float a = 0; float ai = 1.0f / (float)RenW; for (int x = 0; x < RenW; x++) { Pen2D.Rect(RenX + x, RenY, 2, RenH, new OpenTK.Vector4(a, a, a, 1.0f)); a += ai; } }