home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.0
/
NeXTSTEP3.0.iso
/
NextDeveloper
/
Examples
/
3Dkit
/
Simple
/
SimpleShape.m
< prev
Wrap
Text File
|
1992-06-02
|
552b
|
24 lines
#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