-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathline.h
25 lines (22 loc) · 901 Bytes
/
line.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _LINE_H
#define _LINE_SVE
#include <stdio.h>
#include <math.h>
#define PI 3.14159265
typedef struct Coord{
int x;
int y;
};
extern SDL_Surface *screen;
void gen_pt_with_gradient(float gradient, Coord *output, Coord *start_coord=NULL, int radius=100);
void putpixel(int x,int y, int color);
void putpixel(Coord *pt, int color);
bool practically_nothing(int value);
void oct_x_dom_imp(Coord *ptA, Coord *ptB,int colour);
void oct_y_dom_imp(Coord *ptA, Coord *ptB,int colour);
void line(Coord *ptA, Coord *ptB, int colour=0xff0000);
void line (int startx, int starty, int stopx, int stopy, int colour=0xff0000);
void testcases(float *gradient_list,int list_length,Coord **output, Coord *start_coord=NULL, int radius =10 );
void create_npoly(int num_corners, Coord **output, Coord *start_coord=NULL,int radius=100,float theta=0);
void regupoly(Coord *points, int number_of_points);
#endif