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)); }
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)); }
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)); }
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)); }
public static void View(View view, float x, float y, float width, float height) { CLReQueue.AddToQueue(new CLReViewEntity(view, x, y, width, height)); }
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)); }
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)); }