Ignore:
Timestamp:
Mar 1, 2000, 7:50:02 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/mesa/wmesadef.h

    r2938 r2962  
    1 /* $Id: wmesadef.h,v 1.1 2000-02-29 00:48:44 sandervl Exp $ */
     1/* $Id: wmesadef.h,v 1.2 2000-03-01 18:49:40 jeroen Exp $ */
    22/*      File name       :       wmesadef.h
    33 *  Version             :       2.3
     
    2020/*
    2121 * $Log: wmesadef.h,v $
    22  * Revision 1.1  2000-02-29 00:48:44  sandervl
     22 * Revision 1.2  2000-03-01 18:49:40  jeroen
     23 * *** empty log message ***
     24 *
     25 * Revision 1.1  2000/02/29 00:48:44  sandervl
    2326 * created
    2427 *
     
    3437/*
    3538 * $Log: wmesadef.h,v $
    36  * Revision 1.1  2000-02-29 00:48:44  sandervl
     39 * Revision 1.2  2000-03-01 18:49:40  jeroen
     40 * *** empty log message ***
     41 *
     42 * Revision 1.1  2000/02/29 00:48:44  sandervl
    3743 * created
    3844 *
     
    5056/*
    5157 * $Log: wmesadef.h,v $
    52  * Revision 1.1  2000-02-29 00:48:44  sandervl
     58 * Revision 1.2  2000-03-01 18:49:40  jeroen
     59 * *** empty log message ***
     60 *
     61 * Revision 1.1  2000/02/29 00:48:44  sandervl
    5362 * created
    5463 *
     
    6877#define DDMESADEF_H
    6978
    70 #ifdef __WIN32OS2__
    71 #include <os2win.h>
     79#ifdef __WIN32OS2__/* Nope, we use this hdr in DIVE code, so instead include*/
     80                   /* os2win.h in the source if it is needed! */
     81//#include <os2win.h>
    7282#else
    7383#include <windows.h>
     
    7888#endif
    7989
    80 #include "gl.h"
    81 #include "context.h"
     90//#include "gl.h"
     91//#include "context.h"
    8292//#include "profile.h"
    8393
     
    96106}WMDIBSECTION, *PWMDIBSECTION;
    97107
     108typedef struct tagMY_RECTL
     109  {
     110    LONG xLeft,xRight,yBottom,yTop;
     111  }MY_RECTL;
    98112
    99113typedef struct wmesa_context{
    100     GLcontext *gl_ctx;          /* The core GL/Mesa context */
    101         GLvisual *gl_visual;            /* Describes the buffers */
    102     GLframebuffer *gl_buffer;   /* Depth, stencil, accum, etc buffers */
     114  /* This defs *MUST* be at the TOP, since some structure definitions below  */
     115  /* are NOT correct!! This is because of the fact that wmesa is WIN based,  */
     116  /* whereas this file is OS/2 based. If we put this stuff at the end of the */
     117  /* structure the offsets to for example the hDiveInstance will be          */
     118  /* interpreted differently in this file and in wmesa.c.                    */
     119#ifdef DIVE
     120    ULONG               hDiveInstance; /* This actually is a DIVE Handle   */
     121    ULONG               BackBufferNumber;
     122    PVOID               ppFrameBuffer;
     123    ULONG               ScanLineBytes,ScanLines;
     124    POINT               WinPos;
     125    WNDPROC             hWndProc;
     126    BOOL                DiveSoftwareBlit;/* If BlitSetup failed do it in SW*/
     127    ULONG               NumClipRects;  /* Clip-info is maintained here     */
     128    MY_RECTL            rctls[50];
     129    HRGN                hrgn;
     130    HDC                 hps;
     131    BOOL                BackBufferOwnAllocation;
     132    GLint               awidth,aheight; /* Allocated w/h for ImageBuffer */
     133#endif
     134    PBYTE               pbPixels;
     135    int                 nColors;
     136    BYTE                cColorBits;
     137    int                 pixelformat;
     138    GLboolean           db_flag;       /* double buffered?                 */
     139    GLboolean           rgb_flag;      /* RGB mode?                        */
     140    GLboolean           dither_flag;/* use dither when 256 color mode for RGB?*/
     141    GLuint              depth;         /* bits per pixel (1, 8, 24, etc)   */
     142    ULONG               pixel;   /* current color index or RGBA pixel value*/
     143    ULONG               clearpixel; //* pixel for clearing the color buffers*/
     144    GLuint              width;
     145    GLuint              height;
     146    unsigned long       ScanWidth;
    103147
    104 
    105         HWND                            Window;
     148    GLcontext          *gl_ctx;                 /* The core GL/Mesa context*/
     149    GLvisual           *gl_visual;                 /* Describes the buffers*/
     150    GLframebuffer      *gl_buffer;    /* Depth, stencil, accum, etc buffers*/
     151    RECT                drawRect;
     152    UINT                uiDIBoffset;
     153    PBYTE               ScreenMem;     /* WinG memory                      */
     154    HPALETTE            hPal;          /* Current Palette                  */
     155    HPALETTE            hPalHalfTone;
     156    HPALETTE            hGLPalette;
     157    WMDIBSECTION        dib;
     158    BITMAPINFO         *IndexFormat;
     159    BITMAPINFO          bmi;
     160    HBITMAP             hbmDIB;
     161    HBITMAP             hOldBitmap;
     162    HBITMAP             Old_Compat_BM;
     163    HBITMAP             Compat_BM;     /* Bitmap for double buffering      */
     164    HWND                Window;
    106165    HDC                 hDC;
    107166    HPALETTE            hPalette;
     
    111170    HCURSOR             hOldCursor;
    112171    COLORREF            crColor;
    113     // 3D projection stuff
    114     RECT                drawRect;
    115     UINT                uiDIBoffset;
    116     // OpenGL stuff
    117     HPALETTE            hGLPalette;
    118         GLuint                          width;
    119         GLuint                          height;
    120         GLuint                          ScanWidth;
    121         GLboolean                       db_flag;        //* double buffered?
    122         GLboolean                       rgb_flag;       //* RGB mode?
    123         GLboolean                       dither_flag;    //* use dither when 256 color mode for RGB?
    124         GLuint                          depth;          //* bits per pixel (1, 8, 24, etc)
    125         ULONG                           pixel;  // current color index or RGBA pixel value
    126         ULONG                           clearpixel; //* pixel for clearing the color buffers
    127         PBYTE                           ScreenMem; // WinG memory
    128         BITMAPINFO                      *IndexFormat;
    129         HPALETTE                        hPal; // Current Palette
    130         HPALETTE                        hPalHalfTone;
    131 
    132 
    133         WMDIBSECTION            dib;
    134     BITMAPINFO          bmi;
    135     HBITMAP             hbmDIB;
    136     HBITMAP             hOldBitmap;
    137         HBITMAP                         Old_Compat_BM;
    138         HBITMAP                         Compat_BM;            // Bitmap for double buffering
    139     PBYTE               pbPixels;
    140     int                 nColors;
    141         BYTE                            cColorBits;
    142         int                                     pixelformat;
    143 
    144172#ifdef DDRAW
    145         LPDIRECTDRAW            lpDD;           // DirectDraw object
    146 //      LPDIRECTDRAW2            lpDD2;           // DirectDraw object
    147         LPDIRECTDRAWSURFACE     lpDDSPrimary;   // DirectDraw primary surface
     173        LPDIRECTDRAW            lpDD;  /* DirectDraw object                */
     174//      LPDIRECTDRAW2            lpDD2;                /* DirectDraw object*/
     175        LPDIRECTDRAWSURFACE     lpDDSPrimary; /* DirectDraw primary surface*/
    148176        LPDIRECTDRAWSURFACE     lpDDSOffScreen; // DirectDraw off screen surface
    149177        LPDIRECTDRAWPALETTE     lpDDPal;        // DirectDraw palette
    150         BOOL                    bActive;        // is application active?
     178        BOOL                    bActive;       /* is application active?   */
    151179        DDSURFACEDESC           ddsd;
    152180        int                                     fullScreen;
     
    158186        DWORD                                   pitch;
    159187        PBYTE                                   addrOffScreen;
    160 //#ifdef PROFILE
    161 //      MESAPROF        profile;
    162 //#endif
     188                                       /* #ifdef PROFILE                   */
     189                                       /* MESAPROF        profile;         */
     190                                       /* #endif                           */
    163191}  *PWMC;
    164192
Note: See TracChangeset for help on using the changeset viewer.