Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“Skinny3DSample.zip”, 64.7K)
Download Sample (“Skinny3DSample.dmg”, 127.8K)



Description

QuickDraw 3D Skinny3DSample This is not Sample Code in the sense of "this is how it should be done". Rather, it is a preliminary outcome of a beginner's approach to QuickDraw3D, and reflects some fairly innocent, immature exploration and experimentation. Specifically, quite a lot of memory leaks are remaining; there was not enough time to track them down (and it wasn't enough of a priority, yet). I started out with Brigham Stevens' "Skinny Thing" (see e.g. MWPBDTGetAppl in the Metrowerks examples), and tried to keep the shell code (SkinnyMain) as separated from the application-specific code (3DAppSpecific) as possible. This lead to declare all functions that are not called from outside a file as static, and not to include their prototypes in the header files. The originality of Skinny3DSample is the "ValueControlCluster" that allows to experiment conveniently with the parameters of the Box, Camera and Light objects. It is not at all meant as a HI suggestion, but just an easy tool to learn one's way around the effects of varying QuickDraw3D object data. Double-clicking in a value-control line brings up a settings dialog for minimum, maximum and increment/decrement values. At best, Skinny3DSample may be useful as starting point for other quick and dirty experiments while climbing up the learning curve!

Document Revision History

Date Notes
2003-01-14First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.