forked from Sanketwable/Graphics_Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
68 lines (40 loc) · 1.45 KB
/
main.cpp
File metadata and controls
68 lines (40 loc) · 1.45 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include<iostream>
#include<GL/glut.h>
#include<math.h>
#include "display.cpp"
#include "constant.cpp"
using namespace std;
FILE *fptr;
char fname[20];
int s=0,wel=0;
void drawstring(float x,float y,float z,char *string);
void setFont(void *font);
void drawpoint(int x, int y);
void paint(int x,int y);
void eraser(int x , int y);
void reset();
void palette(float x1, float y1, float x2, float y2, float x3 , float y3, float x4, float y4);
void draw_pixel(GLfloat x, GLfloat y);
void plotpixels(GLfloat p, GLfloat q, GLfloat x, GLfloat y);
void draw_circle(GLfloat p , GLfloat q , GLfloat r);
void draw_pixel1(GLfloat x, GLfloat y);
void plotpixels1(GLfloat p, GLfloat q, GLfloat x, GLfloat y);
void draw_circle(GLfloat p, GLfloat q, GLfloat r);
void edgedetect(float x1, float y1, float x2, float y2, int *le, int *re);
void scanfill(GLint num1, GLint num2);
void detect_point(GLint num1, GLint num2, int x, int y);
void keys(unsigned char key, int x, int y);
void myMouse(int btn, int state, int x, int y);
void myReshape(GLsizei w,GLsizei h);
void point_size(int id);
void right(int id);
int main(int argc, char **argv) {
image = new char[3*1450*900*sizeof(char];
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_SINGLE| GLUT_RGB);
glutInitWindowPosition(100,100);
glutInitWindowSize(ww,wh);
glutCreateWindow("G-Edit --Wable Sanket--Avinash Yadav--Shubhang Bhagat");
glutDisplayFunc(display);
glutMainLoop();
}