ftp.nice.ch/pub/next/developer/resources/libraries/Mesa.2.0.s.tar.gz#/Mesa-2.0/widgets-old/include/GL/MesaDrawingAreaP.h

This is MesaDrawingAreaP.h in view mode; [Download] [Up]

/* MesaDrawingAreaP.h -- Private header file for the Mesa widget
   Copyright (C) 1995, 1996 Thorsten.Ohl @ Physik.TH-Darmstadt.de

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with this library; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

   $Id: MesaDrawingAreaP.h,v 1.10 1996/09/30 00:21:06 ohl Exp $
 */

#ifndef _MesaDrawingAreaP_h
#define _MesaDrawingAreaP_h

#include <GL/GLwDrawAP.h>
#include <GL/MesaDrawingArea.h>

typedef struct
  {
    char *RCS_Id;
    Widget lists_root;
  }
MesaDrawingAreaClassPart;

#ifdef __GLX_MOTIF
typedef struct _MesaMDrawingAreaClassRec
  {
    CoreClassPart core_class;
    XmPrimitiveClassPart primitive_class;
    GLwDrawingAreaClassPart glwDrawingArea_class;
    MesaDrawingAreaClassPart mesaDrawingArea_class;
  }
MesaMDrawingAreaClassRec;
extern MesaMDrawingAreaClassRec mesaMDrawingAreaClassRec;
#else
typedef struct _MesaDrawingAreaClassRec
  {
    CoreClassPart core_class;
    GLwDrawingAreaClassPart glwDrawingArea_class;
    MesaDrawingAreaClassPart mesaDrawingArea_class;
  }
MesaDrawingAreaClassRec;
extern MesaDrawingAreaClassRec mesaDrawingAreaClassRec;
#endif

typedef struct
  {
    Boolean ximage;
    XMesaVisual visual;
    XMesaContext context;
    XMesaBuffer buffer;
    Boolean share_lists;
    Widget share_lists_with;
  }
MesaDrawingAreaPart;

#ifdef __GLX_MOTIF
typedef struct _MesaMDrawingAreaRec
  {
    CorePart core;
    XmPrimitivePart primitive;
    GLwDrawingAreaPart glwDrawingArea;
    MesaDrawingAreaPart mesaDrawingArea;
  }
MesaMDrawingAreaRec;
#else
typedef struct _MesaDrawingAreaRec
  {
    CorePart core;
    GLwDrawingAreaPart glwDrawingArea;
    MesaDrawingAreaPart mesaDrawingArea;
  }
MesaDrawingAreaRec;
#endif

#define MesaRGBA(_widget) \
   (((MesaDrawingAreaWidget)_widget)->glwDrawingArea.rgba)
#define MesaDoublebuffer(_widget) \
   (((MesaDrawingAreaWidget)_widget)->glwDrawingArea.doublebuffer)
#define MesaVisual(_widget) \
   (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.visual)
#define MesaContext(_widget) \
   (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.context)
#define MesaBuffer(_widget) \
   (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.buffer)
#define MesaXImage(_widget) \
   (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.ximage)
#define MesaShareLists(_widget) \
   (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.share_lists)
#define MesaShareListsWith(_widget) \
   (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.share_lists_with)

#define MesaAlphaSize(_widget) \
   (((MesaDrawingAreaWidget)_widget)->glwDrawingArea.alphaSize)
#define MesaDepthSize(_widget) \
   (((MesaDrawingAreaWidget)_widget)->glwDrawingArea.depthSize)
#define MesaStencilSize(_widget) \
   (((MesaDrawingAreaWidget)_widget)->glwDrawingArea.stencilSize)
#define MesaAccumRedSize(_widget) \
   (((MesaDrawingAreaWidget)_widget)->glwDrawingArea.accumRedSize)

#define MesaListsRoot \
   (mesaDrawingAreaClassRec.mesaDrawingArea_class.lists_root)

#define AVOID_MESABUFFER_INTERFACE 1

#endif /* _MesaDrawingAreaP_h */

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.