home *** CD-ROM | disk | FTP | other *** search
/ Using VRML (Special Edition) / Special_Edition_Using_VRML_CDROM_Que_1996.iso / webpages / software / win95 / browsers / ambersw / tutorial / lesson3 / spin.cpp < prev    next >
C/C++ Source or Header  |  1995-09-17  |  431b  |  25 lines

  1. #include "spin.hpp"
  2.  
  3. // The syle function which will run every frame
  4. //
  5. void spinClass::style(void) {
  6.     rotate(spinAxis, spinRate);    
  7. }
  8.  
  9. // Class constructor
  10. //
  11. spinClass::spinClass(Vres rate, int axis, 
  12.                      Vres cubeX, Vres cubeY, Vres cubeZ) : 
  13.     styleClass (1,1),
  14.     cubeClass(cubeX, cubeY, cubeZ)
  15. {
  16.   spinRate = rate;
  17.   spinAxis = axis;
  18. }
  19.  
  20. // Class destructor
  21. //
  22. spinClass::~spinClass()
  23. {
  24. }
  25.