SlideShare uma empresa Scribd logo
1 de 29
Installing and
Configuring on Windows
Vijay Kumar Verma (VJY)
Roll No- 1326910
On: 5 March-2014
Objective
Understand Open GL
Installation of Open GL
Configure On Windows
Write Simple Program

3/4/2014

By: VJY

2
What is Open GL?
| Application Program interface.
| Multi-Platform or Cross-Platform API.

| Interact with GPU for accelerate Hardware.
| Easy to Use.
| Developed by Silicon Graphics in 1991.

| Managed by Khronos Group.
| Latest OpenGL 4.4 released in 22 July 2013
3/4/2014

By: VJY

3
Cont…

What is Open GL?
| Performance by GPU
| Control GPU using Graphics shaders

| GPU all rendering

Vertices

3/4/2014

Vertex
Processor

Clipper and
primitive assembler

By: VJY

Rasterizer

Fragment
processor

Pixels

4
Cont…

What is Open GL?
GLUT

Open GL

GLEW

GL

3/4/2014

By: VJY

5
What is GLUT
| Provides functionality common to all window
systems
|
|
|
|

Open a window
Get input from mouse and keyboard
Menus
Event-driven

| GLUT-based user interface library
| freeglut updates GLUT (written by Pawel W.
Olszta)
3/4/2014

By: VJY

6
What is GLEW
| OpenGL Extension Wrangler Library
| Makes it easy to access OpenGL extensions
available on a particular system
| Provide efficient run-time machinism
| Application needs only to include glew.h and run a
glewInit()

3/4/2014

By: VJY

7
Rendered Example

3/4/2014

By: VJY

8
For More Info
| http://www.glprogramming.com/red/

| http://en.wikipedia.org/wiki/OpenGL/
| http://opengl.org/

3/4/2014

By: VJY

9
Now
Understand Open GL
Installation of Open GL
Configure On Windows
Write Simple Program

3/4/2014

By: VJY

10
Downloading
| Downloading required Software
• Dev C++
• Microsoft Visual Studio 2010 Express Edition

| Download Required Library
• Download OpenGL Library
• Download Supported Libraries
3/4/2014

By: VJY

11
Links
| Download Dev C++ http://goo.gl/DsLA
| Download MSVS 2010 http://goo.gl/liHnq

| Download Open GL for VS http://goo.gl/qckMm1
| Download Open GL for Dev C++ http://goo.gl/tgjHnu
| Download Glew for VS http://goo.gl/WuqD95

3/4/2014

By: VJY

12
Installation
| Install Dev C++
| Install Visual Studio

3/4/2014

By: VJY

13
Now
Understand Open GL
Installation of Open GL
Configure On Windows
Write Simple Program

3/4/2014

By: VJY

14
Configure Open GL
| Extract the files:

3/4/2014

By: VJY

15
Configure Open GL
| Open Microsoft SDKs folder path:
C:Program FilesMicrosoft
SDKsWindowsv7.0A
| Now copy the content of the files from the
freeglut and glew here in include and lib
directory. Such as:
Open lib folder of freeglut and copy freeglut.lib and
paste it inside the Lib of v7.0A
Open include folder of freeglut and copy header files
form gl folder to Gl folder of of v7.0A
Do same thing for the glew and for DevC++
3/4/2014

By: VJY

16
Now
Understand Open GL
Installation of Open GL
Configure On Windows
Write Simple Program

3/4/2014

By: VJY

17
Simple Program
| Download simple program from:
Facebook.com/groups/sviet.mca

3/4/2014

By: VJY

18
Compile and Run on MSVC
| Create a new project with a Name
File -> New -> Project
Select “Empty Project” and give a name
| Now Add an item using
Right Click on project in solution
explorer-> Add -> New item –> Select
C++ file -> Type name main.c -> Click
on add button
| Type or paste the source code you
downloaded
3/4/2014

By: VJY

19
Cont.

Compile and Run on MSVC
| Set Property of project
Right Click -> Properties -> select
All Configurations option from drop
down and do following setting
C/C++ -> Preprocessor
Preprocessor Definition:
_CRT_SECURE_NO_WARNINGS
WIN32
_DEBUG
_CONSOLE
3/4/2014

