Revision 2 as of 2007-01-25 22:31:06

    Assignment3

Assignment 3 - Creating a Two Column Page of Text

Due Date: Thursday February 1st, 11:59PM

Questions? Check out the Assignment 3 FAQ and discussion page.

In this assignment you will be given several paragraphs of text that need to be displayed on screen. You are asked to render the text using a Truetype font and fully justify the paragraphs in a two column (think magazine style) format. To make things a little tricker, the width of the columns will vary throughout the page. A few examples of page layouts your program should ultimately produce are shown below.

format1 format2 format3

Steps

Download and build the starter code

  1. Begin by downloading the Assigment 3 starter code and latest version of the libST source here.

  2. Build libST. Building libST should be the same as in assignment 2. The library has been augmented with two new classes STText and STFontFace that will be useful to you in this assignment. Also note that in this release of the code STSceneNode::GetObject() has been renamed STSceneNode::GetObj as a fix for build issues on the Windows platform that appeared in assignment 2.

  3. Build the assignment 3 starter code. The subdirectory /assignment3 contains the starting code for your project. This directory should contain the C++ source file pagelayout.cpp. You will provide us your modified version of pagelayout.cpp as part of this assignment's handin.

Understand Text in LibST

Answer These Questions

Extras For Personal Kicks

Grading

This assignment will be graded on a scale of 1-4.

  • 1 -- correct answers to assignment questions
  • 2 -- correct answers to assignment questions + ability to write images + clock correctly draws but does not animate
  • 3 -- correct answers to assignment questions + ability to write images + minor problems in clock animation
  • 4 -- Correctly animating clock using hierarchical transforms (correct appearance and rate) + ability to write images + correct answers to assignment questions

Submission Instructions

We would like submission to be in the form of a single .zip archive. This archive should contain your modified version of text.cpp, a text file containing answers to assignment questions, and at one image saved using your program. If you did any ungraded extras on the project, don't include them in the zip file, just create a wiki page to show them to the class and let us know in your submission email.

Please email this zip file to cs148-win0607-staff@lists.stanford.edu before the deadline. Please make the subject line of this email "CS148 Assignment 3 Handin".

Recent