Blame GLwDrawAP.h

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