By: VJY

20
Cont.

Compile and Run on MSVC

3/4/2014

By: VJY

21
Cont.

Compile and Run on MSVC
C/C++ -> General
Warning Level : Level 4
Treat Warning as Errors Yes(/wx)

C/C++ -> Advanced
Compile As: Compile as C Code

Linker -> INput
Additional ..: Edit and add
glew32.lib
freeglut.lib

3/4/2014

By: VJY

22
Cont.

Compile and Run on MSVC
| Build Project
Build Menu -> Build ProjectName

| Add dll file
Open freeglut folder again copy freeglut.dll file
from bin folder and paste in project debug folder
Ex: C:UsersVJYDocumentsVisual Studio
2010Projects3March1Debug

| Debug
Debug -> Start Debugging (F5)

Successful!
3/4/2014

By: VJY

23
Compile and Run on DEVC++
| Create a new project with a Name
File -> New -> Project
Select “Console Application” and save
with a name
| Configure the project
Project -> Project Options ->
Parameter tabs and add following to linkers
-lglut32 -lglu32 -lopengl32 -lwinmm
-lgdi32
3/4/2014

By: VJY

24
Cont.

Compile and Run on DEVC++
| Type Source Code or paste it that is
downloaded sample.c

| Complied it
Execute -> Compile -> Done
| Run it
Execute -> Run

Successful !
3/4/2014

By: VJY

25
Summary of Program
glutInit(&argc,argv);
glutInitDisplayMode (GLUT_SINGLE |
GLUT_RGB);
glutInitWindowSize(500,500);
glutInitWindowPosition(0,0);
glutCreateWindow("simple");
glutDisplayFunc(display);
init();
glutMainLoop();

3/4/2014

By: VJY

26
Summary of Program
glBegin(GL_POLYGON);
glVertex2f(-0.5, -0.5);
glVertex2f(-0.5, 0.5);
glVertex2f(0.5, 0.5);
glVertex2f(0.5, -0.5);
glEnd();

3/4/2014

By: VJY

27
Have Any Question?
Just Ask!
Post Query On

facebook.com/groups/sviet.mca
Email@

vjy.softworx@gmail.com
Thank You!
Vijay Kumar Verma
{ SVIET MCA }

Mais conteúdo relacionado

Semelhante a Open gl configuration_march2014

7 Eclipse Cdt
7 Eclipse Cdt7 Eclipse Cdt
7 Eclipse Cdt
adaddada
 
Jangaroo @ FlashCodersNY
Jangaroo @ FlashCodersNYJangaroo @ FlashCodersNY
Jangaroo @ FlashCodersNY
Frank Wienberg
 

Semelhante a Open gl configuration_march2014 (20)

openGl configuration_in visual studio 2019.pptx
openGl configuration_in visual studio 2019.pptxopenGl configuration_in visual studio 2019.pptx
openGl configuration_in visual studio 2019.pptx
 
Understanding GitFlow by Ian Vizarra
Understanding GitFlow by Ian VizarraUnderstanding GitFlow by Ian Vizarra
Understanding GitFlow by Ian Vizarra
 
Grails beginners workshop
Grails beginners workshopGrails beginners workshop
Grails beginners workshop
 
10 gui 14
10 gui 1410 gui 14
10 gui 14
 
7 Eclipse Cdt
7 Eclipse Cdt7 Eclipse Cdt
7 Eclipse Cdt
 
Homestead demo
Homestead demoHomestead demo
Homestead demo
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and Installation
 
Simplifying and accelerating converged media with Open Visual Cloud
Simplifying and accelerating converged media with Open Visual CloudSimplifying and accelerating converged media with Open Visual Cloud
Simplifying and accelerating converged media with Open Visual Cloud
 
Profiling Android Applications
Profiling Android ApplicationsProfiling Android Applications
Profiling Android Applications
 
C# Tutorial MSM_Murach chapter-25-slides
C# Tutorial MSM_Murach chapter-25-slidesC# Tutorial MSM_Murach chapter-25-slides
C# Tutorial MSM_Murach chapter-25-slides
 
