home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / HyperCuber 2.0 / source / CPrimitive.cp < prev    next >
Encoding:
Text File  |  1994-04-27  |  1.8 KB  |  51 lines  |  [TEXT/KAHL]

  1. /| Purpose: Initialize a CPrimitive.
  2. //|
  3. //| Parameters: vertices: the 2D vertex list
  4. //|             colors:   the color list
  5. //|_________________________________________________________
  6.  
  7. void CPrimitive::IPrimitive(CList *colors)
  8. {
  9.  
  10.     this->colors = colors;                    //  Save the color list
  11.  
  12. }    //==== CPrimitive::IPrimitive() ====\\
  13.  
  14.  
  15.  
  16. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17. //| CPrimitive::Dispose
  18. //|
  19. //| Purpose: Dispose of the primitive.
  20. //|
  21. //| Parameters: none
  22. //|_________________________________________________________
  23.  
  24. void CPrimitive::Dispose(void)
  25. {
  26.  
  27.  
  28. }    //==== CPrimitive::Dispose() ====\\
  29.  
  30.  
  31.  
  32. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. //| CPrimitive::Draw
  34. //|
  35. //| Purpose: Draw this primitive.
  36. //|
  37. //| Parameters: override_color: the color to use to draw the primitive
  38. //|                             If this is NULL, use the primitive's default
  39. //|             screen_vertices: the screen coordinates of the vertices
  40. //|             clip_rect:       the clipping rectangle
  41. //|             fAntialias:      TRUE if we should antialias
  42. //|__________________________________________________________________________
  43.  
  44. void CPrimitive::Draw(RGBColor *override_color, Point **screen_vertices,
  45.                         Rect *clip_rect, Boolean fAntialias)
  46. {
  47.  
  48.  
  49. }    //==== CPrimitive::Draw() ====\\
  50.  
  51.