Skip to content

This repository contains the lab works and assignment solution of Computer Graphics Course

Notifications You must be signed in to change notification settings

delowarsikder/Computer-Graphics-Laboratory

Repository files navigation

How To install open GL in Windows-10 32 bit or 64 bit system

You should follow the below steps one by one

Step 1: Download and setup

1.Download and install codeblocks-17.12mingw-setup.exe From Here .Unless Codeblocks not install in your computer.

2.Download glut-3.7.6-bin.zip from Here and Unzip this file.There, your will get at least 3 files.glut.h, glut32.dll, glut32.lib

3.Copy glut.h file and Go to C:\Program Files (x86)\CodeBlocks\MinGW\include\GL this Location in your computer and paste glut.h

4.Copy glut32.lib file and Go to C:\Program Files (x86)\CodeBlocks\MinGW\lib this Location in your computer and paste glut32.lib

5.Copy glut32.dll file and Go to C:\Windows\SysWOW64 this Location in your computer and paste glut32.dll

  • Note: If your Operating System is 32 bit, folder name might be C:\Windows\System32

  • if your Codeblocks is 64 bit , you will get Codeblocks in Program Files instead of Program Files (x86)

N.B: When you go to noted path and paste the file.

you will insure that don't modify ,replace or delete file.just you paste your desire file.

Step 2: Linker settings for codeblocks

1.Open Codebocks and then go settings -> compiler -> linker settings.

2.Click add button and go to C:\Program Files (x86)\CodeBlocks\MinGW\lib and add this file (glut32.lib, libglu32.a, libopengl32.a) one by one

3.Press ok and finally Click ok and Close the top of window.

Test the settings

1.Open Codeblocks go to File->New -> Project -> GLUT Project -> Go -> Next

2.Provide the project name and Choose the path where you want to save your project then go to next.

3.select C:\Program Files (x86)\CodeBlocks\MinGW as a GULT's Location then next -> Finish.

4.When you create new project.you will already get a ready made project default.

5.Click main.cpp file and Add #include<windows.h> Line in top your project code.

6.Press F9 or go to Built -> Run to run your project.

If you follow the instructions above correctly. Then your program will be successfully run properly.

Happy Computer Graphics


My project

Computer Graphics Laboratory

  • computer graphics assignment file contain the MVC to VCS and VCS to NDCS conversion .

1. Boat Racing folder contain the project that is developed in computer graphics laboratory

2. Lighting and class room desing repo contain the lab works

  • This lab works are designed and developed an attractive class room using c++ ,openGl glu,glut library

About

This repository contains the lab works and assignment solution of Computer Graphics Course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published