This is SimpleShape.m in view mode; [Download] [Up]
// Copyright 1992 Thomas A. Dilligan // All Rights Reserved // // For best results, set tabstop=4 #import "SimpleShape.h" @implementation SimpleShape:N3DShape - renderSelf:(RtToken)context { RiSphere(2,0,2,360,RI_NULL); RiScale(0.4, 0.4, 0.4); RiGeometry("teapot", RI_NULL); return self; } - resetShaders { surfaceShader=NULL; displacementShader=NULL; lightShader=NULL; imagerShader=NULL; volumeShader=NULL; transformationShader=NULL; return self=NULL; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.