CMP160

Spring 2007

Program # 1 FLTK/OpenGL Handout

 

Getting Started

 

In the first assignment we expect you to become familiar with basic 2D graphical objects under orthographic projection using OpenGL libraries and building interfaces with controls (widgets) using FLTK libraries. We are providing a sample template for the first assignment containing the following files.

 

prog1.cpp, prog1.h, gui.cpp, gui.h,  graph.cpp, graph.h, Makefile

 

FLTK Basics

 

 

 

 

 

 

OpenGL Basics

 

 

 

 

·      By default all polygons are filled with the current color. In our program we need to set different colors for filling the bar graphs and legends.