├── 2D Object Animation
├── 2D Object Animation.cbp
├── 2D Object Animation.layout
├── bin
│ └── Debug
│ │ └── 2D Object Animation.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Birthday Greeting Card
├── Birthday Greeting Card.cbp
├── Birthday Greeting Card.layout
├── bday.cbp
├── bday.depend
├── bday.layout
├── bin
│ └── Debug
│ │ ├── Birthday Greeting Card.exe
│ │ └── bday.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Birthday_Card
├── Birthday_Card.cbp
├── Birthday_Card.depend
├── Birthday_Card.layout
├── bin
│ └── Debug
│ │ └── Birthday_Card.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Chess Board
├── Chess Board.cbp
├── Chess Board.layout
├── bin
│ └── Debug
│ │ └── Chess Board.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Circle Algorithm Implementation
├── Circle Algorithm Implementation.cbp
├── Circle Algorithm Implementation.depend
├── Circle Algorithm Implementation.layout
├── bin
│ └── Debug
│ │ └── Circle Algorithm Implementation.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Graphs and Output
├── Birthday Greeting Card - Graph.png
├── Birthday Greeting Card - Output.png
├── Circle Algorithm Implementation.png
├── Half Moon - Output.png
├── Multiple Stars - Graph.png
├── Multiple Stars - Output.png
├── Public Park - Output.png
├── Public Park -Grapgh.png
├── Scenary Of A Village Area - Graph.png
└── Scenary Of A Village Area - Output.png
├── Half Moon
├── Half Moon.cbp
├── Half Moon.layout
├── bin
│ └── Debug
│ │ ├── Half Moon.exe
│ │ └── pracmoon.exe
├── main.cpp
├── obj
│ └── Debug
│ │ └── main.o
├── pracmoon.cbp
└── pracmoon.layout
├── Multiple Stars
├── Multiple Stars.cbp
├── Multiple Stars.depend
├── Multiple Stars.layout
├── bin
│ └── Debug
│ │ └── Multiple Stars.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Public Park 2
├── Park.cbp
├── Park.depend
├── Park.layout
├── bin
│ └── Debug
│ │ └── Park.exe
├── main.cpp
├── main.o
└── obj
│ └── Debug
│ └── main.o
├── Public Park
├── Public Park.cbp
├── Public Park.layout
├── bin
│ └── Debug
│ │ └── Public Park.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── README.md
├── Rubics Cube Solver
├── Rubics Cube Solver.cbp
├── Rubics Cube Solver.layout
└── main.cpp
├── Scenary Of A Village Area
├── Scenary Of A Village Area.cbp
├── Scenary Of A Village Area.layout
├── bin
│ └── Debug
│ │ └── Scenary Of A Village Area.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Urban Area A
├── Urban Area.cbp
├── Urban Area.depend
├── Urban Area.layout
├── bin
│ └── Debug
│ │ └── Urban Area.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Vertex and Polygon
├── Vertex and Polygon.cbp
├── Vertex and Polygon.layout
├── bin
│ └── Debug
│ │ └── Vertex and Polygon.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── Village area
├── bin
│ └── Debug
│ │ └── village area.exe
├── main.cpp
├── obj
│ └── Debug
│ │ └── main.o
├── village area.cbp
├── village area.depend
└── village area.layout
├── apple
├── apple.cbp
├── apple.depend
├── apple.layout
├── bin
│ └── Debug
│ │ └── apple.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── birthday greeting card A
├── bday.cbp
├── bday.depend
├── bday.layout
├── bin
│ └── Debug
│ │ └── bday.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── happy
├── bin
│ └── Debug
│ │ └── happy.exe
├── happy.cbp
├── happy.depend
├── happy.layout
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── house
├── bin
│ └── Debug
│ │ └── task1.exe
├── main.cpp
├── main.o
├── obj
│ └── Debug
│ │ └── main.o
├── task1.cbp
├── task1.depend
└── task1.layout
├── logo
├── bin
│ └── Debug
│ │ └── logo.exe
├── logo.cbp
├── logo.depend
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── park view 2
├── 171-15-8830.cbp
├── 171-15-8830.depend
├── 171-15-8830.layout
├── bin
│ └── Debug
│ │ └── 171-15-8830.exe
├── main.cpp
└── obj
│ └── Debug
│ └── main.o
├── park view A2
├── bin
│ └── Debug
│ │ └── suchona.exe
├── main.cpp
├── obj
│ └── Debug
│ │ └── main.o
├── suchona.cbp
├── suchona.depend
└── suchona.layout
├── park
├── bin
│ └── Debug
│ │ └── park.exe
├── main.cpp
├── obj
│ └── Debug
│ │ └── main.o
├── park.cbp
└── park.layout
└── urban night scenerio
├── bin
└── Debug
│ └── labevu2.exe
├── labevu2.cbp
├── labevu2.depend
├── labevu2.layout
├── main.cpp
└── obj
└── Debug
└── main.o
/2D Object Animation/2D Object Animation.cbp:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/2D Object Animation/2D Object Animation.layout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2D Object Animation/bin/Debug/2D Object Animation.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/2D Object Animation/bin/Debug/2D Object Animation.exe
--------------------------------------------------------------------------------
/2D Object Animation/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #ifdef __APPLE__
3 | #else
4 | #include
5 | #endif
6 |
7 | #include
8 |
9 | #include
10 |
11 |
12 | float p=-10.0; // Display Measurement with ortho starting from the left -10 and right 10
13 |
14 | void MdOmarFaruk(void)
15 | {
16 | glClear(GL_COLOR_BUFFER_BIT);
17 |
18 | if(p<=10) //moving limit with the MdOmarFaruk measurement
19 | p=p+.005; // changing the object position for redisplaying
20 |
21 | else
22 | p=-10; // For backing the object continuously
23 |
24 | glutPostRedisplay(); // To redraw the object in the MdOmarFaruk
25 |
26 |
27 | glBegin(GL_QUADS);
28 | glColor3f(1.0, 1.0, 1.0);
29 | glVertex2f(p,1); // To draw the object position from the left limit,p
30 | glVertex2f(p+3,2);
31 | glVertex2f(p+3,-2);
32 | glVertex2f(p,-3);
33 | glEnd();
34 |
35 | glFlush();
36 | }
37 | void init(void)
38 | {
39 | glClearColor (0.0, 0.0, 0.0, 0.0); // Background Color
40 | glOrtho(-10,10,-10,10,-10,10); // To specify the coordinate & Specify the distances to the nearer and farther depth clipping planes.
41 |
42 | }
43 |
44 | int main()
45 | {
46 | glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB); //Single Frame
47 | glutInitWindowSize (600, 600);
48 | glutInitWindowPosition (100, 100);
49 | glutCreateWindow ("171-15-8709");
50 | init(); // Set up constants with default values
51 | glutDisplayFunc(MdOmarFaruk);
52 | glutMainLoop(); // It enters the GLUT event processing loop.should be called at most once in a GLUT program. Once called, this routine will never return. It will call as necessary any callbacks that have been registered.
53 | return 0;
54 | }
55 |
--------------------------------------------------------------------------------
/2D Object Animation/obj/Debug/main.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/2D Object Animation/obj/Debug/main.o
--------------------------------------------------------------------------------
/Birthday Greeting Card/Birthday Greeting Card.cbp:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Birthday Greeting Card/Birthday Greeting Card.layout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Birthday Greeting Card/bday.cbp:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Birthday Greeting Card/bday.depend:
--------------------------------------------------------------------------------
1 | # depslib dependency file v1.0
2 | 1595308167 source:c:\users\kazi abir\desktop\cg lab\bday\main.cpp
3 |
4 |
5 |
6 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windows.h
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 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winresrc.h
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winuser.h
45 |
46 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnt.h
47 |
48 |
49 |
50 |
51 |
52 |
53 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winerror.h
54 |
55 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\string.h
56 | <_mingw.h>
57 |
58 |
59 | 1250308674 c:\program files (x86)\codeblocks\mingw\include\_mingw.h
60 |
61 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetsd.h
62 |
63 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h
64 |
65 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\poppack.h
66 |
67 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winver.h
68 |
69 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dde.h
70 |
71 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dlgs.h
72 |
73 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commctrl.h
74 |
75 |
76 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\prsht.h
77 |
78 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windef.h
79 |
80 |
81 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wincon.h
82 |
83 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\winbase.h
84 |
85 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wingdi.h
86 |
87 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnls.h
88 |
89 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h
90 |
91 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winreg.h
92 |
93 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsvc.h
94 |
95 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cderr.h
96 |
97 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\ddeml.h
98 |
99 | 1228530716 c:\program files (x86)\codeblocks\mingw\include\imm.h
100 |
101 | 1228530720 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h
102 |
103 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h
104 |
105 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\nb30.h
106 |
107 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpc.h
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h
116 |
117 |
118 |
119 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetyps.h
120 |
121 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h
122 |
123 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h
124 |
125 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h
126 |
127 | 1250308676 c:\program files (x86)\codeblocks\mingw\include\excpt.h
128 | <_mingw.h>
129 |
130 |
131 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\shellapi.h
132 |
133 |
134 |
135 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h
136 |
137 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winperf.h
138 |
139 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commdlg.h
140 |
141 |
142 |
143 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\unknwn.h
144 |
145 |
146 |
147 |
148 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objfwd.h
149 |
150 |
151 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\wtypes.h
152 |
153 |
154 |
155 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h
156 |
157 |
158 |
159 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h
160 |
161 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winspool.h
162 |
163 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsock2.h
164 |
165 |
166 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winsock.h
167 |
168 |
169 |
170 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mswsock.h
171 |
172 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\ole2.h
173 |
174 |
175 |
176 |
177 |
178 |
179 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objbase.h
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\stdlib.h
190 | <_mingw.h>
191 |
192 |
193 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objidl.h
194 |
195 |
196 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cguid.h
197 |
198 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\olectlid.h
199 |
200 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleauto.h
201 |
202 |
203 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\oaidl.h
204 |
205 |
206 |
207 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleidl.h
208 |
209 |
210 | 1453865572 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h
211 |
212 |
213 |
214 |
215 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h
216 |
217 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h
218 |
219 |
220 |
221 |
--------------------------------------------------------------------------------
/Birthday Greeting Card/bday.layout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Birthday Greeting Card/bin/Debug/Birthday Greeting Card.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Birthday Greeting Card/bin/Debug/Birthday Greeting Card.exe
--------------------------------------------------------------------------------
/Birthday Greeting Card/bin/Debug/bday.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Birthday Greeting Card/bin/Debug/bday.exe
--------------------------------------------------------------------------------
/Birthday Greeting Card/obj/Debug/main.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Birthday Greeting Card/obj/Debug/main.o
--------------------------------------------------------------------------------
/Birthday_Card/Birthday_Card.cbp:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Birthday_Card/Birthday_Card.depend:
--------------------------------------------------------------------------------
1 | # depslib dependency file v1.0
2 | 1595399135 source:c:\users\shafin\desktop\birthday_card\main.cpp
3 |
4 |
5 |
6 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windows.h
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 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winresrc.h
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winuser.h
45 |
46 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnt.h
47 |
48 |
49 |
50 |
51 |
52 |
53 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winerror.h
54 |
55 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\string.h
56 | <_mingw.h>
57 |
58 |
59 | 1341006770 c:\program files (x86)\codeblocks\mingw\include\_mingw.h
60 |
61 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetsd.h
62 |
63 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h
64 |
65 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\poppack.h
66 |
67 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winver.h
68 |
69 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\dde.h
70 |
71 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\dlgs.h
72 |
73 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commctrl.h
74 |
75 |
76 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\prsht.h
77 |
78 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windef.h
79 |
80 |
81 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wincon.h
82 |
83 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\winbase.h
84 |
85 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wingdi.h
86 |
87 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnls.h
88 |
89 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h
90 |
91 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winreg.h
92 |
93 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winsvc.h
94 |
95 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cderr.h
96 |
97 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\ddeml.h
98 |
99 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\imm.h
100 |
101 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h
102 |
103 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h
104 |
105 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\nb30.h
106 |
107 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpc.h
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h
116 |
117 |
118 |
119 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetyps.h
120 |
121 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h
122 |
123 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h
124 |
125 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h
126 |
127 | 1341006772 c:\program files (x86)\codeblocks\mingw\include\excpt.h
128 | <_mingw.h>
129 |
130 |
131 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\shellapi.h
132 |
133 |
134 |
135 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h
136 |
137 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winperf.h
138 |
139 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commdlg.h
140 |
141 |
142 |
143 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\unknwn.h
144 |
145 |
146 |
147 |
148 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objfwd.h
149 |
150 |
151 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\wtypes.h
152 |
153 |
154 |
155 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h
156 |
157 |
158 |
159 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h
160 |
161 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winspool.h
162 |
163 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock2.h
164 |
165 |
166 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock.h
167 |
168 |
169 |
170 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mswsock.h
171 |
172 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\ole2.h
173 |
174 |
175 |
176 |
177 |
178 |
179 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\objbase.h
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\stdlib.h
190 | <_mingw.h>
191 |
192 |
193 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objidl.h
194 |
195 |
196 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cguid.h
197 |
198 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\olectlid.h
199 |
200 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleauto.h
201 |
202 |
203 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\oaidl.h
204 |
205 |
206 |
207 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleidl.h
208 |
209 |
210 | 1453865572 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h
211 |
212 |
213 |
214 |
215 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h
216 |
217 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h
218 |
219 |
220 |
221 |
--------------------------------------------------------------------------------
/Birthday_Card/Birthday_Card.layout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Birthday_Card/bin/Debug/Birthday_Card.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Birthday_Card/bin/Debug/Birthday_Card.exe
--------------------------------------------------------------------------------
/Birthday_Card/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 |
5 | void init(void)
6 | {
7 | glClearColor(1.0, 1.0, 1.0, 1.0); // Set display window colour to white
8 |
9 | glMatrixMode(GL_PROJECTION); // Set projection parameters
10 | gluOrtho2D(0.0, 35.0, 0.0, 25.0);
11 | }
12 |
13 | void minhajulAbedin(void)
14 | {
15 | glClear(GL_COLOR_BUFFER_BIT); // Clear display window
16 |
17 |
18 | // Draw a couple of points
19 |
20 | //Set colour to red
21 | glColor3f(0.5, 0.5, 0.5);
22 |
23 | // Draw a line
24 | glBegin(GL_POLYGON);
25 | glVertex2i(3, 5);
26 | glVertex2i(3, 25);
27 | glVertex2i(34, 25);
28 | glVertex2i(34, 5);
29 |
30 | glEnd();
31 | // H
32 | glColor3f(1.0, 0.4, 0.4);
33 | glBegin(GL_POLYGON);
34 | glVertex2i(10, 15);
35 | glVertex2i(10, 20);
36 | glVertex2i(11, 20);
37 | glVertex2i(11, 15);
38 |
39 |
40 | glEnd();
41 | glBegin(GL_POLYGON);
42 | glVertex2i(13, 15);
43 | glVertex2i(13, 20);
44 | glVertex2i(14, 20);
45 | glVertex2i(14, 15);
46 |
47 |
48 | glEnd();
49 | glBegin(GL_POLYGON);
50 | glVertex2i(10, 17);
51 | glVertex2i(10, 18);
52 | glVertex2i(14, 18);
53 | glVertex2i(14, 17);
54 |
55 |
56 | glEnd();
57 | // B
58 | glColor3f(0.5, 1.0, 1.0);
59 | glBegin(GL_POLYGON);
60 | glVertex2i(15, 20);
61 | glVertex2i(18, 20);
62 | glVertex2i(19, 19);
63 | glVertex2i(19, 16);
64 | glVertex2i(18, 15);
65 | glVertex2i(15, 15);
66 |
67 |
68 | glEnd();
69 | //B 1
70 | glColor3f(0.5, 0.5, 0.5);
71 | glBegin(GL_POLYGON);
72 | glVertex2i(16, 19);
73 | glVertex2i(18, 19);
74 | glVertex2i(18, 18);
75 | glVertex2i(16, 18);
76 |
77 |
78 |
79 | glEnd();
80 | glColor3f(0.5, 0.5, 0.5);
81 | glBegin(GL_POLYGON);
82 | glVertex2i(16, 17);
83 | glVertex2i(18, 17);
84 | glVertex2i(18, 16);
85 | glVertex2i(16, 16);
86 |
87 |
88 |
89 | glEnd();
90 | //D
91 | glColor3f(132,112,255);
92 | glBegin(GL_POLYGON);
93 | glVertex2i(20, 20);
94 | glVertex2i(23, 20);
95 | glVertex2i(24, 19);
96 | glVertex2i(24, 16);
97 | glVertex2i(23, 15);
98 | glVertex2i(20, 15);
99 |
100 | glEnd();
101 | //D 1
102 | glColor3f(0.5, 0.5, 0.5);
103 | glBegin(GL_POLYGON);
104 | glVertex2i(21, 19);
105 | glVertex2i(23, 19);
106 | glVertex2i(23, 16);
107 | glVertex2i(21, 16);
108 |
109 |
110 | glEnd();
111 | // M
112 | glColor3f(0.5,1.0,0.5);
113 | glLineWidth(3);
114 | glBegin(GL_LINE_LOOP);
115 |
116 | glVertex2i(16, 11);
117 | glVertex2i(17, 13);
118 | glVertex2i(18, 13);
119 | glVertex2i(18, 8);
120 | glVertex2i(17, 8);
121 | glVertex2i(17, 11);
122 | glVertex2i(16, 10);
123 | glVertex2i(15, 11);
124 | glVertex2i(15, 8);
125 | glVertex2i(14, 8);
126 | glVertex2i(14,13);
127 | glVertex2i(15, 13);
128 |
129 |
130 | glEnd();
131 | // M
132 | glColor3f(0.5,1.0,0.5);
133 | glLineWidth(3);
134 | glBegin(GL_LINE_LOOP);
135 |
136 | glVertex2i(26, 11);
137 | glVertex2i(27, 13);
138 | glVertex2i(28, 13);
139 | glVertex2i(28, 8);
140 | glVertex2i(27, 8);
141 | glVertex2i(27, 11);
142 | glVertex2i(26, 10);
143 | glVertex2i(25, 11);
144 | glVertex2i(25, 8);
145 | glVertex2i(24, 8);
146 | glVertex2i(24,13);
147 | glVertex2i(25, 13);
148 |
149 | glEnd();
150 | //A
151 | glColor3f(0.0, 1.0, 1.0);
152 | glLineWidth(3);
153 | glBegin(GL_LINE_LOOP);
154 |
155 | glVertex2i(19, 8);
156 | glVertex2i(20, 13);
157 | glVertex2i(22, 13);
158 | glVertex2i(23, 8);
159 | glVertex2i(22, 8);
160 | glVertex2i(22, 10);
161 | glVertex2i(20, 10);
162 | glVertex2i(20, 8);
163 | glVertex2i(19, 8);
164 | glVertex2i(20, 13);
165 |
166 |
167 | glEnd();
168 | glColor3f(0.0, 1.0, 1.0);
169 | glLineWidth(3);
170 | glBegin(GL_LINE_LOOP);
171 |
172 | glVertex2i(21, 12);
173 | glVertex2i(22, 11);
174 | glVertex2i(20, 11);
175 |
176 |
177 |
178 | glEnd();
179 |
180 | // shapes
181 | glColor3f(1.0,1.0,0.0);
182 | glBegin(GL_POLYGON);
183 | glVertex2i(9, 12);
184 | glVertex2i(11, 12);
185 | glVertex2i(5, 5);
186 | glVertex2i(3, 5);
187 |
188 |
189 | glEnd();
190 | glColor3f(1.0,1.0,0.0);
191 | glBegin(GL_POLYGON);
192 | glVertex2i(31, 25);
193 | glVertex2i(33, 25);
194 | glVertex2i(28, 19);
195 | glVertex2i(26, 19);
196 |
197 |
198 | glEnd();
199 | // shape 2
200 | glColor3f(0.0, 1.0, 1.0);
201 | glBegin(GL_POLYGON);
202 | glVertex2i(3, 23);
203 | glVertex2i(19, 23);
204 | glVertex2i(19, 22);
205 | glVertex2i(3, 22);
206 |
207 |
208 | glEnd();
209 | glColor3f(0.0, 1.0, 1.0);
210 | glBegin(GL_POLYGON);
211 | glVertex2i(23, 7);
212 | glVertex2i(34, 7);
213 | glVertex2i(34, 6);
214 | glVertex2i(23, 6);
215 |
216 |
217 | glEnd();
218 | // shape 3
219 | glColor3f(0.5,1.0,0.0);
220 | glBegin(GL_POLYGON);
221 | glVertex2i(3, 15);
222 | glVertex2i(7, 15);
223 | glVertex2i(7, 14);
224 | glVertex2i(3, 14);
225 |
226 |
227 | glEnd();
228 | glColor3f(0.5,1.0,0.0);
229 | glBegin(GL_POLYGON);
230 | glVertex2i(30, 15);
231 | glVertex2i(34, 15);
232 | glVertex2i(34, 14);
233 | glVertex2i(30, 14);
234 |
235 |
236 | glEnd();
237 | // shape 4
238 | glColor3f(132,112,255);
239 | glBegin(GL_POLYGON);
240 | glVertex2i(6, 20);
241 | glVertex2i(7, 19);
242 | glVertex2i(6, 18);
243 | glVertex2i(5, 19);
244 |
245 |
246 | glEnd();
247 | glColor3f(132,112,255);
248 | glBegin(GL_POLYGON);
249 | glVertex2i(31, 11);
250 | glVertex2i(32, 10);
251 | glVertex2i(31, 9);
252 | glVertex2i(30, 10);
253 |
254 |
255 | glEnd();
256 |
257 |
258 | glFlush(); // Process all OpenGL routines
259 | }
260 | int main(int argc, char* argv[])
261 | {
262 | glutInit(&argc, argv); // Initalise GLUT
263 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode
264 |
265 | glutInitWindowPosition(100, 100); // Set window position
266 | glutInitWindowSize(800, 500); // Set window size
267 | glutCreateWindow("171-15-8700"); // Create display window
268 |
269 | init(); // Execute initialisation procedure
270 | glutDisplayFunc(minhajulAbedin); // Send graphics to display window
271 | glutMainLoop(); // Display everything and wait
272 |
273 | return 0;
274 | }
275 |
--------------------------------------------------------------------------------
/Birthday_Card/obj/Debug/main.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Birthday_Card/obj/Debug/main.o
--------------------------------------------------------------------------------
/Chess Board/Chess Board.cbp:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Chess Board/Chess Board.layout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Chess Board/bin/Debug/Chess Board.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Chess Board/bin/Debug/Chess Board.exe
--------------------------------------------------------------------------------
/Chess Board/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | int i,j,k;
4 | void display(void)
5 | {
6 | glClear (GL_COLOR_BUFFER_BIT);
7 | for(i = 0;i < 8;i++ ){
8 | for(j = 0;j < 8;j++ ){
9 |
10 | glBegin(GL_POLYGON);
11 | if((i%2) == 0){
12 |
13 |
14 | if((j%2) == 0){
15 |
16 | glColor3f (0, 0, 0);
17 | }else{
18 |
19 | glColor3f (1, 1, 1);
20 | }
21 |
22 |
23 | }
24 | else {
25 |
26 | if((j%2) == 0){
27 |
28 |
29 |
30 | glColor3f (1, 1, 1);
31 | }else{
32 |
33 | glColor3f (0, 0, 0);
34 | }
35 | }
36 |
37 | glVertex2f (i,j);
38 | glVertex2f (i+1,j);
39 | glVertex2f (i+1,j+1);
40 | glVertex2f (i,j+1);
41 | glEnd();
42 | }
43 | }
44 | glFlush ();
45 | }
46 | void init (void)
47 | {glClearColor (0.0, 0.0, 0.0, 0.0);
48 | glMatrixMode(GL_PROJECTION);
49 | glLoadIdentity();
50 | glOrtho(0, 8, 0, 8, -1.0, 1.0);
51 | }
52 | int main(int argc, char** argv)
53 | {
54 | glutInit(&argc, argv);
55 | glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
56 | glutInitWindowSize (900, 600);
57 | glutInitWindowPosition (100, 100);
58 | glutCreateWindow ("Chess Board");
59 | init ();
60 | glutDisplayFunc(display);
61 | glutMainLoop();
62 | return 0;
63 | }
64 |
--------------------------------------------------------------------------------
/Chess Board/obj/Debug/main.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Chess Board/obj/Debug/main.o
--------------------------------------------------------------------------------
/Circle Algorithm Implementation/Circle Algorithm Implementation.cbp:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Circle Algorithm Implementation/Circle Algorithm Implementation.depend:
--------------------------------------------------------------------------------
1 | # depslib dependency file v1.0
2 | 1596641826 source:c:\users\omar\desktop\circle algorithm implementation\main.cpp
3 |
4 |
5 |
6 |
7 |
8 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windows.h
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 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winresrc.h
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winuser.h
47 |
48 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnt.h
49 |
50 |
51 |
52 |
53 |
54 |
55 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winerror.h
56 |
57 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\string.h
58 | <_mingw.h>
59 |
60 |
61 | 1341006770 c:\program files (x86)\codeblocks\mingw\include\_mingw.h
62 |
63 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetsd.h
64 |
65 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h
66 |
67 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\poppack.h
68 |
69 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winver.h
70 |
71 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\dde.h
72 |
73 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\dlgs.h
74 |
75 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commctrl.h
76 |
77 |
78 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\prsht.h
79 |
80 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windef.h
81 |
82 |
83 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wincon.h
84 |
85 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\winbase.h
86 |
87 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wingdi.h
88 |
89 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnls.h
90 |
91 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h
92 |
93 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winreg.h
94 |
95 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winsvc.h
96 |
97 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cderr.h
98 |
99 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\ddeml.h
100 |
101 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\imm.h
102 |
103 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h
104 |
105 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h
106 |
107 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\nb30.h
108 |
109 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpc.h
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h
118 |
119 |
120 |
121 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetyps.h
122 |
123 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h
124 |
125 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h
126 |
127 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h
128 |
129 | 1341006772 c:\program files (x86)\codeblocks\mingw\include\excpt.h
130 | <_mingw.h>
131 |
132 |
133 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\shellapi.h
134 |
135 |
136 |
137 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h
138 |
139 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winperf.h
140 |
141 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commdlg.h
142 |
143 |
144 |
145 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\unknwn.h
146 |
147 |
148 |
149 |
150 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objfwd.h
151 |