Introduction to OpenGL

Slides:



Advertisements
Similar presentations
Prof. Muhammad Saeed. Procedure-Driven Programming Event-Driven Programming Events Messages Event Handlers GUI Windows and Multitasking Queues ( System.
Advertisements

OpenGL Course Notes Chapter 1: Introduction Jim Mims.
1 Windows Programming CIS 577 Bruce R. Maxim UM-Dearborn.
Developing a Mobile Phone Application Compare and contrast to ENCM511 Lab ideas.
Computer Graphics1 Windows NT Graphics Interface.
QT – Introduction C++ GUI Programming with Qt 4 Blanchette and Summerfield, Ch. 1 Miller, 2004.
IN-LAB # 1 - GETTING STARTED - BUT FIRST: 1.Project ideas - watch the scope!!! 2.Check accounts 3. Either myself or the TA need to check you off BEFORE.
Simple Gui in C++. Project Selecting So Far Registering the window class Creating the window.
Simple Gui in C++. Project Selecting So Far Registering the window class Creating the window.
First Windows Program Hello Windows. 2 HELLOWIN.C #include LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ; int WINAPI WinMain (HINSTANCE hInstance,
Intro to Windows Programming Basic Ideas. Program Entry Point Int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
Animations by Physicists PHYSICS DEPARTMENT TAMU SUMMER ’05 Mario Francisco Borunda.
Overview of Computer Graphics Chapter 1. Bird’s Eye View  Overview of Computer Graphics –Basic concept of computer graphics, system, programming platforms,
GVE, Hallym University, Song, Chang Geun, Ph.D. 컴퓨터 그래픽스 응용 한림대학교 컴퓨터공학부 송 창근.
Win32 API Programming Event-driven, graphics oriented Example: User clicks mouse over a program’s window area (an event) -- – Windows decodes HW signals.
CHAPTER 2 OpenGL vs. DirectX as API © 2008 Cengage Learning EMEA.
Overview Embedded Linux Graphics Typical desktop Linux graphics stack SystemRAMDisk X Window System5MB16MB GNOME14MB95MB KDE11MB96MB Mozilla12MB95MB.
Introduction to OpenGL and GLUT GLUT. What is OpenGL? An application programming interface (API) A (low-level) Graphics rendering API Generate high-quality.
Graphics Programming using OpenGL. OpenGL is a software interface that allows the programmer to create 2D and 3D graphics images. This interface consists.
Overview of Previous Lesson(s) Over View  Visual C++ provides us with 3 basic ways of creating an interactive Windows application  Using the Windows.
1 Chapter 1 Overview of Computer Graphics  To understand the basic objectives and scope of computer graphics  To identify computer graphics applications.
OpenGl Graphics Programming. Introduction OpenGL is a low-level graphics library specification. It makes available to the programmer a small set of geomteric.
Chapter 1: Hello, MFC Windows Programming Model Department of Digital Contents Sang Il Park.
Chapter 1: Hello, MFC Your first MFC Application Department of Digital Contents Sang Il Park.
Install and Setup VC++ and OpenGL Introduction to Computer Graphics and Animation (Principle of Computer Graphics) Rattapoom Waranusast.
QT – Introduction C++ GUI Programming with Qt 4
Windows programming Graphic Library SNPL. Basic Structure Windows Programming SNPL Application program initialization Exchange Message 1.part of initialization.
CD2012 Principles of Interactive Graphics Lecture 01 Introduction Abir Hussain (Rome: 6.33,Tel , Web:
ROOT Team Meeting October 1 st 2010 GUI thinking and testing ideas OpenGL GUI Root Team meeting 01/10/2010.
Server Core is the preferred deployment configuration.
Further games and graphics concepts COSE50581 Introduction to Module and Recap Bob Hobbs Faculty of Computing, Engineering and Technology Staffordshire.
Direct3D Workshop November 17, 2005 Workshop by Geoff Cagle Presented by Players 2 Professionals.
GAM666 – Introduction To Game Programming You must use special libraries (aka APIs – application programming interfaces) to make something other than a.
Spring 2010Topics in Computer Graphics FLTK and OpenGL Jyun-Ming Chen.
GUI-Based Programming ECE 417/617: Elements of Software Engineering Stan Birchfield Clemson University.
© Copyright Khronos Group, Page 1 How to program OpenVG Hwanyong Lee HUONE Inc.
Dialog boxes Modal and modeless dialog boxes Displaying about dialog box: case WM_COMMAND : switch (LOWORD (wParam)) { case IDM_APP_ABOUT : DialogBox (hInstance,
Quanta Confidential QUANTA WBU Study Report 1 昭正 2008/08/01.
NoufNaief.net TA: Nouf Al-harbi.
Programming Input Devices. Getting the device state Schemes for processing input – Polling – Callbacks Ways to intercept messages from input devices –
Introduction to Game Programming Pertemuan 11 Matakuliah: T0944-Game Design and Programming Tahun: 2010.
The WM_NCHITTEST Message  This is an internal message used by Windows for generating all the other mouse messages.  Though it almost never needs to be.
Menus  Menus is a feature which is common to almost every windows applications. It is the one of the most common user interface elements around.  Windows.
Learning Programming Windows API Morpheus Feb-28, 2008.
Andy Wigley Device Application Development MVP APPA Mundi Ltd SESSION CODE: WEM309.
Our good old first Win32 programme of lecture 8 #include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
W indows Programming Lecture 08. Brief History of Win Windows is announced 1984 Work begins on Word for Windows 1.0 November 1985: Windows 1.0.
Computer Graphics -practical- Lecture 6. (visual c++) open gl library To use open GL with VC++ we add these files:- 1)Glut.h C:\program files\ Microsoft.
Lecture 8: Discussion of papers OpenGL programming Lecturer: Simon Winberg Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim.
Visual Info Processing Programming Guide
School of Computer Science
Visual Programming Lecture 1 & 2
Windows Programming Lecture 09.
Window.
Windows Programming Model
Aspect-Oriented Programming
The User Interface Lecture 2 Mon, Aug 27, 2007.
Windows Programming using Dev C++
The program in traditional OS
Windows Controls & Concepts
Windows Programming Lecture 12
28.
Windows Programming Lecture 13
CS 1253 Visual Programming Unit I Windows Environment
Windows Programming Lecture 15
Windows Development Dynadata Copyright, 2014 © DynaData S.A. 1/10.
Graphics Laboratory Korea University
GUI Socket Application
OpenGL Programming – Day 1
Presentation transcript:

Introduction to OpenGL By NematAllah Ahmadyan

About OpenGL Open Graphic Library is an open-source library for displaying 2D/3D shapes. a software interface to graphics hardware.

implementation Mesa3D Linux mostly GLUT Linux, ported to Win32

Using GLUT under Win32 Obtain GLUT from web http://192.48.159.181/resources/libraries/glut/glut_downloads.html Some IDEs ( like Dev-Cpp ) comes with bundled OpenGL/Glut #include <gl/gl.h> #include <gl/glut.h> // handles windows

Create a Window And add event handler Enable OpenGL Disable OpenGL Exit Calculate the moment And motion, Finished? Yes No Calculate the screen points Clear the device Draw the shape(s)

Prototype void DisableOpenGL (HWND hWnd, HDC hDC, HGLRC hRC); LRESULT CALLBACK WndProc (HWND hWnd, UINT message,WPARAM wParam, LPARAM lParam); void EnableOpenGL (HWND hWnd, HDC *hDC, HGLRC *hRC); void DisableOpenGL (HWND hWnd, HDC hDC, HGLRC hRC); void Simulate(); int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)