SlideShare ist ein Scribd-Unternehmen logo
1 von 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 }

Weitere Àhnliche Inhalte

Ähnlich wie Open gl configuration_march2014

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.pptxMuhammadUmer787617
 
Understanding GitFlow by Ian Vizarra
Understanding GitFlow by Ian VizarraUnderstanding GitFlow by Ian Vizarra
Understanding GitFlow by Ian Vizarravzrx23
 
Grails beginners workshop
Grails beginners workshopGrails beginners workshop
Grails beginners workshopJacobAae
 
10 gui 14
10 gui 1410 gui 14
10 gui 14Niit Care
 
7 Eclipse Cdt
7 Eclipse Cdt7 Eclipse Cdt
7 Eclipse Cdtadaddada
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and InstallationProf. Erwin Globio
 
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 CloudLiz Warner
 
Profiling Android Applications
Profiling Android ApplicationsProfiling Android Applications
Profiling Android Applicationshubx
 
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-slidesSami Mut
 
Jangaroo @ FlashCodersNY
Jangaroo @ FlashCodersNYJangaroo @ FlashCodersNY
Jangaroo @ FlashCodersNYFrank Wienberg
 
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?LOGINPHP360
 
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?LOGINPHP360
 
Starting cilk development on windows
Starting cilk development on windowsStarting cilk development on windows
Starting cilk development on windowsMazen Abdulaziz
 
Silverlight Demos For Beginners
Silverlight Demos For BeginnersSilverlight Demos For Beginners
Silverlight Demos For BeginnersGaurav Arora
 
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)Aaron Schlesinger
 
Analyse Patch Tuesday - juin
Analyse Patch Tuesday - juinAnalyse Patch Tuesday - juin
Analyse Patch Tuesday - juinIvanti
 
CI/CD with Github Actions
CI/CD with Github ActionsCI/CD with Github Actions
CI/CD with Github ActionsMd. Minhazul Haque
 

Ähnlich wie 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
 

Mehr von Vijay Kumar Verma

Mehr von 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
 

KĂŒrzlich hochgeladen

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
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 TerraformAndrey Devyatkin
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
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 DiscoveryTrustArc
 
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 FMESafe Software
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 

KĂŒrzlich hochgeladen (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
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
 
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
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 

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 }