├── 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 | 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 | 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 | 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 | 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 | 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 | 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 | 152 | 153 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 154 | 155 | 156 | 157 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 158 | 159 | 160 | 161 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 162 | 163 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winspool.h 164 | 165 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 166 | 167 | 168 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock.h 169 | 170 | 171 | 172 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 173 | 174 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\ole2.h 175 | 176 | 177 | 178 | 179 | 180 | 181 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\objbase.h 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 192 | <_mingw.h> 193 | 194 | 195 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objidl.h 196 | 197 | 198 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cguid.h 199 | 200 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 201 | 202 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 203 | 204 | 205 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 206 | 207 | 208 | 209 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 210 | 211 | 212 | 1453815172 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 213 | 214 | 215 | 216 | 217 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 218 | 219 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 220 | 221 | 222 | 223 | 1341006774 c:\program files (x86)\codeblocks\mingw\include\math.h 224 | <_mingw.h> 225 | 226 | -------------------------------------------------------------------------------- /Circle Algorithm Implementation/Circle Algorithm Implementation.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Circle Algorithm Implementation/bin/Debug/Circle Algorithm Implementation.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Circle Algorithm Implementation/bin/Debug/Circle Algorithm Implementation.exe -------------------------------------------------------------------------------- /Circle Algorithm Implementation/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | static float tx = 0.0; 7 | static float ty = 0.0; 8 | 9 | void init() 10 | { 11 | glClearColor(0.0f, 0.0f, 0.0f, 0.0f); 12 | glOrtho(-15,15,-15,15,-15,5); 13 | } 14 | void circle(GLfloat rx,GLfloat ry,GLfloat cx,GLfloat cy)//radius_x,radius_y,certre_position_x,centre_position_y 15 | { 16 | 17 | glBegin(GL_TRIANGLE_FAN); 18 | glVertex2f(cx,cy); 19 | 20 | for(int i=0;i<=100;i++) 21 | 22 | { 23 | float angle = 2 * 3.1416f * i/100; 24 | 25 | float x = rx * cosf(angle); 26 | float y = ry * sinf(angle); 27 | 28 | glVertex2f((x+cx),(y+cy)); 29 | } 30 | glEnd(); 31 | } 32 | 33 | 34 | void MdOmarFaruk() 35 | { 36 | glClear(GL_COLOR_BUFFER_BIT); 37 | /* 38 | glColor3f(0.0f, 1.0f, 0.0f); 39 | 40 | glBegin(GL_QUADS); 41 | glVertex3d(7.0, 5.0, 0.0); 42 | glVertex3d(-7.0, 5.0, 0.0); 43 | glVertex3d(-7.0, -5.0, 0.0); 44 | glVertex3f(7.0, -5.0, 0.0); 45 | glEnd(); 46 | glColor3f(1.0f, 0.0f, 0.0f); 47 | glBegin(GL_QUADS); 48 | glColor3f(1.0f, 1.0f, 0.0f); 49 | glVertex3d(-7.0, -5.0, 0.0); 50 | glVertex3d(-7.0, -14.0, 0.0); 51 | glVertex3f(-6.0, -14.0, 0.0); 52 | glVertex3d(-6.0, -5.0, 0.0); 53 | glEnd(); 54 | */ 55 | 56 | 57 | 58 | circle(3,3,0,0); 59 | 60 | glColor3f(1.0f, 0.0f, 0.0f); 61 | glPushMatrix(); 62 | glTranslatef(8,8,0); 63 | circle(3,3,0,0); 64 | glPopMatrix(); 65 | 66 | glPushMatrix(); 67 | glColor3f(0.0,1.0,0.0); 68 | glTranslatef(10,10,0); 69 | circle(3,3,0,0); 70 | 71 | 72 | glFlush(); 73 | } 74 | int main() 75 | { 76 | glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); 77 | glutInitWindowSize(600, 600); 78 | glutInitWindowPosition(200, 200); 79 | glutCreateWindow("171-15-8709"); 80 | init(); 81 | glutDisplayFunc(MdOmarFaruk); 82 | glutMainLoop(); 83 | return 0; 84 | } 85 | -------------------------------------------------------------------------------- /Circle Algorithm Implementation/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Circle Algorithm Implementation/obj/Debug/main.o -------------------------------------------------------------------------------- /Graphs and Output/Birthday Greeting Card - Graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Birthday Greeting Card - Graph.png -------------------------------------------------------------------------------- /Graphs and Output/Birthday Greeting Card - Output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Birthday Greeting Card - Output.png -------------------------------------------------------------------------------- /Graphs and Output/Circle Algorithm Implementation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Circle Algorithm Implementation.png -------------------------------------------------------------------------------- /Graphs and Output/Half Moon - Output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Half Moon - Output.png -------------------------------------------------------------------------------- /Graphs and Output/Multiple Stars - Graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Multiple Stars - Graph.png -------------------------------------------------------------------------------- /Graphs and Output/Multiple Stars - Output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Multiple Stars - Output.png -------------------------------------------------------------------------------- /Graphs and Output/Public Park - Output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Public Park - Output.png -------------------------------------------------------------------------------- /Graphs and Output/Public Park -Grapgh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Public Park -Grapgh.png -------------------------------------------------------------------------------- /Graphs and Output/Scenary Of A Village Area - Graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Scenary Of A Village Area - Graph.png -------------------------------------------------------------------------------- /Graphs and Output/Scenary Of A Village Area - Output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Graphs and Output/Scenary Of A Village Area - Output.png -------------------------------------------------------------------------------- /Half Moon/Half Moon.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /Half Moon/Half Moon.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Half Moon/bin/Debug/Half Moon.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Half Moon/bin/Debug/Half Moon.exe -------------------------------------------------------------------------------- /Half Moon/bin/Debug/pracmoon.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Half Moon/bin/Debug/pracmoon.exe -------------------------------------------------------------------------------- /Half Moon/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void init(void) 6 | { 7 | glClearColor(1, 1, 1, 0.0); // Set display window colour to white 8 | 9 | glMatrixMode(GL_PROJECTION); // Set projection parameters 10 | gluOrtho2D(0.0, 35.0, 0.0, 45.0); 11 | } 12 | 13 | void MdOmarFaruk(void) 14 | { 15 | float theta; 16 | int i; 17 | glClear(GL_COLOR_BUFFER_BIT); // Clear display window 18 | 19 | // Draw a filled quadrilateral 20 | 21 | 22 | // Moon 23 | glColor3f(0,0,0); // white moon 24 | // glColor3f(0,0,0); // black moon 25 | // glColor3f(0.255, 0.412, 0.714); // blue moon 26 | glBegin(GL_POLYGON); 27 | 28 | for(i=0;i<360;i++) 29 | { 30 | theta=i*3.142/180; 31 | 32 | 33 | 34 | glVertex2f(17+3.5*cos(theta),28+3.5*sin(theta)); // here (12,10) is the center and 2 is the radius 35 | } 36 | 37 | glEnd(); 38 | 39 | glColor3f(1, 1, 1); 40 | glBegin(GL_POLYGON); 41 | 42 | for(i=0;i<360;i++) 43 | { 44 | theta=i*3.142/180; 45 | 46 | 47 | 48 | glVertex2f(18+3.2*cos(theta),29+3.2*sin(theta)); 49 | 50 | } 51 | 52 | glEnd(); 53 | 54 | 55 | glFlush(); // Process all OpenGL routines 56 | } 57 | int main(int argc, char* argv[]) 58 | { 59 | glutInit(&argc, argv); // Initalise GLUT 60 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode 61 | 62 | glutInitWindowPosition(200, 150); // Set window position 63 | glutInitWindowSize(630, 650); // Set window size width height 64 | glutCreateWindow("171-15-8709"); // Create display window 65 | 66 | init(); // Execute initialisation procedure 67 | glutDisplayFunc(MdOmarFaruk); // Send graphics to display window 68 | glutMainLoop(); // Display everything and wait 69 | 70 | return 0; 71 | } 72 | -------------------------------------------------------------------------------- /Half Moon/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Half Moon/obj/Debug/main.o -------------------------------------------------------------------------------- /Half Moon/pracmoon.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 53 | 54 | -------------------------------------------------------------------------------- /Half Moon/pracmoon.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Multiple Stars/Multiple Stars.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /Multiple Stars/Multiple Stars.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1596553517 source:c:\users\omar\desktop\multiple stars\main.cpp 3 | 4 | 5 | 6 | 7 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windows.h 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 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winresrc.h 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winuser.h 46 | 47 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnt.h 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winerror.h 55 | 56 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\string.h 57 | <_mingw.h> 58 | 59 | 60 | 1341006770 c:\program files (x86)\codeblocks\mingw\include\_mingw.h 61 | 62 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetsd.h 63 | 64 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h 65 | 66 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\poppack.h 67 | 68 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winver.h 69 | 70 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\dde.h 71 | 72 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\dlgs.h 73 | 74 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commctrl.h 75 | 76 | 77 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\prsht.h 78 | 79 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windef.h 80 | 81 | 82 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wincon.h 83 | 84 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\winbase.h 85 | 86 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wingdi.h 87 | 88 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnls.h 89 | 90 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h 91 | 92 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winreg.h 93 | 94 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winsvc.h 95 | 96 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cderr.h 97 | 98 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\ddeml.h 99 | 100 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\imm.h 101 | 102 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h 103 | 104 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h 105 | 106 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\nb30.h 107 | 108 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpc.h 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h 117 | 118 | 119 | 120 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetyps.h 121 | 122 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h 123 | 124 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h 125 | 126 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h 127 | 128 | 1341006772 c:\program files (x86)\codeblocks\mingw\include\excpt.h 129 | <_mingw.h> 130 | 131 | 132 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\shellapi.h 133 | 134 | 135 | 136 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h 137 | 138 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winperf.h 139 | 140 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commdlg.h 141 | 142 | 143 | 144 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\unknwn.h 145 | 146 | 147 | 148 | 149 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objfwd.h 150 | 151 | 152 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 153 | 154 | 155 | 156 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 157 | 158 | 159 | 160 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 161 | 162 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winspool.h 163 | 164 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 165 | 166 | 167 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock.h 168 | 169 | 170 | 171 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 172 | 173 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\ole2.h 174 | 175 | 176 | 177 | 178 | 179 | 180 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\objbase.h 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 191 | <_mingw.h> 192 | 193 | 194 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objidl.h 195 | 196 | 197 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cguid.h 198 | 199 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 200 | 201 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 202 | 203 | 204 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 205 | 206 | 207 | 208 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 209 | 210 | 211 | 1453815172 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 212 | 213 | 214 | 215 | 216 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 217 | 218 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 219 | 220 | 221 | 222 | 1341006774 c:\program files (x86)\codeblocks\mingw\include\math.h 223 | <_mingw.h> 224 | 225 | -------------------------------------------------------------------------------- /Multiple Stars/Multiple Stars.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Multiple Stars/bin/Debug/Multiple Stars.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Multiple Stars/bin/Debug/Multiple Stars.exe -------------------------------------------------------------------------------- /Multiple Stars/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void init(void) 6 | { 7 | glClearColor(255, 255,255, 0.0); // Set display window colour to white 8 | 9 | glMatrixMode(GL_PROJECTION); // Set projection parameters 10 | gluOrtho2D(0.0, 30.0, 0.0, 20.0); 11 | } 12 | 13 | void MdOmarFaruk(void) 14 | { 15 | float theta; 16 | int i; 17 | glClear(GL_COLOR_BUFFER_BIT); // Clear display window 18 | 19 | // Draw a filled quadrilateral 20 | 21 | // 223, 0, 251 22 | glColor3f(0.863, 0.588, 0.973); 23 | glBegin(GL_POLYGON); 24 | for(i=0;i<360;i++) 25 | { 26 | theta=i*3.142/180; 27 | glVertex2f(15+8*cos(theta),9+8*sin(theta)); 28 | 29 | } 30 | glEnd(); 31 | 32 | // Box 33 | // 253, 255, 119 34 | glColor3f(0.996, 1, 0.467); 35 | glBegin(GL_POLYGON); 36 | glVertex2i(11, 13.5); 37 | glVertex2i(8, 12); 38 | glVertex2i(10.5, 9.5); 39 | glVertex2i(12, 10); 40 | glEnd(); 41 | 42 | glColor3f(0.996, 1, 0.467); 43 | glBegin(GL_POLYGON); 44 | glVertex2i(12, 13); 45 | glVertex2i(12, 15); 46 | glVertex2i(14, 14); 47 | glVertex2i(14, 12); 48 | glEnd(); 49 | 50 | 51 | glColor3f(0.996, 1, 0.467); 52 | glBegin(GL_POLYGON); 53 | glVertex2i(16, 14); 54 | glVertex2i(18, 15); 55 | glVertex2i(19, 13.5); 56 | glVertex2i(17, 12); 57 | glEnd(); 58 | 59 | glColor3f(0.996, 1, 0.467); 60 | glBegin(GL_POLYGON); 61 | glVertex2i(19.5, 13.5); 62 | glVertex2i(21, 11); 63 | glVertex2i(20, 10); 64 | glVertex2i(18, 10); 65 | glEnd(); 66 | 67 | glColor3f(0.996, 1, 0.467); 68 | glBegin(GL_POLYGON); 69 | glVertex2i(20, 8); 70 | glVertex2i(21, 6); 71 | glVertex2i(19, 5.5); 72 | glVertex2i(18, 8); 73 | glEnd(); 74 | 75 | glColor3f(0.996, 1, 0.467); 76 | glBegin(GL_POLYGON); 77 | glVertex2i(19.5, 5); 78 | glVertex2i(18, 3); 79 | glVertex2i(16, 4); 80 | glVertex2i(16, 6); 81 | glEnd(); 82 | 83 | glColor3f(0.996, 1, 0.467); 84 | glBegin(GL_POLYGON); 85 | glVertex2i(14, 4); 86 | glVertex2i(13, 3); 87 | glVertex2i(11, 5); 88 | glVertex2i(13, 6); 89 | glEnd(); 90 | 91 | glColor3f(0.996, 1, 0.467); 92 | glBegin(GL_POLYGON); 93 | glVertex2i(10.5, 5); 94 | glVertex2i(9, 7); 95 | glVertex2i(10, 8); 96 | glVertex2i(12, 8); 97 | glEnd(); 98 | 99 | // First Star 100 | // 0, 0, 0 101 | 102 | glColor3f(0.263, 0.996, 0.992); 103 | glBegin(GL_POLYGON); 104 | glVertex2i(11, 10); 105 | glVertex2i(10, 14); 106 | glVertex2i(13, 13); 107 | glVertex2i(15, 15); 108 | glVertex2i(18, 13); 109 | glVertex2i(20, 14); 110 | glVertex2i(19, 11); 111 | glVertex2i(21, 9); 112 | glVertex2i(19, 7); 113 | glVertex2i(20, 4); 114 | glVertex2i(17, 5); 115 | glVertex2i(15, 3); 116 | glVertex2i(12, 5); 117 | glVertex2i(10, 4); 118 | glVertex2i(11, 7); 119 | glVertex2i(9, 8); 120 | glEnd(); 121 | 122 | // Second Star 123 | // 0, 1, 1 124 | glColor3f(0.459, 0.447, 0.459); 125 | glBegin(GL_POLYGON); 126 | glVertex2i(12, 10); 127 | glVertex2i(11, 13); 128 | glVertex2i(14, 12); 129 | glVertex2i(15, 14); 130 | glVertex2i(17, 12); 131 | glVertex2i(19, 13); 132 | glVertex2i(18, 10); 133 | glVertex2i(20, 9); 134 | glVertex2i(18, 8); 135 | glVertex2i(19, 5); 136 | glVertex2i(16, 6); 137 | glVertex2i(15, 4); 138 | glVertex2i(13, 6); 139 | glVertex2i(11, 5); 140 | glVertex2i(12, 8); 141 | glVertex2i(10, 9); 142 | glEnd(); 143 | 144 | // Third Star 145 | // 0, 0, 105 146 | glColor3f(1, 0.384, 0.412); 147 | glBegin(GL_POLYGON); 148 | glVertex2i(13, 10); 149 | glVertex2i(12, 12); 150 | glVertex2i(14, 11); 151 | glVertex2i(15, 13); 152 | glVertex2i(16, 11); 153 | glVertex2i(18, 12); 154 | glVertex2i(17, 10); 155 | glVertex2i(19, 9); 156 | glVertex2i(17, 8); 157 | glVertex2i(18, 6); 158 | glVertex2i(16, 7); 159 | glVertex2i(15, 5); 160 | glVertex2i(14, 7); 161 | glVertex2i(12, 6); 162 | glVertex2i(13, 8); 163 | glVertex2i(11, 9); 164 | glEnd(); 165 | 166 | 167 | glFlush(); // Process all OpenGL routines 168 | } 169 | int main(int argc, char* argv[]) 170 | { 171 | glutInit(&argc, argv); // Initalise GLUT 172 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode 173 | 174 | glutInitWindowPosition(200, 150); // Set window position 175 | glutInitWindowSize(830, 550); // Set window size width height 176 | glutCreateWindow("171-15-8709"); // Create display window 177 | 178 | init(); // Execute initialisation procedure 179 | glutDisplayFunc(MdOmarFaruk); // Send graphics to display window 180 | glutMainLoop(); // Display everything and wait 181 | 182 | return 0; 183 | } 184 | -------------------------------------------------------------------------------- /Multiple Stars/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Multiple Stars/obj/Debug/main.o -------------------------------------------------------------------------------- /Public Park 2/Park.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /Public Park 2/Park.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1596478629 source:c:\users\shafin\desktop\park\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 | -------------------------------------------------------------------------------- /Public Park 2/Park.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Public Park 2/bin/Debug/Park.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Public Park 2/bin/Debug/Park.exe -------------------------------------------------------------------------------- /Public Park 2/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Public Park 2/main.o -------------------------------------------------------------------------------- /Public Park 2/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Public Park 2/obj/Debug/main.o -------------------------------------------------------------------------------- /Public Park/Public Park.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /Public Park/Public Park.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Public Park/bin/Debug/Public Park.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Public Park/bin/Debug/Public Park.exe -------------------------------------------------------------------------------- /Public Park/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Public Park/obj/Debug/main.o -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Computer-Graphics-Using-OpenGL ![OpenGL](https://img.shields.io/badge/-OpenGL-%235586A4?style=flat-square&logo=OpenGL&logoColor=%23ffffff) 2 | This repository contains some programs of computer graphics written in C++ programming language using OpenGL. 3 | 4 | ## Project Setup: 5 | 6 | Step 1: git clone https://github.com/IamOmaR22/Computer-Graphics-Using-OpenGL.git 7 | 8 | Step 2: cd Computer-Graphics-Using-OpenGL 9 | 10 | Step 3: Put Your Project Inside This 11 | 12 | Step 3: git add . 13 | 14 | Step 4: git commit -m "Commit Message" 15 | 16 | Step 4: git push 17 | 18 | Main Developers: Md. Omar Faruk 19 | 20 | 21 | Glut Projects: 22 | ``` 23 | Vertex and Polygon 24 | Chess Board 25 | Birthday Greeting Card 26 | Scenary Of A Village Area 27 | 2D Object Animation 28 | Graphs and Output 29 | Public Park 30 | Multiple Stars 31 | Half Moon 32 | Circle Algorithm Implementation 33 | ``` 34 | 35 | ---- 36 | House 37 | half moon 38 | urban night scenerio 39 | Happy birthday card 40 | Park scenerio 41 | Design logo 42 | 43 | ## Screenshots of the Project: 44 |