Jangaroo @ FlashCodersNY
Jangaroo @ FlashCodersNYJangaroo @ FlashCodersNY
Jangaroo @ FlashCodersNY
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 
Starting cilk development on windows
Starting cilk development on windowsStarting cilk development on windows
Starting cilk development on windows
 
Silverlight Demos For Beginners
Silverlight Demos For BeginnersSilverlight Demos For Beginners
Silverlight Demos For Beginners
 
Gitops Hands On
Gitops Hands OnGitops Hands On
Gitops Hands On
 
Why you should care about Go (Golang)
Why you should care about Go (Golang)Why you should care about Go (Golang)
Why you should care about Go (Golang)
 
Analyse Patch Tuesday - juin
Analyse Patch Tuesday - juinAnalyse Patch Tuesday - juin
Analyse Patch Tuesday - juin
 
CI/CD with Github Actions
CI/CD with Github ActionsCI/CD with Github Actions
CI/CD with Github Actions
 

Mais de Vijay Kumar Verma (10)

Oo methodology
Oo methodologyOo methodology
Oo methodology
 
XML XSLT
XML XSLTXML XSLT
XML XSLT
 
XML_schema_Structure
XML_schema_StructureXML_schema_Structure
XML_schema_Structure
 
Introduction to Java Script
Introduction to Java ScriptIntroduction to Java Script
Introduction to Java Script
 
Php introduction and configuration
Php introduction and configurationPhp introduction and configuration
Php introduction and configuration
 
Security threats ecom
Security threats ecomSecurity threats ecom
Security threats ecom
 
Dwm temporal measure
Dwm temporal measureDwm temporal measure
Dwm temporal measure
 
Html+css web layout 2
Html+css web layout 2Html+css web layout 2
Html+css web layout 2
 
Aos distibutted system
Aos distibutted systemAos distibutted system
Aos distibutted system
 
Html+css web layout
Html+css web layoutHtml+css web layout
Html+css web layout
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

Open gl configuration_march2014

  • 1. Installing and Configuring on Windows Vijay Kumar Verma (VJY) Roll No- 1326910 On: 5 March-2014
  • 2. Objective Understand Open GL Installation of Open GL Configure On Windows Write Simple Program 3/4/2014 By: VJY 2
  • 3. What is Open GL? | Application Program interface. | Multi-Platform or Cross-Platform API. | Interact with GPU for accelerate Hardware. | Easy to Use. | Developed by Silicon Graphics in 1991. | Managed by Khronos Group. | Latest OpenGL 4.4 released in 22 July 2013 3/4/2014 By: VJY 3
  • 4. Cont… What is Open GL? | Performance by GPU | Control GPU using Graphics shaders | GPU all rendering Vertices 3/4/2014 Vertex Processor Clipper and primitive assembler By: VJY Rasterizer Fragment processor Pixels 4
  • 5. Cont… What is Open GL? GLUT Open GL GLEW GL 3/4/2014 By: VJY 5
  • 6. What is GLUT | Provides functionality common to all window systems | | | | Open a window Get input from mouse and keyboard Menus Event-driven | GLUT-based user interface library | freeglut updates GLUT (written by Pawel W. Olszta) 3/4/2014 By: VJY 6
  • 7. What is GLEW | OpenGL Extension Wrangler Library | Makes it easy to access OpenGL extensions available on a particular system | Provide efficient run-time machinism | Application needs only to include glew.h and run a glewInit() 3/4/2014 By: VJY 7
  • 9. For More Info | http://www.glprogramming.com/red/ | http://en.wikipedia.org/wiki/OpenGL/ | http://opengl.org/ 3/4/2014 By: VJY 9
  • 10. Now Understand Open GL Installation of Open GL Configure On Windows Write Simple Program 3/4/2014 By: VJY 10
  • 11. Downloading | Downloading required Software • Dev C++ • Microsoft Visual Studio 2010 Express Edition | Download Required Library • Download OpenGL Library • Download Supported Libraries 3/4/2014 By: VJY 11
  • 12. Links | Download Dev C++ http://goo.gl/DsLA | Download MSVS 2010 http://goo.gl/liHnq | Download Open GL for VS http://goo.gl/qckMm1 | Download Open GL for Dev C++ http://goo.gl/tgjHnu | Download Glew for VS http://goo.gl/WuqD95 3/4/2014 By: VJY 12
  • 13. Installation | Install Dev C++ | Install Visual Studio 3/4/2014 By: VJY 13
  • 14. Now Understand Open GL Installation of Open GL Configure On Windows Write Simple Program 3/4/2014 By: VJY 14
  • 15. Configure Open GL | Extract the files: 3/4/2014 By: VJY 15
  • 16. Configure Open GL | Open Microsoft SDKs folder path: C:Program FilesMicrosoft SDKsWindowsv7.0A | Now copy the content of the files from the freeglut and glew here in include and lib directory. Such as: Open lib folder of freeglut and copy freeglut.lib and paste it inside the Lib of v7.0A Open include folder of freeglut and copy header files form gl folder to Gl folder of of v7.0A Do same thing for the glew and for DevC++ 3/4/2014 By: VJY 16
  • 17. Now Understand Open GL Installation of Open GL Configure On Windows Write Simple Program 3/4/2014 By: VJY 17
  • 18. Simple Program | Download simple program from: Facebook.com/groups/sviet.mca 3/4/2014 By: VJY 18
  • 19. Compile and Run on MSVC | Create a new project with a Name File -> New -> Project Select “Empty Project” and give a name | Now Add an item using Right Click on project in solution explorer-> Add -> New item –> Select C++ file -> Type name main.c -> Click on add button | Type or paste the source code you downloaded 3/4/2014 By: VJY 19
  • 20. Cont. Compile and Run on MSVC | Set Property of project Right Click -> Properties -> select All Configurations option from drop down and do following setting C/C++ -> Preprocessor Preprocessor Definition: _CRT_SECURE_NO_WARNINGS WIN32 _DEBUG _CONSOLE 3/4/2014 By: VJY 20
  • 21. Cont. Compile and Run on MSVC 3/4/2014 By: VJY 21
  • 22. Cont. Compile and Run on MSVC C/C++ -> General Warning Level : Level 4 Treat Warning as Errors Yes(/wx) C/C++ -> Advanced Compile As: Compile as C Code Linker -> INput Additional ..: Edit and add glew32.lib freeglut.lib 3/4/2014 By: VJY 22
  • 23. Cont. Compile and Run on MSVC | Build Project Build Menu -> Build ProjectName | Add dll file Open freeglut folder again copy freeglut.dll file from bin folder and paste in project debug folder Ex: C:UsersVJYDocumentsVisual Studio 2010Projects3March1Debug | Debug Debug -> Start Debugging (F5) Successful! 3/4/2014 By: VJY 23
  • 24. Compile and Run on DEVC++ | Create a new project with a Name File -> New -> Project Select “Console Application” and save with a name | Configure the project Project -> Project Options -> Parameter tabs and add following to linkers -lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32 3/4/2014 By: VJY 24
  • 25. Cont. Compile and Run on DEVC++ | Type Source Code or paste it that is downloaded sample.c | Complied it Execute -> Compile -> Done | Run it Execute -> Run Successful ! 3/4/2014 By: VJY 25
  • 26. Summary of Program glutInit(&argc,argv); glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(500,500); glutInitWindowPosition(0,0); glutCreateWindow("simple"); glutDisplayFunc(display); init(); glutMainLoop(); 3/4/2014 By: VJY 26
  • 27. Summary of Program glBegin(GL_POLYGON); glVertex2f(-0.5, -0.5); glVertex2f(-0.5, 0.5); glVertex2f(0.5, 0.5); glVertex2f(0.5, -0.5); glEnd(); 3/4/2014 By: VJY 27
  • 28. Have Any Question? Just Ask! Post Query On facebook.com/groups/sviet.mca Email@ vjy.softworx@gmail.com
  • 29. Thank You! Vijay Kumar Verma { SVIET MCA }