Draw Square with Mouse Control

Display List Example

Draw square using Mouse and Menu

A Simple Paint Program

//This method allows you to write a text of some length

//on the screen, you need to include string.h at the top of your

//program. it won't hurt to have stdio.h as well.

//You need to define your font too. I have used:

void *font = GLUT_BITMAP_TIMES_ROMAN_24; // output font type

void text_out(float xText,float yText, char *string, int len) // pass coords. and string

int i;

glRasterPos2f(xText,yText);

len = (int) strlen(string);

for (i=0; i <= len-1 ; i++) //you can use < len

{

glutBitmapCharacter(font, string[i]);

}

}

//A call to this function can be:

text_out(2,0.93*(maxY),"Score",6);

This is a very simple example of a write score function:

void writeScore()

{

char newScoreString[255] = {0};

sprintf(newScoreString, "SCORE: %d", hitCount);

text_out(2,(maxY-10),"Hits",6);//maxY is height of screen

text_out(10,(maxY-10),newScoreString,6);

}

Quick review of the Exam

MyNotes (4)

We also played with the Display List where we reset the color of the font back to the original.

Lab (4).

More on the recursive program that draw one side of snow flakes. Mathematics behind it.

A program for hidden Surface Removal

A program for hidden Surface Removal

Preparation for the Snow Flakes Program

Lecture Notes, myNotes (2)

Sierpinski Gasket with Lines

Sierpinski Gasket with Points

Quiz (4)

Lab(3)

Lecture Notes 2, 3

Lab (2)

Lecture Notes 2

Quiz (2)

Lab (1)

Chapter (1)

Summary

Introduction to Linear Algebra

DOT Product, CROSS Product, calculating determinant, finding inverse, transpose, finding normal, normalizing a vector

Started Chapter (1)

Introduction to Linear Algebra

DOT Product, CROSS Product, calculating determinant, finding inverse, transpose, finding normal, normalizing a vector

Syllabus, Graduate Meeting set for Wed 2:00 pm

Introduction to Linear Algebra