Пример #1
0
 public static void Circle(float xCentre, float yCentre, float radius, Color colour)
 {
     float [] verticies = new float[(circleVerticies + 2) * 2];        //+2 verticies for centre and the same end point as the start one
     verticies[0] = xCentre;
     verticies[1] = yCentre;
     for (int i = 0; i <= circleVerticies; i++)
     {
         double angle = 2 * Math.PI * (double)i / circleVerticies;
         verticies[i * 2 + 2] = xCentre + (float)Math.Cos(angle) * radius;
         verticies[i * 2 + 3] = yCentre + (float)Math.Sin(angle) * radius;
     }
     CLReQueue.AddToQueue(new CLReEntity(verticies, colour, Color.Cyan, null, All.TriangleFan));
 }
Пример #2
0
 public static void Text(string text, float x, float y, float size, Color colour, Paint.Align align, float textInterval = 1.337f)
 {
     CLReQueue.AddToQueue(new CLReLabelEntity(text, x, y, size, colour, align, textInterval));
 }
Пример #3
0
 public static void Rect(float x, float y, float width, float height, int textureId)
 {
     CLReQueue.AddToQueue(new CLReEntity(PosResToVerticies(x, y, width, height), Color.Cyan, Color.Cyan, textureId: textureId, hasTexture: true, textureCoords: null));
 }
Пример #4
0
 public static void Rect(float x, float y, float width, float height, Color colour)
 {
     CLReQueue.AddToQueue(new CLReEntity(PosResToVerticies(x, y, width, height), colour, Color.Cyan, textureCoords: null));
 }
Пример #5
0
 public static void View(View view, float x, float y, float width, float height)
 {
     CLReQueue.AddToQueue(new CLReViewEntity(view, x, y, width, height));
 }
Пример #6
0
 public static void Rect(float x, float y, float width, float height, int textureId, float angle)
 {
     CLReQueue.AddToQueue(new CLReEntity(CLReDraw.PosResToVerticies(x, y, width, height), textureId, angle: angle));
 }
Пример #7
0
 public static void Rect(float x, float y, float width, float height, Color colour)
 {
     CLReQueue.AddToQueue(new CLReEntity(CLReDraw.PosResToVerticies(x, y, width, height), -1, colour));
 }