home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vrml2gl.zip / LIB / GLOBJ.H < prev    next >
Text File  |  1997-02-10  |  2KB  |  55 lines

  1. /*===========================================================================*/
  2. #ifndef _GLOBJECTS_INC
  3.    #define _GLOBJECTS_INC
  4.  
  5.    #include <math.h>
  6.    #include <GL/gl.h>
  7.    #include "glMathUtils.h"
  8.    /*========================================================================*/
  9.    /* Magic defines.                                                         */
  10.    /*========================================================================*/
  11.    #ifndef TEXTURE_ON
  12.       #define  TEXTURE_ON        0x010
  13.    #endif
  14.    #ifndef ALL
  15.       #define  ALL               0x001
  16.    #endif
  17.    #ifndef TOP
  18.       #define  TOP               0x002
  19.    #endif
  20.    #ifndef BOTTOM
  21.       #define  BOTTOM            0x004
  22.    #endif
  23.    #ifndef SIDES
  24.       #define  SIDES             0x008
  25.    #endif
  26.    #ifndef INSIDE
  27.       #define  INSIDE            0x020
  28.    #endif
  29.    #ifndef OUTSIDE
  30.       #define  OUTSIDE           0x040
  31.    #endif
  32.    #ifndef AXIS_ON              
  33.       #define AXIS_ON            0x080
  34.    #endif
  35.    #ifndef GRID_ON             
  36.       #define GRID_ON            0x100
  37.    #endif
  38.  
  39.    #define  NUM_CYLINDER_FACES   16
  40.    #define  NUM_CONE_FACES       16
  41.    #define  STACKS               20
  42.    #define  SLICES               20
  43.    /*========================================================================*/
  44.    /* Function prototyping.                                                  */
  45.    /*========================================================================*/
  46.    void  glObjCube( float width, float height, float depth, int parts );
  47.    void  glObjCylinder( float radius, float height, int parts );
  48.    void  glObjCone( float radius, float height, int parts );
  49.    void  glObjSphere( float radius, int parts );
  50.    void  glObjGrids( float gridSize, float gridGap, float radius, int flags );
  51.    void  glObjSetLight( int lightNumber, int show, int positional, float x, float y, float z );
  52.  
  53. #endif
  54. /*===========================================================================*/
  55.