Changeset 2962 for trunk/src/opengl/mesa/wmesadef.h
- Timestamp:
- Mar 1, 2000, 7:50:02 PM (25 years ago)
- 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 sandervlExp $ */1 /* $Id: wmesadef.h,v 1.2 2000-03-01 18:49:40 jeroen Exp $ */ 2 2 /* File name : wmesadef.h 3 3 * Version : 2.3 … … 20 20 /* 21 21 * $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 23 26 * created 24 27 * … … 34 37 /* 35 38 * $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 37 43 * created 38 44 * … … 50 56 /* 51 57 * $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 53 62 * created 54 63 * … … 68 77 #define DDMESADEF_H 69 78 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> 72 82 #else 73 83 #include <windows.h> … … 78 88 #endif 79 89 80 #include "gl.h"81 #include "context.h"90 //#include "gl.h" 91 //#include "context.h" 82 92 //#include "profile.h" 83 93 … … 96 106 }WMDIBSECTION, *PWMDIBSECTION; 97 107 108 typedef struct tagMY_RECTL 109 { 110 LONG xLeft,xRight,yBottom,yTop; 111 }MY_RECTL; 98 112 99 113 typedef 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; 103 147 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; 106 165 HDC hDC; 107 166 HPALETTE hPalette; … … 111 170 HCURSOR hOldCursor; 112 171 COLORREF crColor; 113 // 3D projection stuff114 RECT drawRect;115 UINT uiDIBoffset;116 // OpenGL stuff117 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 value126 ULONG clearpixel; //* pixel for clearing the color buffers127 PBYTE ScreenMem; // WinG memory128 BITMAPINFO *IndexFormat;129 HPALETTE hPal; // Current Palette130 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 buffering139 PBYTE pbPixels;140 int nColors;141 BYTE cColorBits;142 int pixelformat;143 144 172 #ifdef DDRAW 145 LPDIRECTDRAW lpDD; // DirectDraw object146 // LPDIRECTDRAW2 lpDD2; // DirectDraw object147 LPDIRECTDRAWSURFACE lpDDSPrimary; // DirectDraw primary surface173 LPDIRECTDRAW lpDD; /* DirectDraw object */ 174 // LPDIRECTDRAW2 lpDD2; /* DirectDraw object*/ 175 LPDIRECTDRAWSURFACE lpDDSPrimary; /* DirectDraw primary surface*/ 148 176 LPDIRECTDRAWSURFACE lpDDSOffScreen; // DirectDraw off screen surface 149 177 LPDIRECTDRAWPALETTE lpDDPal; // DirectDraw palette 150 BOOL bActive; // is application active?178 BOOL bActive; /* is application active? */ 151 179 DDSURFACEDESC ddsd; 152 180 int fullScreen; … … 158 186 DWORD pitch; 159 187 PBYTE addrOffScreen; 160 //#ifdef PROFILE 161 // MESAPROF profile; 162 //#endif 188 /* #ifdef PROFILE */ 189 /* MESAPROF profile; */ 190 /* #endif */ 163 191 } *PWMC; 164 192
Note:
See TracChangeset
for help on using the changeset viewer.