2080 11

CSC214 ยท 2080 ยท 5 marks

Write short notes on a. OpenGL b. Flynn's Classification

Write short notes on a. OpenGL b. Flynn's Classification [5]

Computer GraphicsChapter 10: Introduction to OpenGLIntroduction, Callback functions, Color commands, Drawings p

Quick answer

OpenGL (Open Graphics Library) is a software interface (API) that allows a programmer to communicate with graphics hardware for rendering 2D and 3D graphics. It provides a common set of commands that can be used to manage graphics across different applications and multiple platforms.

Short Notes


a. OpenGL (2.5 marks)

Key Features:

  • Vendor-independent: It was the first vendor-independent API for development of graphics applications.
  • Free to use: There is no need to license it.
  • Hardware accelerated: Designed to use the graphics card where possible to improve performance.
  • Language flexible: Originally based on a state machine, procedural model; thus it can be used with a wide variety of programming languages.

Common OpenGL Commands:

  • Drawing polygons
  • Assigning colors to shapes
  • Zooming in and out
  • Rotating objects

Color Models:

OpenGL supports two color models:

  1. RGBA mode - color specified by Red, Green, Blue intensities and an optional Alpha (transparency) value. Values range from 0.0 (absent) to 1.0 (saturated).
  2. Color Index mode

GLUT (OpenGL Utility Toolkit):

GLUT aids in the development of more complicated 3D objects such as a sphere, a torus, and a teapot. It uses callback functions - functions that the GLUT library calls when it needs to process an event (e.g., glutKeyboardFunc for key press events).


b. Flynn's Classification (2.5 marks)

Flynn's Classification (proposed by Michael J. Flynn, 1966) classifies computer architectures based on the number of concurrent instruction streams and data streams.

CategoryFull FormDescription
SISDSingle Instruction, Single DataOne instruction stream operates on one data stream. Traditional uniprocessor (von Neumann).
SIMDSingle Instruction, Multiple DataOne instruction stream operates on multiple data streams simultaneously. Used in vector processors and GPUs.
MISDMultiple Instruction, Single DataMultiple instruction streams operate on a single data stream. Rare in practice; used in fault-tolerant systems.
MIMDMultiple Instruction, Multiple DataMultiple instruction streams operate on multiple data streams. Used in multiprocessors and distributed systems.

Diagram:

                    Data Streams
                  Single    Multiple
Instruction  Single | SISD  |  SIMD |
Streams     Multiple| MISD  |  MIMD |

Summary:

  • SISD - conventional computers
  • SIMD - parallel array processors
  • MISD - pipeline processors (debated)
  • MIMD - modern multicore and distributed systems (most common today)

Flynn's classification is widely used as a fundamental framework for understanding and comparing parallel computer architectures.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.