Kevin's Programming Page
School Assignments
The actual code for some of these may not be representative of
my normal work, as crunch-time sometimes leads to sloppiness.
U of U
CS431: Introduction to Computer Graphics (Fall 1997 -- Instructor:
Peter Shirley)
- Program 1
(handout)
-- Spinning polygons
- Program 2
(handout)
-- 2D Spaceship movement.
- Program 3
(handout)
-- 2D moonlander game. Not working because of Java API
deprecation. I'll have to make a workaround sometime.
- Program 4
(handout)
-- 3D moonlander game. Not working because of Java API
deprecation. I'll have to make a workaround sometime.
ADD MORE HERE!
Source Code I have written
Some of this code I wrote with the intention of distributing, the rest is
code that I wrote and decided could be useful to other people in the
world.
Rename these files as instructed, as geocities doesn't like to have source
code with standard source code suffixes (.h, .cpp, etc.).
Freely usable/distributable source code
Platform independent source (hopefully :)
Note: These are just directly copied from the old page, and have not been
tested since they were put here. I have made newer things that I plan to
put here, but for now, use caution when using these files (I will test it
in the future -- I am currently concentrating on putting my more
interesting school assignments on here).
-
simple_vector.h A simple
vector implementation that is similar to the STL vector, but can be
viewed in a debugger (as the data is stored as a pointer to the
templated type), and can perform optional range checking (via a template
parameter -- defaults to on). It also has iterators with it, so you can
perform many of the operations that you would with a STL vector (such as
unique, sort, etc.), although slightly slower. This is great for use in
debugging a program that was using the STL vector (helped me find
problems that I spent MANY hours looking for). Rename this file to
simple_vector.h.
-
useful_functions.h Some
useful functions for converting integers and doubles to the C++ string
class (using the trash in <stdio.h>). This is needed to use the
file simple_vector.h. Rename this file to useful_functions.h.
If you like anything here, and would like to thank me or contact me
for some reason, you can send me email at kpharris at users.sourceforge.net. I check it usually once a week or more often.
Go back to Kevin's Page.
Revision History:
30Nov1999 Created this page (as programming.html), put links to my simple_vector.h and my
useful_functions.h
files. I wrote these two things over the last day, in attempts to help
me with debugging some evil errors that I couldn't find in my machine
learning project. After writing these files, it took me a total of about
5 minutes to find my bugs and correct them.
09Jan2002 Created this page (as prog.html), added cs431 Program 1.
13Jan2002 Added cs431 Program 2,3,4 handouts. Merged in the old
programming.html file, as I don't need multiple programming pages.
Here is a count of people who have seen this page since 09Jan2002: