ARSA Language  2.9
(Recursion, Encryption, GPU and Web 3.0)
primitives.h
Go to the documentation of this file.
1 
38 class draw
39 {
40 public:
42 
47  void pixel(int x, int y, int thickness = 1, int r = 255, int g = 255, int b = 255, int a = 255);
48 
50 
57  void line(int x1, int y1, int x2, int y2, int thickness = 1, int r = 255, int g = 255, int b = 255, int a = 255);
58 
60 
66  void rect(int x1, int y1, int x2, int y2, int thickness = 1, bool fill = false, int r = 255, int g = 255, int b = 255, int a = 255);
67 
69 
88  void poly(int cx, int cy, int thickness = 1, int radiusx = 10, int radiusy = 10, int vertexCount = 10, bool fill = false, int start_percent = 0, int end_percent = 100, const char* texture_name = 0, int r = 255, int g = 255, int b = 255, int a = 255);
89 
91 
97  void circle(int cx, int cy, int radiusx = 10, int radiusy = 10, int r = 255, int g = 255, int b = 255, int a = 255);
98 
100 
106  void cross(int cx, int cy, int length = 5, int thickness = 1, int r = 255, int g = 255, int b = 255, int a = 255);
107 
109 
115  void plus(int cx, int cy, int length = 5, int thickness = 1, int r = 255, int g = 255, int b = 255, int a = 255);
116 
118 
121  void setorder( int order = 10);
122 
124 
127  int getorder();
128 };
void line(int x1, int y1, int x2, int y2, int thickness=1, int r=255, int g=255, int b=255, int a=255)
Draws a 2d line.
void rect(int x1, int y1, int x2, int y2, int thickness=1, bool fill=false, int r=255, int g=255, int b=255, int a=255)
Draws a 2d rectangle.
void plus(int cx, int cy, int length=5, int thickness=1, int r=255, int g=255, int b=255, int a=255)
Draws a plus. this's macro of line()
r
rotation layer
Definition: builtin.h:39
int getorder()
get primitives draw order
void setorder(int order=10)
set primitives draw order
void pixel(int x, int y, int thickness=1, int r=255, int g=255, int b=255, int a=255)
Draws a pixel.
void poly(int cx, int cy, int thickness=1, int radiusx=10, int radiusy=10, int vertexCount=10, bool fill=false, int start_percent=0, int end_percent=100, const char *texture_name=0, int r=255, int g=255, int b=255, int a=255)
Draws a non filled concyclic regular 2d polygon.
void cross(int cx, int cy, int length=5, int thickness=1, int r=255, int g=255, int b=255, int a=255)
Draws a cross. this's macro of line()
void circle(int cx, int cy, int radiusx=10, int radiusy=10, int r=255, int g=255, int b=255, int a=255)
Draws a non filled 2d circle. this's macro of poly()