45 | 46 | 47 | 48 | 49 | 50 |

51 | -------------------------------------------------------------------------------- /Rubics Cube Solver/Rubics Cube Solver.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /Rubics Cube Solver/Rubics Cube Solver.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Scenary Of A Village Area/Scenary Of A Village Area.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /Scenary Of A Village Area/Scenary Of A Village Area.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Scenary Of A Village Area/bin/Debug/Scenary Of A Village Area.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Scenary Of A Village Area/bin/Debug/Scenary Of A Village Area.exe -------------------------------------------------------------------------------- /Scenary Of A Village Area/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Scenary Of A Village Area/obj/Debug/main.o -------------------------------------------------------------------------------- /Urban Area A/Urban Area.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 51 | 52 | -------------------------------------------------------------------------------- /Urban Area A/Urban Area.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1595782099 source:c:\users\kazi abir\desktop\cg lab\urban area\main.cpp 3 | 4 | 5 | 6 | 7 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windows.h 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 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winresrc.h 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winuser.h 46 | 47 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnt.h 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winerror.h 55 | 56 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\string.h 57 | <_mingw.h> 58 | 59 | 60 | 1250308674 c:\program files (x86)\codeblocks\mingw\include\_mingw.h 61 | 62 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetsd.h 63 | 64 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h 65 | 66 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\poppack.h 67 | 68 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winver.h 69 | 70 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dde.h 71 | 72 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dlgs.h 73 | 74 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commctrl.h 75 | 76 | 77 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\prsht.h 78 | 79 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windef.h 80 | 81 | 82 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wincon.h 83 | 84 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\winbase.h 85 | 86 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wingdi.h 87 | 88 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnls.h 89 | 90 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h 91 | 92 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winreg.h 93 | 94 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsvc.h 95 | 96 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cderr.h 97 | 98 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\ddeml.h 99 | 100 | 1228530716 c:\program files (x86)\codeblocks\mingw\include\imm.h 101 | 102 | 1228530720 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h 103 | 104 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h 105 | 106 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\nb30.h 107 | 108 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpc.h 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h 117 | 118 | 119 | 120 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetyps.h 121 | 122 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h 123 | 124 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h 125 | 126 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h 127 | 128 | 1250308676 c:\program files (x86)\codeblocks\mingw\include\excpt.h 129 | <_mingw.h> 130 | 131 | 132 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\shellapi.h 133 | 134 | 135 | 136 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h 137 | 138 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winperf.h 139 | 140 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commdlg.h 141 | 142 | 143 | 144 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\unknwn.h 145 | 146 | 147 | 148 | 149 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objfwd.h 150 | 151 | 152 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 153 | 154 | 155 | 156 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 157 | 158 | 159 | 160 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 161 | 162 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winspool.h 163 | 164 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 165 | 166 | 167 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winsock.h 168 | 169 | 170 | 171 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 172 | 173 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\ole2.h 174 | 175 | 176 | 177 | 178 | 179 | 180 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objbase.h 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 191 | <_mingw.h> 192 | 193 | 194 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objidl.h 195 | 196 | 197 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cguid.h 198 | 199 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 200 | 201 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 202 | 203 | 204 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 205 | 206 | 207 | 208 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 209 | 210 | 211 | 1453865572 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 212 | 213 | 214 | 215 | 216 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 217 | 218 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 219 | 220 | 221 | 222 | 1250308678 c:\program files (x86)\codeblocks\mingw\include\math.h 223 | <_mingw.h> 224 | 225 | -------------------------------------------------------------------------------- /Urban Area A/Urban Area.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Urban Area A/bin/Debug/Urban Area.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Urban Area A/bin/Debug/Urban Area.exe -------------------------------------------------------------------------------- /Urban Area A/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Urban Area A/obj/Debug/main.o -------------------------------------------------------------------------------- /Vertex and Polygon/Vertex and Polygon.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 53 | 54 | -------------------------------------------------------------------------------- /Vertex and Polygon/Vertex and Polygon.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Vertex and Polygon/bin/Debug/Vertex and Polygon.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Vertex and Polygon/bin/Debug/Vertex and Polygon.exe -------------------------------------------------------------------------------- /Vertex and Polygon/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | 5 | void init(void) 6 | { 7 | glClearColor(0.0, 0.0, 0.0, 1.0); // Set display window colour to back 8 | 9 | glMatrixMode(GL_PROJECTION); // Set projection parameters 10 | gluOrtho2D(0.0, 30.0, 0.0, 20.0); 11 | } 12 | 13 | void MdOmarFaruk(void) 14 | { 15 | glClear(GL_COLOR_BUFFER_BIT); // Clear display window 16 | 17 | 18 | // Draw a couple of points 19 | 20 | //Set colour to white 21 | glColor3f(1.0, 1.0, 1.0); 22 | 23 | 24 | 25 | 26 | // Draw a line 27 | glBegin(GL_POLYGON); 28 | glVertex2i(5, 0); 29 | glVertex2i(5, 10); 30 | glVertex2i(25, 10); 31 | glVertex2i(25, 0); 32 | glEnd(); 33 | 34 | //Set colour to green 35 | glColor3f(0.0, 1.0, 0.0); 36 | glBegin(GL_TRIANGLES); 37 | glVertex2i(5, 10); 38 | glVertex2i(15, 15); 39 | glVertex2i(25, 10); 40 | glEnd(); 41 | 42 | 43 | 44 | 45 | 46 | glColor3f(1.0, 0.0, 0.0); 47 | 48 | glBegin(GL_POLYGON); 49 | glVertex2i(7, 5); 50 | glVertex2i(7, 9); 51 | glVertex2i(12, 9); 52 | glVertex2i(12, 5); 53 | glEnd(); 54 | 55 | 56 | glColor3f(1.0, 0.0, 0.0); 57 | 58 | glBegin(GL_POLYGON); 59 | glVertex2i(18, 5); 60 | glVertex2i(18, 9); 61 | glVertex2i(23, 9); 62 | glVertex2i(23, 5); 63 | glEnd(); 64 | 65 | glColor3f(0.0, 0.0, 1.0); 66 | 67 | glBegin(GL_POLYGON); 68 | glVertex2i(14, 0); 69 | glVertex2i(14, 5); 70 | glVertex2i(17, 5); 71 | glVertex2i(17, 0); 72 | glEnd(); 73 | 74 | glFlush(); // Process all OpenGL routines 75 | } 76 | int main(int argc, char* argv[]) 77 | { 78 | glutInit(&argc, argv); // Initalise GLUT 79 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode 80 | 81 | glutInitWindowPosition(100, 100); // Set window position 82 | glutInitWindowSize(650, 440); // Set window size 83 | glutCreateWindow("171-15-8709"); // Create display window 84 | 85 | init(); // Execute initialisation procedure 86 | glutDisplayFunc(MdOmarFaruk); // Send graphics to display window 87 | glutMainLoop(); // Display everything and wait 88 | 89 | return 0; 90 | } 91 | 92 | -------------------------------------------------------------------------------- /Vertex and Polygon/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Vertex and Polygon/obj/Debug/main.o -------------------------------------------------------------------------------- /Village area/bin/Debug/village area.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Village area/bin/Debug/village area.exe -------------------------------------------------------------------------------- /Village area/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | 6 | void init(void) 7 | { 8 | 9 | glClearColor(1.0, 1.0, 1.0, 1.0); // Set display window colour to white 10 | 11 | glMatrixMode(GL_PROJECTION); // Set projection parameters 12 | gluOrtho2D(0.0, 34.0, 0.0, 30.0); 13 | } 14 | 15 | void minhajulAbedin(void) 16 | { 17 | float theta; 18 | int i; 19 | glClear(GL_COLOR_BUFFER_BIT); // Clear display window 20 | 21 | 22 | // Draw a couple of points 23 | 24 | //Set colour to light blue 25 | // glColor3f(0.5f, 1.0f, 1.0f); 26 | glColor3f(0.74902f, 0.847059f, 0.847059f); 27 | 28 | // Draw a line 29 | glBegin(GL_POLYGON); 30 | glVertex2i(1, 30); 31 | glVertex2i(33, 30); 32 | glVertex2i(33, 0); 33 | glVertex2i(1, 0); 34 | 35 | glEnd(); 36 | 37 | //house 38 | glColor3f(1.0f, 0.5f, 0.0f); 39 | glBegin(GL_POLYGON); 40 | glVertex2i(12, 15); 41 | glVertex2i(16, 15); 42 | glVertex2i(16, 11); 43 | glVertex2i(12, 11); 44 | 45 | glEnd(); 46 | glColor3f(1.0f, 0.5f, 0.0f); 47 | glBegin(GL_POLYGON); 48 | glVertex2i(16, 15); 49 | glVertex2i(21, 15); 50 | glVertex2i(21, 11); 51 | glVertex2i(16, 11); 52 | 53 | glEnd(); 54 | glColor3f(0.35f, 0.16f, 0.14f); 55 | glBegin(GL_POLYGON); 56 | glVertex2i(14, 18); 57 | glVertex2i(19, 18); 58 | glVertex2i(21, 15); 59 | glVertex2i(16, 15); 60 | 61 | glEnd(); 62 | glColor3f(0.35f, 0.16f, 0.14f); 63 | glBegin(GL_TRIANGLES); 64 | glVertex2i(12, 15); 65 | glVertex2i(14, 18); 66 | glVertex2i(16, 15); 67 | 68 | 69 | glEnd(); 70 | // door 71 | glColor3f(0.0f, 0.0f, 0.0f); 72 | glBegin(GL_POLYGON); 73 | glVertex2i(13, 13); 74 | glVertex2i(15, 13); 75 | glVertex2i(15, 11); 76 | glVertex2i(13, 11); 77 | 78 | 79 | glEnd(); 80 | // window 81 | glColor3f(0.0f, 0.0f, 0.0f); 82 | glBegin(GL_POLYGON); 83 | glVertex2i(17, 14); 84 | glVertex2i(18, 14); 85 | glVertex2i(18, 13); 86 | glVertex2i(17, 13); 87 | 88 | 89 | glEnd(); 90 | glColor3f(0.0f, 0.0f, 0.0f); 91 | glBegin(GL_POLYGON); 92 | glVertex2i(19, 14); 93 | glVertex2i(20, 14); 94 | glVertex2i(20, 13); 95 | glVertex2i(19, 13); 96 | glEnd(); 97 | 98 | // road 99 | glColor4f(1.0f, 1.0f, 0.0f, 0.0f); 100 | glBegin(GL_POLYGON); 101 | glVertex2i(11, 11); 102 | glVertex2i(19, 11); 103 | glVertex2i(8, 0); 104 | glVertex2i(1, 0); 105 | glVertex2i(1, 3); 106 | glEnd(); 107 | 108 | // fields 109 | glColor3f(0.0f, 1.0f, 0.0f);//Green 110 | glBegin(GL_POLYGON); 111 | glVertex2i(18, 11); 112 | glVertex2i(33, 11); 113 | glVertex2i(33, 0); 114 | glVertex2i(7, 0); 115 | 116 | glEnd(); 117 | glColor3f(0.0f, 1.0f, 0.0f);//Green 118 | glBegin(GL_POLYGON); 119 | glVertex2i(1, 11); 120 | glVertex2i(11, 11); 121 | glVertex2i(1, 3); 122 | 123 | glEnd(); 124 | // sun 125 | glColor4f(1.0f, 1.0f, 0.0f, 0.0f);//yellow 126 | glBegin(GL_POLYGON); 127 | for(i=0;i<360;i++){ 128 | theta=i*3.142/180; 129 | glVertex2f(5+2*cos(theta),20+2*sin(theta)); 130 | 131 | } 132 | 133 | glEnd(); 134 | // river 135 | glColor4f(0.0f, 1.0f, 1.0f, 1.0f);//light blue 136 | glBegin(GL_POLYGON); 137 | glVertex2i(23, 11); 138 | glVertex2i(33, 11); 139 | glVertex2i(29, 5); 140 | glVertex2i(18, 5); 141 | 142 | glEnd(); 143 | glColor4f(0.0f, 1.0f, 1.0f, 1.0f);//light blue 144 | glBegin(GL_POLYGON); 145 | glVertex2i(21, 5); 146 | glVertex2i(32, 5); 147 | glVertex2i(28, 0); 148 | glVertex2i(16, 0); 149 | 150 | glEnd(); 151 | 152 | // boat 153 | glColor3f(0.5f, 0.5f, 0.5f);//Violet 154 | glBegin(GL_POLYGON); 155 | glVertex2i(23, 7); 156 | glVertex2i(27, 7); 157 | glVertex2i(26, 6); 158 | glVertex2i(24, 6); 159 | 160 | glEnd(); 161 | glColor3f(0.0f, 0.0f, 0.0f); 162 | glLineWidth(3); 163 | glBegin(GL_LINES); 164 | glVertex2i(24, 8); 165 | glVertex2i(25, 5); 166 | 167 | 168 | glEnd(); 169 | 170 | // tree 171 | glColor3f(0.647059f, 0.164706f, 0.164706f);//Brown 172 | 173 | glBegin(GL_POLYGON); 174 | glVertex2i(24, 15); 175 | glVertex2i(25, 15); 176 | glVertex2i(25, 11); 177 | glVertex2i(24, 11); 178 | 179 | glEnd(); 180 | glColor3f(0.137255f, 0.556863f, 0.137255f);//Forest Green 181 | glBegin(GL_POLYGON); 182 | glVertex2i(23, 20); 183 | glVertex2i(26, 20); 184 | glVertex2i(27, 19); 185 | glVertex2i(27, 16); 186 | glVertex2i(26, 15); 187 | glVertex2i(23, 15); 188 | glVertex2i(22, 16); 189 | glVertex2i(22, 19); 190 | 191 | glEnd(); 192 | 193 | 194 | 195 | glFlush(); // Process all OpenGL routines 196 | } 197 | int main(int argc, char* argv[]) 198 | { 199 | glutInit(&argc, argv); // Initalise GLUT 200 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode 201 | 202 | glutInitWindowPosition(100, 100); // Set window position 203 | glutInitWindowSize(750, 550); // Set window size 204 | glutCreateWindow("171-15-8700"); // Create display window 205 | 206 | init(); // Execute initialisation procedure 207 | glutDisplayFunc(minhajulAbedin); // Send graphics to display window 208 | glutMainLoop(); // Display everything and wait 209 | 210 | return 0; 211 | } 212 | -------------------------------------------------------------------------------- /Village area/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/Village area/obj/Debug/main.o -------------------------------------------------------------------------------- /Village area/village area.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /Village area/village area.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1595747843 source:c:\users\shafin\desktop\village area\main.cpp 3 | 4 | 5 | 6 | 7 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windows.h 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 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winresrc.h 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winuser.h 46 | 47 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnt.h 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winerror.h 55 | 56 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\string.h 57 | <_mingw.h> 58 | 59 | 60 | 1341006770 c:\program files (x86)\codeblocks\mingw\include\_mingw.h 61 | 62 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetsd.h 63 | 64 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h 65 | 66 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\poppack.h 67 | 68 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winver.h 69 | 70 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\dde.h 71 | 72 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\dlgs.h 73 | 74 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commctrl.h 75 | 76 | 77 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\prsht.h 78 | 79 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windef.h 80 | 81 | 82 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wincon.h 83 | 84 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\winbase.h 85 | 86 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wingdi.h 87 | 88 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnls.h 89 | 90 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h 91 | 92 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winreg.h 93 | 94 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winsvc.h 95 | 96 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cderr.h 97 | 98 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\ddeml.h 99 | 100 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\imm.h 101 | 102 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h 103 | 104 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h 105 | 106 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\nb30.h 107 | 108 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpc.h 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h 117 | 118 | 119 | 120 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetyps.h 121 | 122 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h 123 | 124 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h 125 | 126 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h 127 | 128 | 1341006772 c:\program files (x86)\codeblocks\mingw\include\excpt.h 129 | <_mingw.h> 130 | 131 | 132 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\shellapi.h 133 | 134 | 135 | 136 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h 137 | 138 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winperf.h 139 | 140 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commdlg.h 141 | 142 | 143 | 144 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\unknwn.h 145 | 146 | 147 | 148 | 149 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objfwd.h 150 | 151 | 152 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 153 | 154 | 155 | 156 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 157 | 158 | 159 | 160 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 161 | 162 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winspool.h 163 | 164 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 165 | 166 | 167 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock.h 168 | 169 | 170 | 171 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 172 | 173 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\ole2.h 174 | 175 | 176 | 177 | 178 | 179 | 180 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\objbase.h 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 191 | <_mingw.h> 192 | 193 | 194 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objidl.h 195 | 196 | 197 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cguid.h 198 | 199 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 200 | 201 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 202 | 203 | 204 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 205 | 206 | 207 | 208 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 209 | 210 | 211 | 1453865572 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 212 | 213 | 214 | 215 | 216 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 217 | 218 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 219 | 220 | 221 | 222 | 1341006774 c:\program files (x86)\codeblocks\mingw\include\math.h 223 | <_mingw.h> 224 | 225 | -------------------------------------------------------------------------------- /Village area/village area.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /apple/apple.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 51 | 52 | -------------------------------------------------------------------------------- /apple/apple.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1596484717 source:c:\users\kazi abir\desktop\cg lab\apple\main.cpp 3 | 4 | 5 | 6 | 7 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windows.h 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 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winresrc.h 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winuser.h 46 | 47 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnt.h 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winerror.h 55 | 56 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\string.h 57 | <_mingw.h> 58 | 59 | 60 | 1250308674 c:\program files (x86)\codeblocks\mingw\include\_mingw.h 61 | 62 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetsd.h 63 | 64 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h 65 | 66 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\poppack.h 67 | 68 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winver.h 69 | 70 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dde.h 71 | 72 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dlgs.h 73 | 74 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commctrl.h 75 | 76 | 77 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\prsht.h 78 | 79 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windef.h 80 | 81 | 82 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wincon.h 83 | 84 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\winbase.h 85 | 86 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wingdi.h 87 | 88 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnls.h 89 | 90 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h 91 | 92 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winreg.h 93 | 94 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsvc.h 95 | 96 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cderr.h 97 | 98 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\ddeml.h 99 | 100 | 1228530716 c:\program files (x86)\codeblocks\mingw\include\imm.h 101 | 102 | 1228530720 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h 103 | 104 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h 105 | 106 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\nb30.h 107 | 108 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpc.h 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h 117 | 118 | 119 | 120 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetyps.h 121 | 122 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h 123 | 124 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h 125 | 126 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h 127 | 128 | 1250308676 c:\program files (x86)\codeblocks\mingw\include\excpt.h 129 | <_mingw.h> 130 | 131 | 132 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\shellapi.h 133 | 134 | 135 | 136 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h 137 | 138 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winperf.h 139 | 140 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commdlg.h 141 | 142 | 143 | 144 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\unknwn.h 145 | 146 | 147 | 148 | 149 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objfwd.h 150 | 151 | 152 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 153 | 154 | 155 | 156 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 157 | 158 | 159 | 160 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 161 | 162 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winspool.h 163 | 164 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 165 | 166 | 167 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winsock.h 168 | 169 | 170 | 171 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 172 | 173 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\ole2.h 174 | 175 | 176 | 177 | 178 | 179 | 180 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objbase.h 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 191 | <_mingw.h> 192 | 193 | 194 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objidl.h 195 | 196 | 197 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cguid.h 198 | 199 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 200 | 201 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 202 | 203 | 204 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 205 | 206 | 207 | 208 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 209 | 210 | 211 | 1453865572 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 212 | 213 | 214 | 215 | 216 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 217 | 218 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 219 | 220 | 221 | 222 | 1250308678 c:\program files (x86)\codeblocks\mingw\include\math.h 223 | <_mingw.h> 224 | 225 | -------------------------------------------------------------------------------- /apple/apple.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /apple/bin/Debug/apple.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/apple/bin/Debug/apple.exe -------------------------------------------------------------------------------- /apple/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void init(void) 6 | { 7 | glClearColor(1.0,1.0,1.0,1.0 ); 8 | 9 | glMatrixMode(GL_PROJECTION); 10 | gluOrtho2D(0.0, 30.0, 0.0, 35.0); 11 | } 12 | 13 | void KaziMehediHasan() 14 | { 15 | float theta; 16 | int i; 17 | glClear(GL_COLOR_BUFFER_BIT); 18 | 19 | glColor3f( 0.0, 0.0,0.0); 20 | glLineWidth(6); 21 | glBegin(GL_LINES); 22 | 23 | glVertex2i(1,1); 24 | glVertex2i(1,17); 25 | 26 | glEnd(); 27 | 28 | glColor3f( 0.0, 0.0,0.0); 29 | glLineWidth(6); 30 | glBegin(GL_LINES); 31 | 32 | glVertex2i(1,17); 33 | glVertex2i(23,17); 34 | 35 | glEnd(); 36 | 37 | glColor3f( 0.0, 0.0,0.0); 38 | glLineWidth(7); 39 | glBegin(GL_LINES); 40 | 41 | glVertex2i(23,17); 42 | glVertex2i(23,1); 43 | 44 | glEnd(); 45 | 46 | glColor3f( 0.0, 0.0,0.0); 47 | glLineWidth(6); 48 | glBegin(GL_LINES); 49 | 50 | glVertex2i(23,1); 51 | glVertex2i(1,1); 52 | 53 | glEnd(); //border end 54 | 55 | 56 | glColor3f(0.0,0.0,0.0); 57 | glBegin(GL_POLYGON); 58 | 59 | for(i=0;i<360;i++) 60 | { 61 | theta=i*3.142/180; 62 | 63 | 64 | 65 | glVertex2f(10+4*cos(theta),8+6*sin(theta)); 66 | } 67 | 68 | glEnd(); 69 | 70 | glColor3f(0.0,0.0,0.0); 71 | glBegin(GL_POLYGON); 72 | 73 | for(i=0;i<360;i++) 74 | { 75 | theta=i*3.142/180; 76 | 77 | 78 | 79 | glVertex2f(14+4*cos(theta),8+6*sin(theta)); 80 | } 81 | 82 | glEnd(); 83 | 84 | glColor3f(0.0,0.0,0.0); 85 | glBegin(GL_POLYGON); 86 | glVertex2i(12,14); 87 | glVertex2i(14,15); 88 | glVertex2i(15,17); 89 | glVertex2i(13,16); 90 | 91 | glEnd(); 92 | 93 | 94 | glColor3f(1.0,1.0,1.0); 95 | glBegin(GL_POLYGON); 96 | 97 | for(i=0;i<360;i++) 98 | { 99 | theta=i*3.142/180; 100 | 101 | 102 | 103 | glVertex2f(18+3*cos(theta),9+3*sin(theta)); 104 | } 105 | 106 | glEnd(); 107 | 108 | 109 | 110 | glFlush(); 111 | } 112 | 113 | int main(int argc, char* argv[]) 114 | { 115 | glutInit(&argc, argv); 116 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); 117 | 118 | glutInitWindowPosition(100, 100); 119 | glutInitWindowSize(500, 600); 120 | glutCreateWindow("171-15-8647"); 121 | 122 | init(); 123 | glutDisplayFunc(KaziMehediHasan); 124 | glutMainLoop(); 125 | 126 | return 0; 127 | } 128 | -------------------------------------------------------------------------------- /apple/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/apple/obj/Debug/main.o -------------------------------------------------------------------------------- /birthday greeting card A/bday.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 51 | 52 | -------------------------------------------------------------------------------- /birthday greeting card A/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 A/bday.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /birthday greeting card A/bin/Debug/bday.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/birthday greeting card A/bin/Debug/bday.exe -------------------------------------------------------------------------------- /birthday greeting card A/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/birthday greeting card A/obj/Debug/main.o -------------------------------------------------------------------------------- /happy/bin/Debug/happy.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/happy/bin/Debug/happy.exe -------------------------------------------------------------------------------- /happy/happy.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /happy/happy.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1595247097 source:e:\study\11th semester\cg lab\happy\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 | -------------------------------------------------------------------------------- /happy/happy.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /happy/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/happy/obj/Debug/main.o -------------------------------------------------------------------------------- /house/bin/Debug/task1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/house/bin/Debug/task1.exe -------------------------------------------------------------------------------- /house/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | void init(void) 5 | { 6 | glClearColor(0, 0, 0, 0); // Set display window colour to white 7 | 8 | glMatrixMode(GL_PROJECTION); // Set projection parameters 9 | gluOrtho2D(0.0, 30.0, 0.0, 30.0); 10 | } 11 | 12 | void drawShapes(void) 13 | { 14 | glClear(GL_COLOR_BUFFER_BIT); // Clear display window 15 | 16 | 17 | 18 | // Draw a couple of points 19 | 20 | //Set colour to green 21 | glColor3f(0.0,255.0,0.0 ); 22 | 23 | // Draw a filled triangle 24 | glBegin(GL_TRIANGLES); 25 | glVertex2i(10, 20); 26 | glVertex2i(3, 15); 27 | glVertex2i(18, 15); 28 | glEnd(); 29 | 30 | //Set colour to red 31 | glColor3f(255.0, 248.0, 220.0); 32 | 33 | // Draw a filled quadrilateral 34 | glBegin(GL_POLYGON); 35 | glVertex2i(3, 15); 36 | glVertex2i(18, 15); 37 | 38 | glVertex2i(3, 15); 39 | glVertex2i(3, 5); 40 | 41 | glVertex2i(18, 15); 42 | glVertex2i(18, 5); 43 | 44 | glVertex2i(3, 5); 45 | glVertex2i(18, 5); 46 | glEnd(); 47 | 48 | //Set colour to red 49 | glColor3f(0, 0, 128); 50 | 51 | // Draw a filled quadrilateral 52 | glBegin(GL_POLYGON); 53 | glVertex2i(8, 10); 54 | glVertex2i(12, 10); 55 | 56 | glVertex2i(8, 10); 57 | glVertex2i(8, 5); 58 | 59 | glVertex2i(8, 5); 60 | glVertex2i(12, 5); 61 | 62 | glVertex2i(12, 5); 63 | glVertex2i(12, 10); 64 | glEnd(); 65 | 66 | //Set colour to red 67 | glColor3f(255, 0 ,0 ); 68 | 69 | // Draw a filled quadrilateral 70 | glBegin(GL_POLYGON); 71 | glVertex2i(4, 14); 72 | glVertex2i(7, 14); 73 | 74 | glVertex2i(4, 14); 75 | glVertex2i(4, 11); 76 | 77 | glVertex2i(4, 11); 78 | glVertex2i(7, 11); 79 | 80 | glVertex2i(7, 14); 81 | glVertex2i(7, 11); 82 | glEnd(); 83 | 84 | //Set colour to red 85 | glColor3f(255, 0 ,0 ); 86 | 87 | // Draw a filled quadrilateral 88 | glBegin(GL_POLYGON); 89 | glVertex2i(13, 14); 90 | glVertex2i(16, 14); 91 | 92 | glVertex2i(13, 14); 93 | glVertex2i(13, 11); 94 | 95 | glVertex2i(13, 11); 96 | glVertex2i(16, 11); 97 | 98 | glVertex2i(16, 14); 99 | glVertex2i(16, 11); 100 | glEnd(); 101 | 102 | 103 | glFlush(); // Process all OpenGL routines 104 | } 105 | int main(int argc, char* argv[]) 106 | { 107 | glutInit(&argc, argv); // Initalise GLUT 108 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode 109 | 110 | glutInitWindowPosition(100, 100); // Set window position 111 | glutInitWindowSize(350, 350); // Set window size 112 | glutCreateWindow("171-15-8849"); // Create display window 113 | 114 | init(); // Execute initialisation procedure 115 | glutDisplayFunc(drawShapes); // Send graphics to display window 116 | glutMainLoop(); // Display everything and wait 117 | 118 | return 0; 119 | } 120 | -------------------------------------------------------------------------------- /house/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/house/main.o -------------------------------------------------------------------------------- /house/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/house/obj/Debug/main.o -------------------------------------------------------------------------------- /house/task1.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /house/task1.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1593327753 source:e:\study\11th semester\cg lab\task1\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 | -------------------------------------------------------------------------------- /house/task1.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /logo/bin/Debug/logo.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/logo/bin/Debug/logo.exe -------------------------------------------------------------------------------- /logo/logo.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 52 | 53 | -------------------------------------------------------------------------------- /logo/logo.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1596589444 source:c:\users\kaium ahmed\desktop\logo\main.cpp 3 | 4 | 5 | 6 | 7 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\windows.h 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 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winresrc.h 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 1301114764 c:\program files (x86)\codeblocks\mingw\include\winuser.h 46 | 47 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winnt.h 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winerror.h 55 | 56 | 1341010376 c:\program files (x86)\codeblocks\mingw\include\string.h 57 | <_mingw.h> 58 | 59 | 60 | 1341010370 c:\program files (x86)\codeblocks\mingw\include\_mingw.h 61 | 62 | 1301114748 c:\program files (x86)\codeblocks\mingw\include\basetsd.h 63 | 64 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h 65 | 66 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\poppack.h 67 | 68 | 1301114764 c:\program files (x86)\codeblocks\mingw\include\winver.h 69 | 70 | 1301114748 c:\program files (x86)\codeblocks\mingw\include\dde.h 71 | 72 | 1301114750 c:\program files (x86)\codeblocks\mingw\include\dlgs.h 73 | 74 | 1301114748 c:\program files (x86)\codeblocks\mingw\include\commctrl.h 75 | 76 | 77 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\prsht.h 78 | 79 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\windef.h 80 | 81 | 82 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\wincon.h 83 | 84 | 1301114760 c:\program files (x86)\codeblocks\mingw\include\winbase.h 85 | 86 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\wingdi.h 87 | 88 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winnls.h 89 | 90 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h 91 | 92 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winreg.h 93 | 94 | 1301114764 c:\program files (x86)\codeblocks\mingw\include\winsvc.h 95 | 96 | 1301114748 c:\program files (x86)\codeblocks\mingw\include\cderr.h 97 | 98 | 1301114748 c:\program files (x86)\codeblocks\mingw\include\ddeml.h 99 | 100 | 1301114750 c:\program files (x86)\codeblocks\mingw\include\imm.h 101 | 102 | 1301114754 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h 103 | 104 | 1301114754 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h 105 | 106 | 1301114754 c:\program files (x86)\codeblocks\mingw\include\nb30.h 107 | 108 | 1301114758 c:\program files (x86)\codeblocks\mingw\include\rpc.h 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 1301114758 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h 117 | 118 | 119 | 120 | 1301114748 c:\program files (x86)\codeblocks\mingw\include\basetyps.h 121 | 122 | 1301114758 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h 123 | 124 | 1301114758 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h 125 | 126 | 1301114758 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h 127 | 128 | 1341010372 c:\program files (x86)\codeblocks\mingw\include\excpt.h 129 | <_mingw.h> 130 | 131 | 132 | 1301114760 c:\program files (x86)\codeblocks\mingw\include\shellapi.h 133 | 134 | 135 | 136 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h 137 | 138 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winperf.h 139 | 140 | 1301114748 c:\program files (x86)\codeblocks\mingw\include\commdlg.h 141 | 142 | 143 | 144 | 1301114760 c:\program files (x86)\codeblocks\mingw\include\unknwn.h 145 | 146 | 147 | 148 | 149 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\objfwd.h 150 | 151 | 152 | 1301114764 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 153 | 154 | 155 | 156 | 1301114758 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 157 | 158 | 159 | 160 | 1301114758 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 161 | 162 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winspool.h 163 | 164 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 165 | 166 | 167 | 1301114762 c:\program files (x86)\codeblocks\mingw\include\winsock.h 168 | 169 | 170 | 171 | 1301114754 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 172 | 173 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\ole2.h 174 | 175 | 176 | 177 | 178 | 179 | 180 | 1301114754 c:\program files (x86)\codeblocks\mingw\include\objbase.h 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 1341010376 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 191 | <_mingw.h> 192 | 193 | 194 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\objidl.h 195 | 196 | 197 | 1301114748 c:\program files (x86)\codeblocks\mingw\include\cguid.h 198 | 199 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 200 | 201 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 202 | 203 | 204 | 1301114754 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 205 | 206 | 207 | 208 | 1301114756 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 209 | 210 | 211 | 1453887172 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 212 | 213 | 214 | 215 | 216 | 1301114764 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 217 | 218 | 1301114764 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 219 | 220 | 221 | 222 | 1341010374 c:\program files (x86)\codeblocks\mingw\include\math.h 223 | <_mingw.h> 224 | 225 | -------------------------------------------------------------------------------- /logo/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void init(void) 6 | { 7 | glClearColor(255, 255, 255, 0);// Set display window colour to white 8 | //glVertex2f(-1,-1); 9 | glMatrixMode(GL_PROJECTION); // Set projection parameters 10 | gluOrtho2D(0.0, 40.0, 0.0, 30.0); 11 | } 12 | 13 | void momo() 14 | { 15 | 16 | float theta; 17 | int i; 18 | glClear(GL_COLOR_BUFFER_BIT); 19 | 20 | 21 | 22 | //circle 23 | 24 | glColor3ub(255, 102, 0); 25 | glBegin(GL_POLYGON); 26 | for(i=0;i<360;i++) 27 | { 28 | theta=i*3.142/180; 29 | glVertex2f(15+12*cos(theta),15+12*sin(theta)); // orange circle at 15,15 30 | } 31 | glEnd(); 32 | 33 | glColor3ub(255, 255, 255); 34 | glBegin(GL_POLYGON); 35 | for(i=0;i<360;i++) 36 | { 37 | theta=i*3.142/180; 38 | glVertex2f(15+6*cos(theta),17+6*sin(theta)); //white circle at 15,17 39 | } 40 | glEnd(); 41 | glColor3ub(255, 102, 0); 42 | glBegin(GL_POLYGON); 43 | for(i=0;i<360;i++) 44 | { 45 | theta=i*3.142/180; 46 | glVertex2f(15+3*cos(theta),17+3*sin(theta)); //mid circle at 15,17 47 | } 48 | glEnd(); 49 | 50 | 51 | // triangles shape 52 | glColor3f(255, 255, 255); 53 | 54 | glBegin(GL_TRIANGLES); 55 | glVertex2i(15, 24); 56 | glVertex2i(13, 22); 57 | glVertex2i(17, 22); 58 | 59 | glEnd(); 60 | 61 | glColor3f(255, 255, 255); 62 | 63 | glBegin(GL_TRIANGLES); 64 | glVertex2i(17, 24); 65 | glVertex2i(18, 22); 66 | glVertex2i(15, 22); 67 | 68 | glEnd(); 69 | 70 | 71 | glColor3f(255, 255, 255); 72 | 73 | glBegin(GL_TRIANGLES); 74 | glVertex2i(19, 23); 75 | glVertex2i(19, 20); 76 | glVertex2i(16, 22); 77 | 78 | glEnd(); 79 | 80 | 81 | glColor3f(255, 255, 255); 82 | 83 | glBegin(GL_TRIANGLES); 84 | glVertex2i(21, 22); 85 | glVertex2i(20, 19); 86 | glVertex2i(17, 21); 87 | 88 | glEnd(); 89 | 90 | glColor3f(255, 255, 255); 91 | 92 | glBegin(GL_TRIANGLES); 93 | glVertex2i(22, 20); 94 | glVertex2i(21, 17); 95 | glVertex2i(20, 20); 96 | 97 | glEnd(); 98 | 99 | glColor3f(255, 255, 255); 100 | 101 | glBegin(GL_TRIANGLES); 102 | glVertex2i(23, 17); 103 | glVertex2i(20, 15); 104 | glVertex2i(20, 19); 105 | 106 | glEnd(); 107 | 108 | 109 | glColor3f(255, 255, 255); 110 | 111 | glBegin(GL_TRIANGLES); 112 | glVertex2i(22, 14); 113 | glVertex2i(18, 14); 114 | glVertex2i(20, 17); 115 | 116 | glEnd(); 117 | 118 | 119 | glColor3f(255, 255, 255); 120 | 121 | glBegin(GL_TRIANGLES); 122 | glVertex2i(20, 12); 123 | glVertex2i(18, 13); 124 | glVertex2i(20, 15); 125 | 126 | glEnd(); 127 | 128 | glColor3f(255, 255, 255); 129 | 130 | glBegin(GL_TRIANGLES); 131 | glVertex2i(13, 24); 132 | glVertex2i(15, 22); 133 | glVertex2i(12, 22); 134 | 135 | glEnd(); 136 | 137 | glColor3f(255, 255, 255); 138 | 139 | glBegin(GL_TRIANGLES); 140 | glVertex2i(11, 23); 141 | glVertex2i(14, 22); 142 | glVertex2i(11, 20); 143 | 144 | glEnd(); 145 | 146 | glColor3f(255, 255, 255); 147 | 148 | glBegin(GL_TRIANGLES); 149 | glVertex2i(9, 22); 150 | glVertex2i(13, 21); 151 | glVertex2i(10, 19); 152 | 153 | glEnd(); 154 | 155 | glColor3f(255, 255, 255); 156 | 157 | glBegin(GL_TRIANGLES); 158 | glVertex2i(8, 20); 159 | glVertex2i(10, 20); 160 | glVertex2i(9, 17); 161 | 162 | glEnd(); 163 | 164 | 165 | glColor3f(255, 255, 255); 166 | 167 | glBegin(GL_TRIANGLES); 168 | glVertex2i(7, 17); 169 | glVertex2i(10, 19); 170 | glVertex2i(10,15); 171 | 172 | glEnd(); 173 | 174 | 175 | glColor3f(255, 255, 255); 176 | 177 | glBegin(GL_TRIANGLES); 178 | glVertex2i(10, 17); 179 | glVertex2i(12, 14); 180 | glVertex2i(8, 14); 181 | 182 | glEnd(); 183 | 184 | glColor3f(255, 255, 255); 185 | 186 | glBegin(GL_TRIANGLES); 187 | glVertex2i(10, 15); 188 | glVertex2i(12, 13); 189 | glVertex2i(10, 12); 190 | 191 | glEnd(); 192 | 193 | 194 | 195 | 196 | // polygonal shape 197 | glColor3f(255, 255, 255); 198 | 199 | glBegin(GL_POLYGON); 200 | glVertex2i(12, 13); 201 | glVertex2i(18, 13); 202 | 203 | glVertex2i(20, 6); 204 | glVertex2i(18, 7); 205 | glVertex2i(16, 6); 206 | glVertex2i(15, 10); 207 | 208 | glVertex2i(14, 6); 209 | glVertex2i(12, 7); 210 | glVertex2i(10, 6); 211 | 212 | 213 | glEnd(); 214 | 215 | 216 | glFlush(); 217 | } 218 | 219 | int main(int argc, char* argv[]) 220 | { 221 | glutInit(&argc, argv); // Initalise GLUT 222 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode 223 | 224 | glutInitWindowPosition(100, 100); // Set window position 225 | glutInitWindowSize(400, 400); // Set window size 226 | glutCreateWindow("171-15-8849"); // Create display window 227 | 228 | init(); // Execute initialisation procedure 229 | glutDisplayFunc(momo); // Send graphics to display window 230 | glutMainLoop(); // Display everything and wait 231 | 232 | return 0; 233 | } 234 | -------------------------------------------------------------------------------- /logo/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/logo/obj/Debug/main.o -------------------------------------------------------------------------------- /park view 2/171-15-8830.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 51 | 52 | -------------------------------------------------------------------------------- /park view 2/171-15-8830.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1596484560 source:c:\users\kazi abir\desktop\cg lab\171-15-8830\main.cpp 3 | 4 | 5 | 6 | 7 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windows.h 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 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winresrc.h 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winuser.h 46 | 47 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnt.h 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winerror.h 55 | 56 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\string.h 57 | <_mingw.h> 58 | 59 | 60 | 1250308674 c:\program files (x86)\codeblocks\mingw\include\_mingw.h 61 | 62 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetsd.h 63 | 64 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h 65 | 66 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\poppack.h 67 | 68 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winver.h 69 | 70 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dde.h 71 | 72 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dlgs.h 73 | 74 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commctrl.h 75 | 76 | 77 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\prsht.h 78 | 79 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windef.h 80 | 81 | 82 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wincon.h 83 | 84 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\winbase.h 85 | 86 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wingdi.h 87 | 88 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnls.h 89 | 90 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h 91 | 92 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winreg.h 93 | 94 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsvc.h 95 | 96 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cderr.h 97 | 98 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\ddeml.h 99 | 100 | 1228530716 c:\program files (x86)\codeblocks\mingw\include\imm.h 101 | 102 | 1228530720 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h 103 | 104 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h 105 | 106 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\nb30.h 107 | 108 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpc.h 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h 117 | 118 | 119 | 120 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetyps.h 121 | 122 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h 123 | 124 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h 125 | 126 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h 127 | 128 | 1250308676 c:\program files (x86)\codeblocks\mingw\include\excpt.h 129 | <_mingw.h> 130 | 131 | 132 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\shellapi.h 133 | 134 | 135 | 136 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h 137 | 138 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winperf.h 139 | 140 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commdlg.h 141 | 142 | 143 | 144 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\unknwn.h 145 | 146 | 147 | 148 | 149 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objfwd.h 150 | 151 | 152 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 153 | 154 | 155 | 156 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 157 | 158 | 159 | 160 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 161 | 162 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winspool.h 163 | 164 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 165 | 166 | 167 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winsock.h 168 | 169 | 170 | 171 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 172 | 173 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\ole2.h 174 | 175 | 176 | 177 | 178 | 179 | 180 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objbase.h 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 191 | <_mingw.h> 192 | 193 | 194 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objidl.h 195 | 196 | 197 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cguid.h 198 | 199 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 200 | 201 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 202 | 203 | 204 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 205 | 206 | 207 | 208 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 209 | 210 | 211 | 1453865572 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 212 | 213 | 214 | 215 | 216 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 217 | 218 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 219 | 220 | 221 | 222 | 1250308678 c:\program files (x86)\codeblocks\mingw\include\math.h 223 | <_mingw.h> 224 | 225 | -------------------------------------------------------------------------------- /park view 2/171-15-8830.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /park view 2/bin/Debug/171-15-8830.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/park view 2/bin/Debug/171-15-8830.exe -------------------------------------------------------------------------------- /park view 2/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/park view 2/obj/Debug/main.o -------------------------------------------------------------------------------- /park view A2/bin/Debug/suchona.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/park view A2/bin/Debug/suchona.exe -------------------------------------------------------------------------------- /park view A2/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/park view A2/obj/Debug/main.o -------------------------------------------------------------------------------- /park view A2/suchona.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 51 | 52 | -------------------------------------------------------------------------------- /park view A2/suchona.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1597085019 source:c:\users\kazi abir\desktop\cg lab\suchona\main.cpp 3 | 4 | 5 | 6 | 7 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windows.h 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 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winresrc.h 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winuser.h 46 | 47 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnt.h 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winerror.h 55 | 56 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\string.h 57 | <_mingw.h> 58 | 59 | 60 | 1250308674 c:\program files (x86)\codeblocks\mingw\include\_mingw.h 61 | 62 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetsd.h 63 | 64 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h 65 | 66 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\poppack.h 67 | 68 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winver.h 69 | 70 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dde.h 71 | 72 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\dlgs.h 73 | 74 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commctrl.h 75 | 76 | 77 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\prsht.h 78 | 79 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\windef.h 80 | 81 | 82 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wincon.h 83 | 84 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\winbase.h 85 | 86 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\wingdi.h 87 | 88 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnls.h 89 | 90 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h 91 | 92 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winreg.h 93 | 94 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsvc.h 95 | 96 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cderr.h 97 | 98 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\ddeml.h 99 | 100 | 1228530716 c:\program files (x86)\codeblocks\mingw\include\imm.h 101 | 102 | 1228530720 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h 103 | 104 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h 105 | 106 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\nb30.h 107 | 108 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpc.h 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 1228530726 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h 117 | 118 | 119 | 120 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\basetyps.h 121 | 122 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h 123 | 124 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h 125 | 126 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h 127 | 128 | 1250308676 c:\program files (x86)\codeblocks\mingw\include\excpt.h 129 | <_mingw.h> 130 | 131 | 132 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\shellapi.h 133 | 134 | 135 | 136 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h 137 | 138 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winperf.h 139 | 140 | 1228530714 c:\program files (x86)\codeblocks\mingw\include\commdlg.h 141 | 142 | 143 | 144 | 1228530730 c:\program files (x86)\codeblocks\mingw\include\unknwn.h 145 | 146 | 147 | 148 | 149 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objfwd.h 150 | 151 | 152 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 153 | 154 | 155 | 156 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 157 | 158 | 159 | 160 | 1228530728 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 161 | 162 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winspool.h 163 | 164 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 165 | 166 | 167 | 1228530732 c:\program files (x86)\codeblocks\mingw\include\winsock.h 168 | 169 | 170 | 171 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 172 | 173 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\ole2.h 174 | 175 | 176 | 177 | 178 | 179 | 180 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objbase.h 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 1250308680 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 191 | <_mingw.h> 192 | 193 | 194 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\objidl.h 195 | 196 | 197 | 1228530712 c:\program files (x86)\codeblocks\mingw\include\cguid.h 198 | 199 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 200 | 201 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 202 | 203 | 204 | 1228530722 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 205 | 206 | 207 | 208 | 1228530724 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 209 | 210 | 211 | 1453865572 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 212 | 213 | 214 | 215 | 216 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 217 | 218 | 1228530734 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 219 | 220 | 221 | 222 | 1250308678 c:\program files (x86)\codeblocks\mingw\include\math.h 223 | <_mingw.h> 224 | 225 | -------------------------------------------------------------------------------- /park view A2/suchona.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /park/bin/Debug/park.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/park/bin/Debug/park.exe -------------------------------------------------------------------------------- /park/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void init(void) 6 | { 7 | glClearColor(255, 255, 255, 0);// Set display window colour to white 8 | //glVertex2f(-1,-1); 9 | glMatrixMode(GL_PROJECTION); // Set projection parameters 10 | gluOrtho2D(0.0, 40.0, 0.0, 30.0); 11 | } 12 | 13 | void momo() 14 | { 15 | 16 | float theta; 17 | int i; 18 | glClear(GL_COLOR_BUFFER_BIT); 19 | 20 | 21 | 22 | //circle 23 | 24 | glColor3ub(255, 102, 0); 25 | glBegin(GL_POLYGON); 26 | for(i=0;i<360;i++) 27 | { 28 | theta=i*3.142/180; 29 | glVertex2f(15+12*cos(theta),15+12*sin(theta)); // orange circle at 15,15 30 | } 31 | glEnd(); 32 | 33 | glColor3ub(255, 255, 255); 34 | glBegin(GL_POLYGON); 35 | for(i=0;i<360;i++) 36 | { 37 | theta=i*3.142/180; 38 | glVertex2f(15+6*cos(theta),17+6*sin(theta)); //white circle at 15,17 39 | } 40 | glEnd(); 41 | glColor3ub(255, 102, 0); 42 | glBegin(GL_POLYGON); 43 | for(i=0;i<360;i++) 44 | { 45 | theta=i*3.142/180; 46 | glVertex2f(15+3*cos(theta),17+3*sin(theta)); //mid circle at 15,17 47 | } 48 | glEnd(); 49 | 50 | 51 | // triangles shape 52 | glColor3f(255, 255, 255); 53 | 54 | glBegin(GL_TRIANGLES); 55 | glVertex2i(15, 24); 56 | glVertex2i(13, 22); 57 | glVertex2i(17, 22); 58 | 59 | glEnd(); 60 | 61 | glColor3f(255, 255, 255); 62 | 63 | glBegin(GL_TRIANGLES); 64 | glVertex2i(17, 24); 65 | glVertex2i(18, 22); 66 | glVertex2i(15, 22); 67 | 68 | glEnd(); 69 | 70 | 71 | glColor3f(255, 255, 255); 72 | 73 | glBegin(GL_TRIANGLES); 74 | glVertex2i(19, 23); 75 | glVertex2i(19, 20); 76 | glVertex2i(16, 22); 77 | 78 | glEnd(); 79 | 80 | 81 | glColor3f(255, 255, 255); 82 | 83 | glBegin(GL_TRIANGLES); 84 | glVertex2i(21, 22); 85 | glVertex2i(20, 19); 86 | glVertex2i(17, 21); 87 | 88 | glEnd(); 89 | 90 | glColor3f(255, 255, 255); 91 | 92 | glBegin(GL_TRIANGLES); 93 | glVertex2i(22, 20); 94 | glVertex2i(21, 17); 95 | glVertex2i(20, 20); 96 | 97 | glEnd(); 98 | 99 | glColor3f(255, 255, 255); 100 | 101 | glBegin(GL_TRIANGLES); 102 | glVertex2i(23, 17); 103 | glVertex2i(20, 15); 104 | glVertex2i(20, 19); 105 | 106 | glEnd(); 107 | 108 | 109 | glColor3f(255, 255, 255); 110 | 111 | glBegin(GL_TRIANGLES); 112 | glVertex2i(22, 14); 113 | glVertex2i(18, 14); 114 | glVertex2i(20, 17); 115 | 116 | glEnd(); 117 | 118 | 119 | glColor3f(255, 255, 255); 120 | 121 | glBegin(GL_TRIANGLES); 122 | glVertex2i(20, 12); 123 | glVertex2i(18, 13); 124 | glVertex2i(20, 15); 125 | 126 | glEnd(); 127 | 128 | glColor3f(255, 255, 255); 129 | 130 | glBegin(GL_TRIANGLES); 131 | glVertex2i(13, 24); 132 | glVertex2i(15, 22); 133 | glVertex2i(12, 22); 134 | 135 | glEnd(); 136 | 137 | glColor3f(255, 255, 255); 138 | 139 | glBegin(GL_TRIANGLES); 140 | glVertex2i(11, 23); 141 | glVertex2i(14, 22); 142 | glVertex2i(11, 20); 143 | 144 | glEnd(); 145 | 146 | glColor3f(255, 255, 255); 147 | 148 | glBegin(GL_TRIANGLES); 149 | glVertex2i(9, 22); 150 | glVertex2i(13, 21); 151 | glVertex2i(10, 19); 152 | 153 | glEnd(); 154 | 155 | glColor3f(255, 255, 255); 156 | 157 | glBegin(GL_TRIANGLES); 158 | glVertex2i(8, 20); 159 | glVertex2i(10, 20); 160 | glVertex2i(9, 17); 161 | 162 | glEnd(); 163 | 164 | 165 | glColor3f(255, 255, 255); 166 | 167 | glBegin(GL_TRIANGLES); 168 | glVertex2i(7, 17); 169 | glVertex2i(10, 19); 170 | glVertex2i(10,15); 171 | 172 | glEnd(); 173 | 174 | 175 | glColor3f(255, 255, 255); 176 | 177 | glBegin(GL_TRIANGLES); 178 | glVertex2i(10, 17); 179 | glVertex2i(12, 14); 180 | glVertex2i(8, 14); 181 | 182 | glEnd(); 183 | 184 | glColor3f(255, 255, 255); 185 | 186 | glBegin(GL_TRIANGLES); 187 | glVertex2i(10, 15); 188 | glVertex2i(12, 13); 189 | glVertex2i(10, 12); 190 | 191 | glEnd(); 192 | 193 | 194 | 195 | 196 | // polygonal shape 197 | glColor3f(255, 255, 255); 198 | 199 | glBegin(GL_POLYGON); 200 | glVertex2i(12, 13); 201 | glVertex2i(18, 13); 202 | 203 | glVertex2i(20, 6); 204 | glVertex2i(18, 7); 205 | glVertex2i(16, 6); 206 | glVertex2i(15, 10); 207 | 208 | glVertex2i(14, 6); 209 | glVertex2i(12, 7); 210 | glVertex2i(10, 6); 211 | 212 | 213 | glEnd(); 214 | 215 | 216 | glFlush(); 217 | } 218 | 219 | int main(int argc, char* argv[]) 220 | { 221 | glutInit(&argc, argv); // Initalise GLUT 222 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode 223 | 224 | glutInitWindowPosition(100, 100); // Set window position 225 | glutInitWindowSize(400, 400); // Set window size 226 | glutCreateWindow("171-15-8849"); // Create display window 227 | 228 | init(); // Execute initialisation procedure 229 | glutDisplayFunc(momo); // Send graphics to display window 230 | glutMainLoop(); // Display everything and wait 231 | 232 | return 0; 233 | } 234 | -------------------------------------------------------------------------------- /park/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/park/obj/Debug/main.o -------------------------------------------------------------------------------- /park/park.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 53 | 54 | -------------------------------------------------------------------------------- /park/park.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /urban night scenerio/bin/Debug/labevu2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/urban night scenerio/bin/Debug/labevu2.exe -------------------------------------------------------------------------------- /urban night scenerio/labevu2.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 53 | 54 | -------------------------------------------------------------------------------- /urban night scenerio/labevu2.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1595693640 source:e:\study\11th semester\cg lab\labevu2\main.cpp 3 | 4 | 5 | 6 | 7 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windows.h 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 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winresrc.h 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winuser.h 46 | 47 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnt.h 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winerror.h 55 | 56 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\string.h 57 | <_mingw.h> 58 | 59 | 60 | 1341006770 c:\program files (x86)\codeblocks\mingw\include\_mingw.h 61 | 62 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetsd.h 63 | 64 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack4.h 65 | 66 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\poppack.h 67 | 68 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winver.h 69 | 70 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\dde.h 71 | 72 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\dlgs.h 73 | 74 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commctrl.h 75 | 76 | 77 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\prsht.h 78 | 79 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\windef.h 80 | 81 | 82 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wincon.h 83 | 84 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\winbase.h 85 | 86 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\wingdi.h 87 | 88 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnls.h 89 | 90 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winnetwk.h 91 | 92 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winreg.h 93 | 94 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\winsvc.h 95 | 96 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cderr.h 97 | 98 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\ddeml.h 99 | 100 | 1301111150 c:\program files (x86)\codeblocks\mingw\include\imm.h 101 | 102 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\lzexpand.h 103 | 104 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mmsystem.h 105 | 106 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\nb30.h 107 | 108 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpc.h 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdce.h 117 | 118 | 119 | 120 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\basetyps.h 121 | 122 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcdcep.h 123 | 124 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsi.h 125 | 126 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnterr.h 127 | 128 | 1341006772 c:\program files (x86)\codeblocks\mingw\include\excpt.h 129 | <_mingw.h> 130 | 131 | 132 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\shellapi.h 133 | 134 | 135 | 136 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\pshpack2.h 137 | 138 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winperf.h 139 | 140 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\commdlg.h 141 | 142 | 143 | 144 | 1301111160 c:\program files (x86)\codeblocks\mingw\include\unknwn.h 145 | 146 | 147 | 148 | 149 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objfwd.h 150 | 151 | 152 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\wtypes.h 153 | 154 | 155 | 156 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcndr.h 157 | 158 | 159 | 160 | 1301111158 c:\program files (x86)\codeblocks\mingw\include\rpcnsip.h 161 | 162 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winspool.h 163 | 164 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock2.h 165 | 166 | 167 | 1301111162 c:\program files (x86)\codeblocks\mingw\include\winsock.h 168 | 169 | 170 | 171 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\mswsock.h 172 | 173 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\ole2.h 174 | 175 | 176 | 177 | 178 | 179 | 180 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\objbase.h 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 1341006776 c:\program files (x86)\codeblocks\mingw\include\stdlib.h 191 | <_mingw.h> 192 | 193 | 194 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\objidl.h 195 | 196 | 197 | 1301111148 c:\program files (x86)\codeblocks\mingw\include\cguid.h 198 | 199 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\olectlid.h 200 | 201 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleauto.h 202 | 203 | 204 | 1301111154 c:\program files (x86)\codeblocks\mingw\include\oaidl.h 205 | 206 | 207 | 208 | 1301111156 c:\program files (x86)\codeblocks\mingw\include\oleidl.h 209 | 210 | 211 | 1453865572 c:\program files (x86)\codeblocks\mingw\include\gl\glut.h 212 | 213 | 214 | 215 | 216 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\gl.h 217 | 218 | 1301111164 c:\program files (x86)\codeblocks\mingw\include\gl\glu.h 219 | 220 | 221 | 222 | 1341006774 c:\program files (x86)\codeblocks\mingw\include\math.h 223 | <_mingw.h> 224 | 225 | -------------------------------------------------------------------------------- /urban night scenerio/labevu2.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /urban night scenerio/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void init(void) 6 | { 7 | glClearColor(0, 0, 0, 0);// Set display window colour to white 8 | glVertex2f(-1,-1); 9 | glMatrixMode(GL_PROJECTION); // Set projection parameters 10 | gluOrtho2D(0.0, 30.0, 0.0, 30.0); 11 | } 12 | 13 | void momo() 14 | { 15 | float theta; 16 | int i; 17 | glClear(GL_COLOR_BUFFER_BIT); // Clear display window 18 | //Set colour to red 19 | 20 | glColor3ub (0, 0, 0); //Display 21 | glBegin(GL_POLYGON); 22 | glColor3f(0.0, 0, 0.1); 23 | 24 | glVertex2d (0, 0); 25 | glColor3f(0, 0, 0.1); 26 | 27 | glVertex2d (30, 0); 28 | glColor3f(0, 0, 0); 29 | 30 | glVertex2d (30, 30); 31 | glColor3f(0, 0, 0); 32 | 33 | glVertex2d (0, 30); 34 | glEnd(); 35 | 36 | 37 | glColor3ub(230, 230, 250); 38 | glBegin(GL_POLYGON); 39 | for(i=0;i<360;i++) 40 | { 41 | theta=i*3.142/180; 42 | glVertex2f(9+2*cos(theta),19+2*sin(theta)); //half230, 230, 250 43 | } 44 | glEnd(); 45 | 46 | 47 | glColor3ub(1, 1, 1); 48 | glBegin(GL_POLYGON); 49 | for(i=0;i<360;i++) 50 | { 51 | theta=i*3.142/180; 52 | glVertex2f(10+2*cos(theta),20+2*sin(theta)); //moon 0, 20, 40 53 | } 54 | glEnd(); 55 | 56 | //star 57 | 58 | glColor3ub(230, 230, 250); 59 | glBegin(GL_POLYGON); 60 | for(i=0;i<360;i++) 61 | { 62 | theta=i*3.142/180; 63 | glVertex2f(20+.1*cos(theta),20+.1*sin(theta)); //half230, 230, 250 64 | } 65 | glEnd(); 66 | 67 | glColor3ub(230, 230, 250); 68 | glBegin(GL_POLYGON); 69 | for(i=0;i<360;i++) 70 | { 71 | theta=i*3.142/180; 72 | glVertex2f(25+.1*cos(theta),23+.1*sin(theta)); //half230, 230, 250 73 | } 74 | glEnd(); 75 | 76 | glColor3ub(230, 230, 250); 77 | glBegin(GL_POLYGON); 78 | for(i=0;i<360;i++) 79 | { 80 | theta=i*3.142/180; 81 | glVertex2f(25+.1*cos(theta),20+.1*sin(theta)); //half230, 230, 250 82 | } 83 | glEnd(); 84 | 85 | glColor3ub(230, 230, 250); 86 | glBegin(GL_POLYGON); 87 | for(i=0;i<360;i++) 88 | { 89 | theta=i*3.142/180; 90 | glVertex2f(15+.1*cos(theta),22+.1*sin(theta)); //half230, 230, 250 91 | } 92 | glEnd(); 93 | 94 | glColor3ub(230, 230, 250); 95 | glBegin(GL_POLYGON); 96 | for(i=0;i<360;i++) 97 | { 98 | theta=i*3.142/180; 99 | glVertex2f(2+.1*cos(theta),15+.1*sin(theta)); //half230, 230, 250 100 | } 101 | glEnd(); 102 | 103 | glColor3ub(230, 230, 250); 104 | glBegin(GL_POLYGON); 105 | for(i=0;i<360;i++) 106 | { 107 | theta=i*3.142/180; 108 | glVertex2f(3+.1*cos(theta),25+.1*sin(theta)); //half230, 230, 250 109 | } 110 | glEnd(); 111 | 112 | glColor3ub(230, 230, 250); 113 | glBegin(GL_POLYGON); 114 | for(i=0;i<360;i++) 115 | { 116 | theta=i*3.142/180; 117 | glVertex2f(13+.1*cos(theta),28+.1*sin(theta)); //half230, 230, 250 118 | } 119 | glEnd(); 120 | 121 | glColor3ub(230, 230, 250); 122 | glBegin(GL_POLYGON); 123 | for(i=0;i<360;i++) 124 | { 125 | theta=i*3.142/180; 126 | glVertex2f(10+.1*cos(theta),5+.1*sin(theta)); //half230, 230, 250 127 | } 128 | glEnd(); 129 | 130 | glColor3ub(230, 230, 250); 131 | glBegin(GL_POLYGON); 132 | for(i=0;i<360;i++) 133 | { 134 | theta=i*3.142/180; 135 | glVertex2f(10+.1*cos(theta),10+.1*sin(theta)); //half230, 230, 250 136 | } 137 | glEnd(); 138 | 139 | 140 | // b1 141 | glColor3f(0.1, 0.1, 0.1); 142 | 143 | glBegin(GL_POLYGON); 144 | glVertex2i(0, 10); 145 | glVertex2i(5, 10); 146 | 147 | glVertex2i(5, 0); 148 | glVertex2i(0, 0); 149 | 150 | glEnd(); 151 | 152 | glColor3f(255, 215, 0); 153 | 154 | glBegin(GL_POLYGON); 155 | glVertex2i(1, 9); 156 | glVertex2i(2, 9); 157 | 158 | glVertex2i(2, 7); 159 | glVertex2i(1, 7); 160 | 161 | glEnd(); 162 | 163 | glColor3f(255, 215, 0); 164 | 165 | glBegin(GL_POLYGON); 166 | glVertex2i(3, 9); 167 | glVertex2i(4, 9); 168 | 169 | glVertex2i(4, 7); 170 | glVertex2i(3, 7); 171 | 172 | glEnd(); 173 | 174 | glColor3f(255, 215, 0); 175 | 176 | glBegin(GL_POLYGON); 177 | glVertex2i(1, 5); 178 | glVertex2i(2, 5); 179 | 180 | glVertex2i(2, 2); 181 | glVertex2i(1, 2); 182 | 183 | glEnd(); 184 | 185 | glColor3f(255, 215, 0); 186 | 187 | glBegin(GL_POLYGON); 188 | glVertex2i(3, 5); 189 | glVertex2i(4, 5); 190 | 191 | glVertex2i(4, 2); 192 | glVertex2i(3, 2); 193 | 194 | glEnd(); 195 | 196 | // b2 197 | glColor3f(0.1, 0.15, 0.13); 198 | 199 | glBegin(GL_POLYGON); 200 | glVertex2i(5, 8); 201 | glVertex2i(10, 8); 202 | 203 | glVertex2i(10, 0); 204 | glVertex2i(5, 0); 205 | 206 | glEnd(); 207 | 208 | glColor3f(0.81, 0.71, 0.23); 209 | 210 | glBegin(GL_POLYGON); 211 | glVertex2i(6, 6); 212 | glVertex2i(7, 6); 213 | 214 | glVertex2i(7, 2); 215 | glVertex2i(6, 2); 216 | 217 | glEnd(); 218 | 219 | glColor3f(0.81, 0.71, 0.23); 220 | 221 | glBegin(GL_POLYGON); 222 | glVertex2i(8, 6); 223 | glVertex2i(9, 6); 224 | 225 | glVertex2i(9, 2); 226 | glVertex2i(8, 2); 227 | 228 | glEnd(); 229 | 230 | 231 | 232 | // b3 233 | glColor3f(0.1, 0.1, 0.1); 234 | 235 | glBegin(GL_POLYGON); 236 | glVertex2i(15, 15); 237 | glVertex2i(20, 15); 238 | 239 | glVertex2i(20, 0); 240 | glVertex2i(15, 0); 241 | 242 | glEnd(); 243 | 244 | glColor3f(255, 215, 0); 245 | 246 | glBegin(GL_POLYGON); 247 | glVertex2i(16, 14); 248 | glVertex2i(17, 14); 249 | 250 | glVertex2i(17, 11); 251 | glVertex2i(16, 11); 252 | 253 | glEnd(); 254 | 255 | glColor3f(255, 215, 0); 256 | 257 | glBegin(GL_POLYGON); 258 | glVertex2i(18, 14); 259 | glVertex2i(19, 14); 260 | 261 | glVertex2i(19, 11); 262 | glVertex2i(18, 11); 263 | 264 | glEnd(); 265 | 266 | glColor3f(255, 215, 0); 267 | 268 | glBegin(GL_POLYGON); 269 | glVertex2i(16, 9); 270 | glVertex2i(17, 9); 271 | 272 | glVertex2i(17, 5); 273 | glVertex2i(16, 5); 274 | 275 | glEnd(); 276 | 277 | glColor3f(255, 215, 0); 278 | 279 | glBegin(GL_POLYGON); 280 | glVertex2i(18, 9); 281 | glVertex2i(19, 9); 282 | 283 | glVertex2i(19, 5); 284 | glVertex2i(18, 5); 285 | 286 | glEnd(); 287 | glColor3f(255, 215, 0); 288 | 289 | glBegin(GL_POLYGON); 290 | glVertex2i(17, 4); 291 | glVertex2i(18, 4); 292 | 293 | glVertex2i(18, 0); 294 | glVertex2i(17, 0); 295 | 296 | glEnd(); 297 | 298 | 299 | 300 | 301 | // b4 302 | glColor3f(0.1, 0.15, 0.13); 303 | 304 | glBegin(GL_POLYGON); 305 | glVertex2i(20, 10); 306 | glVertex2i(25, 10); 307 | 308 | glVertex2i(25, 0); 309 | glVertex2i(20, 0); 310 | 311 | glEnd(); 312 | 313 | glColor3f(0.81, 0.71, 0.23); 314 | 315 | glBegin(GL_POLYGON); 316 | glVertex2i(21, 9); 317 | glVertex2i(23, 9); 318 | 319 | glVertex2i(23, 5); 320 | glVertex2i(21, 5); 321 | 322 | glEnd(); 323 | 324 | glColor3f(0.81, 0.71, 0.23); 325 | 326 | glBegin(GL_POLYGON); 327 | glVertex2i(21, 4); 328 | glVertex2i(23, 4); 329 | 330 | glVertex2i(23, 0); 331 | glVertex2i(21, 0); 332 | 333 | glEnd(); 334 | 335 | // b5 336 | glColor3f(0.1, 0.1, 0.1); 337 | 338 | glBegin(GL_POLYGON); 339 | glVertex2i(25, 0); 340 | glVertex2i(25, 15); 341 | 342 | glVertex2i(30, 15); 343 | glVertex2i(30, 0); 344 | 345 | glEnd(); 346 | 347 | glColor3f(255, 215, 0); 348 | 349 | glBegin(GL_POLYGON); 350 | glVertex2i(26, 14); 351 | glVertex2i(28, 14); 352 | 353 | glVertex2i(28, 8); 354 | glVertex2i(26, 8); 355 | 356 | glEnd(); 357 | 358 | glColor3f(255, 215, 0); 359 | 360 | glBegin(GL_POLYGON); 361 | glVertex2i(26, 6); 362 | glVertex2i(28, 6); 363 | 364 | glVertex2i(28, 0); 365 | glVertex2i(26, 0); 366 | 367 | glEnd(); 368 | 369 | 370 | 371 | glFlush(); 372 | } 373 | 374 | int main(int argc, char* argv[]) 375 | { 376 | glutInit(&argc, argv); // Initalise GLUT 377 | glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); // Set display mode 378 | 379 | glutInitWindowPosition(100, 100); // Set window position 380 | glutInitWindowSize(400, 400); // Set window size 381 | glutCreateWindow("171-15-8849"); // Create display window 382 | 383 | init(); // Execute initialisation procedure 384 | glutDisplayFunc(momo); // Send graphics to display window 385 | glutMainLoop(); // Display everything and wait 386 | 387 | return 0; 388 | } 389 | -------------------------------------------------------------------------------- /urban night scenerio/obj/Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IamOmaR22/Computer-Graphics-with-OpenGL/9ccd3cdb1534fcd75364fd5881f247e51a1bee44/urban night scenerio/obj/Debug/main.o --------------------------------------------------------------------------------