4 #include "SDL/SDL_opengl.h"
9 Ponto (double x1
, double y1
) {x
= x1
; y
= y1
;}
12 double operator*(const Ponto
&a
, const Ponto
&b
);
13 Ponto
operator-(const Ponto
&a
, const Ponto
&b
);
14 Ponto
operator+(const Ponto
&a
, const Ponto
&b
);
25 Linha(double x1
,double y1
,double x2
, double y2
);
26 Linha(Ponto a
, Ponto b
) {vertices
[0] = a
; vertices
[1] = b
;}
34 Rect(double x1
,double y1
,double x2
, double y2
);
35 Rect(Ponto a
, Ponto b
) {vertices
[0] = a
; vertices
[1] = b
; normaliza();}
38 void drawCircle(double radius
, int lines
);