コード例 #1
0
ファイル: Renderer.cs プロジェクト: entdark/ColorLinesNG
 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
ファイル: Renderer.cs プロジェクト: entdark/ColorLinesNG
 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
ファイル: Renderer.cs プロジェクト: entdark/ColorLinesNG
 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
ファイル: Renderer.cs プロジェクト: entdark/ColorLinesNG
 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
ファイル: RendererSkia.cs プロジェクト: entdark/ColorLinesNG2
 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
ファイル: RendererSkia.cs プロジェクト: entdark/ColorLinesNG2
 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
ファイル: RendererSkia.cs プロジェクト: entdark/ColorLinesNG2
 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));
 }