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
77 lines (47 loc) · 1.68 KB
/
main.cpp
File metadata and controls
77 lines (47 loc) · 1.68 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
69
70
71
72
73
74
75
76
77
#include<iostream>
#include<GL/glut.h>
#include<math.h>
#include "display.cpp"
#include "constant.cpp"
using namespace std;
GLsizei wh=600, ww=800, wx, wy, wx1=800, wy1=600;
int count=0,sub_menu,draw,i,j,k,m,n,pol,flag=0,flag1,fill=0,size=1,save=0;
float a[100][2],b[100][2],textx,texty,textz=0.0,a1=0,a2=0,a3=0,b1=0,b2=0,b3=0;
char* image;
int main() {
}
=======
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();
}