Blame GLwDrawAP.h

Packit 34ce77
/*
Packit 34ce77
 * (c) Copyright 1993, Silicon Graphics, Inc.
Packit 34ce77
 * ALL RIGHTS RESERVED 
Packit 34ce77
 * Permission to use, copy, modify, and distribute this software for 
Packit 34ce77
 * any purpose and without fee is hereby granted, provided that the above
Packit 34ce77
 * copyright notice appear in all copies and that both the copyright notice
Packit 34ce77
 * and this permission notice appear in supporting documentation, and that 
Packit 34ce77
 * the name of Silicon Graphics, Inc. not be used in advertising
Packit 34ce77
 * or publicity pertaining to distribution of the software without specific,
Packit 34ce77
 * written prior permission. 
Packit 34ce77
 *
Packit 34ce77
 * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
Packit 34ce77
 * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
Packit 34ce77
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
Packit 34ce77
 * FITNESS FOR A PARTICULAR PURPOSE.  IN NO EVENT SHALL SILICON
Packit 34ce77
 * GRAPHICS, INC.  BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
Packit 34ce77
 * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
Packit 34ce77
 * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
Packit 34ce77
 * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
Packit 34ce77
 * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC.  HAS BEEN
Packit 34ce77
 * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
Packit 34ce77
 * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
Packit 34ce77
 * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
Packit 34ce77
 * 
Packit 34ce77
 * 
Packit 34ce77
 * US Government Users Restricted Rights 
Packit 34ce77
 * Use, duplication, or disclosure by the Government is subject to
Packit 34ce77
 * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
Packit 34ce77
 * (c)(1)(ii) of the Rights in Technical Data and Computer Software
Packit 34ce77
 * clause at DFARS 252.227-7013 and/or in similar or successor
Packit 34ce77
 * clauses in the FAR or the DOD or NASA FAR Supplement.
Packit 34ce77
 * Unpublished-- rights reserved under the copyright laws of the
Packit 34ce77
 * United States.  Contractor/manufacturer is Silicon Graphics,
Packit 34ce77
 * Inc., 2011 N.  Shoreline Blvd., Mountain View, CA 94039-7311.
Packit 34ce77
 *
Packit 34ce77
 * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
Packit 34ce77
 */
Packit 34ce77
#ifndef _GLwDrawAP_h
Packit 34ce77
#define _GLwDrawAP_h
Packit 34ce77
Packit 34ce77
Packit 34ce77
/* MOTIF */
Packit 34ce77
#ifdef __GLX_MOTIF
Packit 34ce77
#include "GLwMDrawA.h"
Packit 34ce77
#else
Packit 34ce77
#include "GLwDrawA.h"
Packit 34ce77
#endif
Packit 34ce77
Packit 34ce77
typedef struct _GLwDrawingAreaClassPart {
Packit 34ce77
  caddr_t extension;
Packit 34ce77
  } GLwDrawingAreaClassPart;
Packit 34ce77
Packit 34ce77
Packit 34ce77
#ifdef __GLX_MOTIF
Packit 34ce77
typedef struct _GLwMDrawingAreaClassRec {
Packit 34ce77
  CoreClassPart               core_class;
Packit 34ce77
  XmPrimitiveClassPart        primitive_class;
Packit 34ce77
  GLwDrawingAreaClassPart     glwDrawingArea_class;
Packit 34ce77
  } GLwMDrawingAreaClassRec;
Packit 34ce77
Packit 34ce77
Packit 34ce77
GLAPIVAR GLwMDrawingAreaClassRec glwMDrawingAreaClassRec;
Packit 34ce77
Packit 34ce77
Packit 34ce77
/* XT */
Packit 34ce77
#else 
Packit 34ce77
Packit 34ce77
typedef struct _GLwDrawingAreaClassRec {
Packit 34ce77
  CoreClassPart               core_class;
Packit 34ce77
  GLwDrawingAreaClassPart     glwDrawingArea_class;
Packit 34ce77
  } GLwDrawingAreaClassRec;
Packit 34ce77
Packit 34ce77
GLAPIVAR GLwDrawingAreaClassRec glwDrawingAreaClassRec;
Packit 34ce77
Packit 34ce77
Packit 34ce77
#endif 
Packit 34ce77
Packit 34ce77
Packit 34ce77
Packit 34ce77
typedef struct {
Packit 34ce77
  /* resources */
Packit 34ce77
  int *                attribList;
Packit 34ce77
  XVisualInfo *        visualInfo;
Packit 34ce77
  Boolean              myList;                /* TRUE if we malloced the attribList*/
Packit 34ce77
  Boolean              myVisual;        /* TRUE if we created the visualInfo*/
Packit 34ce77
  Boolean              installColormap;
Packit 34ce77
  Boolean              allocateBackground;
Packit 34ce77
  Boolean              allocateOtherColors;
Packit 34ce77
  Boolean              installBackground;
Packit 34ce77
  XtCallbackList       ginitCallback;
Packit 34ce77
  XtCallbackList       resizeCallback;
Packit 34ce77
  XtCallbackList       exposeCallback;
Packit 34ce77
  XtCallbackList       inputCallback;
Packit 34ce77
  /* specific attributes; add as we get new attributes */
Packit 34ce77
  int                  bufferSize;
Packit 34ce77
  int                  level;
Packit 34ce77
  Boolean              rgba;
Packit 34ce77
  Boolean              doublebuffer;
Packit 34ce77
  Boolean              stereo;
Packit 34ce77
  int                  auxBuffers;
Packit 34ce77
  int                  redSize;
Packit 34ce77
  int                  greenSize;
Packit 34ce77
  int                  blueSize;
Packit 34ce77
  int                  alphaSize;
Packit 34ce77
  int                  depthSize;
Packit 34ce77
  int                  stencilSize;
Packit 34ce77
  int                  accumRedSize;
Packit 34ce77
  int                  accumGreenSize;
Packit 34ce77
  int                  accumBlueSize;
Packit 34ce77
  int                  accumAlphaSize;
Packit 34ce77
  } GLwDrawingAreaPart;
Packit 34ce77
Packit 34ce77
#ifdef __GLX_MOTIF
Packit 34ce77
Packit 34ce77
typedef struct _GLwMDrawingAreaRec {
Packit 34ce77
  CorePart             core;
Packit 34ce77
  XmPrimitivePart      primitive;
Packit 34ce77
  GLwDrawingAreaPart   glwDrawingArea;
Packit 34ce77
  } GLwMDrawingAreaRec;
Packit 34ce77
Packit 34ce77
#else 
Packit 34ce77
Packit 34ce77
typedef struct _GLwDrawingAreaRec {
Packit 34ce77
  CorePart             core;
Packit 34ce77
  GLwDrawingAreaPart   glwDrawingArea;
Packit 34ce77
  } GLwDrawingAreaRec;
Packit 34ce77
Packit 34ce77
#endif 
Packit 34ce77
Packit 34ce77
#endif