Exemplo n.º 1
0
        public void Draw(Vector2 Location, float Angle, float Scale)
        {
            Color col = new Color(255, 255, 255, 64);

            if (Triangles != null)
            {
                foreach (Triangle tri in Triangles)
                {
                    DrawLineEx(tri.A.Rotate(Angle) * Scale + Location, tri.B.Rotate(Angle) * Scale + Location, 2.5f, col);
                    DrawLineEx(tri.B.Rotate(Angle) * Scale + Location, tri.C.Rotate(Angle) * Scale + Location, 2.5f, col);
                    DrawLineEx(tri.C.Rotate(Angle) * Scale + Location, tri.A.Rotate(Angle) * Scale + Location, 2.5f, col);
                }
            }
            else
            {
                DrawCircleLines((int)Location.X, (int)Location.Y, Radius * Scale, col);
            }
        }
Exemplo n.º 2
0
 public static extern void DrawText([MarshalAs(UnmanagedType.LPUTF8Str)] string text, int posX, int posY, int fontSize, Raylib_cs.Color color);