Computer Graphics
CSE 5280 Course

Exercise #2

Learning Objectives

  1. Learn the basics of writing a graphics application in Java using OpenGL (JOGL)
  2. Learn the OpenGL libraries by using the JOGL implementation to develop this application
  3. Learn the eclipse application development environment


Problem Description

Using the OpenGL Java libraries in JOGL write an application that will display 2 geometric shapes and write across the bottom of the frame the text "CSE5280 Lab#02". You must fill the 2 shapes using the colors shown below.


Implementations Hints

Need to import the libraries below:

import java.awt.*;
import java.awt.event.*;

import net.java.games.jogl.*;
import net.java.games.jogl.util.*;

Note: The "jogl.*" library contains all the "gl" classes, the "jgol.util.*" contains all the "glut" classes & methods. In a nutshell you will be using the GL and GLUT classes in JOGL.