home *** CD-ROM | disk | FTP | other *** search
- #import "SimpleShape.h"
- #import <ri/ri.h>
-
- /*
- * You may freely copy, distribute and reuse the code in this example.
- * NeXT disclaims any warranty of any kind, expressed or implied,
- * as to its fitness for any particular use.
- */
-
- @implementation SimpleShape:N3DShape
- - renderSelf:(RtToken)context
- {
- // generate a Torus
- RiTorus(0.8, 0.3, 0.0, 360.0, 360.0, RI_NULL);
-
- // comment out the above and uncomment the following lines to render a Teapot
- // RiScale(0.4, 0.4, 0.4);
- // RiGeometry("teapot", RI_NULL);
-
- return self;
- }
- @end
-
-