main-samplecode
Here are some example programs to refer to. You are welcome to use pieces of them for your own assignments and/or projects, providing you remember the rules on proper attribution!
Here is the complete list of sample code from last year.
Project Code for Project 1
- See the web page about the project sample code.
LibTargaWrapper (TargaImage)
- See the page about it: Main.LibTargaWrapperDocumentation
Examples from the Tutorials
- Code for Tutorial 1: Setting up a Console Application in Visual Studio 2005
- Code for Tutorial 2: Command Line Arguments
- Code for Tutorial 3: An FLTK WIndow
- Code for Tutorial 4: A More Complex FLTK Example
- Code for Tutorial 5: Reading and Writing Targa Images
- Code for Tutorial 6: Modify and Display Image
- Code for Tutorial 7: OpenGL in FLTK (with some 3D basics)
- Code for Tutorial 8: OpenGL Lighting
- Code for Tutorial 9: OpenGL Input
- Code for Tutorial 10: Texture
- Code for Tutorial 11: Texture Manager, the texture manager helps with doing texture mapping. It takes care of a lot of the tricky OpenGL details for you.
Examples from the OpenGL Survival Guide
- Code for Getting Started in OpenGL: add the gl library into your project
- Code for Callback function in OpengGL: a basic drawing example
- Code for Picking in OpenGL: a more advanced drawing example
- Code for Animation by Using OpenGL: an example to run animation inside OpenGL by using RunButton
OpenGL 3D UI Examples and Sample Code
We have provided some example code to help you get started doing 3D user interfaces in OpenGL. You need this for Project 2. It will be very helpful for Checkpoint 4.
Some of this code you are likely to want to use in your own programs, while others, you might just want to look at for ideas.
The README will tell you what’s there. You can browse the directory, or download a ZIP file.
Page last modified on October 22, 2007, at 10:49 AM