SGL: Simple Graphics Library

Table of Contents

1. What is SGL?
1.1. Motivation for the SGL
1.2. SGL Audience
1.3. SGL License
2. Installing SGL
2.1. Installing on Microsoft Windows 10 with Visual Studio 2017
2.2. Installing on Apple Mac macOS
2.3. Installing on Linux
3. Working with the SGL
3.1. Introduction
3.2. Event-driven Programming
3.3. SGL Application Architecture
3.4. SGL Coordinate System
3.5. Displaying Graphics
3.6. User Input
3.7. The SGL Procedural Interface
3.8. Limitations of the SGL
4. SGL Examples
4.1. Traffic Light Simulation
4.2. Adding Graphical Objects
4.3. Adding a Popup Menu
4.4. Animation
4.5. Circle Random Walk
4.6. Calling OpenGL/GLUT Routines Directly
5. SGL API

List of Figures

3.1. Hello World Screenshot
3.2. Window Position and Size
3.3. Virtual Viewport Dimensions
3.4. Drawing a Clock Face with a Circle and Two Lines
4.1. Traffic Light Simulation Window
4.2. Traffic Light Simulation Window
4.3. Object Window Application
4.4. Color Box with Popup Menu
4.5. Animating a Clock
4.6. Circle Random Walk

List of Examples

3.1. Hello World in SGL
3.2. Clock Picture
3.3. User Input
3.4. Using the Procedural Interface
3.5. The Procedural Interface without Global Variables
4.1. Traffic Light Simulation
4.2. Adding Various Graphical Objects
4.3. Changing Colors with a Popup Menu
4.4. Clock Animation
4.5. Circle Random Walk

Copyright  ©2019 Richard L. HaltermanVersion 0.9.5February 17, 2019
Creative Commons License This work is licensed under a Creative Commons License.