OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State...

14
OpenGL Graphics

Transcript of OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State...

Page 1: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

OpenGL Graphics

Page 2: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

What Is OpenGL?

1. C-Based graphics framework.

2. Open specification.

3. State machine.

4. Rendering pipeline.

5. A whole load of maths.

Page 3: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

OpenGL Version History

OpenGL 1.x

- Graphics Courses

- Fixed Functionality Pipeline

OpenGL 2.x

- Fixed Functionality Pipeline

- Programmable Pipeline

OpenGL 3.x

- Programmable Pipeline (Only!)

Page 4: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

gl.hMost basic, low level API

functions.

glu.hFunctions here are for

convienance and use gl.h.

glut.hA quick, cross-platform way of

drawing to the screen.

Page 5: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

glew.hAllows easy access to OpenGL

extensions.

glTools.hA set of convenient functions to get yourself going with the new

OpenGL.

Page 6: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

Open Specification

Multiple companies.

Multiple platforms.

Multiple programming languages.

Page 7: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

State Machine

glEnable()

glDisable()

glEnableClientState()

glDisableClientState()

glBegin()

glEnd()

Page 8: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

Rendering Pipeline

Page 9: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.
Page 10: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.
Page 11: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

Maths

Geometry

Coordinates

Vectors

Matricies

Page 12: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

Demo

Page 13: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

Reading

Toby Howard's "Green OpenGL Guide".

OpenGL SuperBible 4th Edition

OpenGL SuperBible 5th Edition

OpenGL Programming Guide

Page 14: OpenGL Graphics. What Is OpenGL? 1. C-Based graphics framework. 2. Open specification. 3. State machine. 4. Rendering pipeline. 5. A whole load of maths.

Questions?