0% found this document useful (0 votes)
29 views

Lab 01 2023

This document provides steps for setting up a basic OpenGL program in C++, including creating a project, including necessary header files, writing code to open a window, linking libraries, and notes on adding sound. Key steps are creating a project, including glut.h, writing main code to call OpenGL functions like glutInit and glutCreateWindow to open a window, and ensuring the glut32.dll and glut32.lib files are in the proper directories for linking.

Uploaded by

Abdul Mannan
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Lab 01 2023

This document provides steps for setting up a basic OpenGL program in C++, including creating a project, including necessary header files, writing code to open a window, linking libraries, and notes on adding sound. Key steps are creating a project, including glut.h, writing main code to call OpenGL functions like glutInit and glutCreateWindow to open a window, and ensuring the glut32.dll and glut32.lib files are in the proper directories for linking.

Uploaded by

Abdul Mannan
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Practicing & Executing

Basic OGL Program

Open GL Lab01

BSCS-514 Conputer Graphics 1


Instructor Dr. Humera
Setting up Your First OpenGL
Program

BSCS-514 Conputer Graphics 2


1

BSCS-514 Conputer Graphics 3


1 2

BSCS-514 Conputer Graphics 4


1

Right Click

BSCS-514 Conputer Graphics 6


2 3

BSCS-514 Conputer Graphics 7


2
1

3
4

BSCS-514 Conputer Graphics 8


9
BSCS-514 Conputer Graphics
Type and Run the Code to Open
an Output(viewport) Window

BSCS-514 Conputer Graphics 10


Write CODE To Open an Output
Window:

BSCS-514 Conputer Graphics 11


BSCS-514 Conputer Graphics 12
Click to execute

BSCS-514 Conputer Graphics 13


 Place glut32.dll into C:\Windows\System32.
 Place glut.h into C:\ProgramFiles\VS2010\Vc7\PlatformSDK\Include\GL
 Place glut32.lib into C:\Program Files\VS2010\Vc7\PlatformSDK\Lib

BSCS-514 Conputer Graphics 14


Adding Sound to your Program

BSCS-514 Conputer Graphics 15


BSCS-514 Conputer Graphics 16

You might also like