home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / icoons / source / spl_gfx.h < prev    next >
C/C++ Source or Header  |  1992-10-04  |  2KB  |  60 lines

  1. /* :ts=8 */
  2. #ifndef SPL_GFX_H
  3. #define SPL_GFX_H
  4.  
  5. /* Usage of pens:                        */
  6. #define Pen_Background        0
  7. #define Pen_Plane        8    /* Don't modify this one! */
  8. #define Pen_Grid        3
  9.  
  10. #define Pen_Axis_X        4
  11. #define Pen_Axis_Y        5
  12. #define Pen_Axis_Z        6
  13.  
  14. #define Pen_Segment        1    /* Unselected            */
  15. #define Pen_Segment_Selected    4    /* Selected            */
  16.  
  17. #define Pen_Knot        7    /* Unselected            */
  18. #define Pen_Knot_Primary    5    /* Primary selection        */
  19. #define Pen_Knot_Selected    6    /* Group selection        */
  20.  
  21. void Transformation_Init(void);
  22.  
  23. void Set_Offset(Vector_T Pos, short View_Id);
  24. void Move_Offset(short Direction, short View_Id);
  25.  
  26. void Snap_To_Grid(Vector_T Pos);
  27.  
  28. short Screen_To_World(int Screen_X, int Screen_Y, Vector_T Pos);
  29.  
  30. void World_To_Screen(Vector_T Pos, short *X0, short *Y0, 
  31.                    short *X1, short *Y1, 
  32.                    short *X2, short *Y2);
  33. void World_To_Persp(Vector_T Pos, short *X, short *Y);
  34.  
  35. void Unmark_All(void);
  36. void Mark_Selected_Segments(void);
  37. void Mark_Connected_Segments(short Point_Id);
  38.  
  39. void Compute_Segment(Spline_T *Spline, Knot_T *Knot);
  40. void Compute_Marked_Segments(void);
  41. void Compute_Spline(Spline_T *Spline);
  42. void Compute_Splines(void);
  43.  
  44. void Draw_Segment(Spline_T *Spline, Knot_T *Knot, int Color, long What);
  45. void Draw_Marked_Segments(Draw_Mode_T Mode, long What);
  46.  
  47. void Draw_Spline(Spline_T *SPline, Draw_Mode_T Mode, long What);
  48. void Draw_Splines(Draw_Mode_T Mode, long What);
  49.  
  50. void Draw_Knot(Spline_T *Spline, Knot_T *Knot, Draw_Mode_T Mode, long What);
  51. void Draw_Knots(Draw_Mode_T Mode, long What);
  52.  
  53. void Draw_Origin(Draw_Mode_T Mode, long What);
  54. void Draw_Box(Vector_T Min_Pos, Vector_T Max_Pos, Vector_T R_Vector,
  55.                     Draw_Mode_T Mode, long What);
  56. void Draw_Grid(long What);
  57. void Draw_All(long What);
  58.  
  59. #endif
  60.