home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / answers / superfly / fly.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  1.9 KB  |  73 lines

  1. #ifndef FLY_H
  2. #define FLY_H
  3.  
  4. #include <GL/gl.h>
  5. #include <math.h>
  6. #include <stdio.h>
  7.  
  8. #define FLOORPOINTS 21
  9.  
  10. #define FORWARD 1
  11. #define BACKWARD -1
  12. #define X 0
  13. #define Y 1
  14. #define Z 2
  15.  
  16. #define KEY_ESC        27    /* escape key */
  17.  
  18. /*  Function Prototypes  */
  19.  
  20. /* functions in fly.c */
  21. GLvoid  printHelp( char * );
  22. GLvoid  printControls( GLvoid );
  23. GLvoid  initgfx( GLvoid );
  24. GLvoid  initLighting( GLvoid );
  25. GLvoid  drawScene( GLvoid );
  26. GLvoid  drawShapes( GLvoid );
  27. GLvoid  drawMovedShape( GLint, GLfloat, GLfloat, GLfloat );
  28. GLvoid  drawShape( GLint, GLint );
  29. GLvoid  drawTetra( GLint );
  30. GLvoid  drawCube( GLint );
  31. GLvoid  drawOcta( GLint );
  32. GLvoid  drawDodeca( GLint );
  33. GLvoid  drawIcosa( GLint );
  34. GLvoid  drawCylinder( GLint );
  35. GLvoid  drawSphere( GLint );
  36. GLvoid  drawTorus( GLint );
  37. GLvoid  drawCone( GLint );
  38. GLuint  createOutlineFont( GLvoid );
  39. GLuint  createFilledFont( GLvoid );
  40. GLvoid  renderString( GLuint, GLubyte * );
  41.  
  42. /* functions in flyutil.c */
  43. GLvoid  reshape( GLsizei, GLsizei );
  44. GLvoid  computeFloor( GLvoid );
  45. GLvoid  drawFloor( GLvoid );
  46. GLvoid  drawFloorWire( GLvoid );
  47. GLvoid  drawFloorFilled( GLvoid );
  48. GLvoid  setDrawStyle( GLvoid );
  49. GLvoid  keyboard( GLubyte key, GLint x, GLint y );
  50. GLvoid  specialkeys( GLint key, GLint x, GLint y );
  51. GLvoid  mouse( GLint button, GLint state, GLint x, GLint y );
  52. GLvoid  motion( GLint x, GLint y );
  53. GLvoid  startMove( GLint button, GLint x, GLint y );
  54. GLvoid  stopMove( GLvoid );
  55. GLvoid  drawNormals( GLvoid );
  56. GLvoid  toggleDrawNormals( GLvoid );
  57. GLvoid  toggleShowGrid( GLvoid );
  58. GLvoid  toggleBlend( GLvoid );
  59. GLvoid  enableBlending( GLvoid );
  60. GLvoid  disableBlending( GLvoid );
  61. GLvoid  computeNormals( GLvoid );
  62. GLvoid  setAutopilot( GLvoid );
  63. GLvoid  setDebug( GLvoid );
  64. GLvoid  updatePosition( GLint x, GLint y );
  65. GLvoid  moveEye( GLvoid );
  66. GLvoid  initEye(GLvoid);
  67. GLvoid  animate( GLvoid );
  68. GLvoid  visibility( GLint );
  69.  
  70. GLboolean  inMotion(GLvoid);
  71.  
  72. #endif
  73.