1 | /* $Id: pglos2.h,v 1.2 2000-02-09 08:54:25 jeroen Exp $ */
|
---|
2 | #ifndef _pglos2_h_
|
---|
3 | #define _pglos2_h_
|
---|
4 |
|
---|
5 | #ifdef __cplusplus
|
---|
6 | extern "C" {
|
---|
7 | #endif
|
---|
8 |
|
---|
9 | #include "glos2.h"
|
---|
10 |
|
---|
11 | #pragma pack(1)
|
---|
12 | typedef struct tagVISUALCONFIG {
|
---|
13 | unsigned long vid; /* Visual ID */
|
---|
14 | BOOL rgba;
|
---|
15 | int redSize, greenSize, blueSize, alphaSize;
|
---|
16 | ULONG redMask, greenMask, blueMask;
|
---|
17 | int accumRedSize, accumGreenSize, accumBlueSize, accumAlphaSize;
|
---|
18 | BOOL doubleBuffer;
|
---|
19 | BOOL stereo;
|
---|
20 | int bufferSize;
|
---|
21 | int depthSize;
|
---|
22 | int stencilSize;
|
---|
23 | int auxBuffers;
|
---|
24 | int level;
|
---|
25 | PVOID reserved;
|
---|
26 | struct visualconfig *next;
|
---|
27 | } VISUALCONFIG, *PVISUALCONFIG;
|
---|
28 | #pragma pack()
|
---|
29 |
|
---|
30 | typedef LHANDLE HGC;
|
---|
31 |
|
---|
32 | extern PVISUALCONFIG APIENTRY OS2pglChooseConfig(HAB hab, int *attriblist);
|
---|
33 | extern PVISUALCONFIG* APIENTRY OS2pglQueryConfigs(HAB hab);
|
---|
34 | extern HGC APIENTRY OS2pglCreateContext(HAB hab, PVISUALCONFIG pVisualConfig, HGC Sharelist, BOOL IsDirect);
|
---|
35 | extern BOOL APIENTRY OS2pglMakeCurrent(HAB hab,HGC hgc, HWND hwnd);
|
---|
36 | extern BOOL APIENTRY OS2pglDestroyContext(HAB hab, HGC hgc);
|
---|
37 | extern BOOL APIENTRY OS2pglCopyContext(HAB hab, HGC hgc_src, HGC hgc_dst, GLuint attrib_mask);
|
---|
38 | extern int APIENTRY OS2pglSelectColorIndexPalette(HAB hab, HPAL hpal, HGC hgc);
|
---|
39 | extern LONG APIENTRY OS2pglIsIndirect(HAB hab, HGC hgc);
|
---|
40 | extern HGC APIENTRY OS2pglGetCurrentContext(HAB hab);
|
---|
41 | extern HWND APIENTRY OS2pglGetCurrentWindow(HAB hab);
|
---|
42 | extern HPS APIENTRY OS2pglWaitGL(HAB hab);
|
---|
43 | extern void APIENTRY OS2pglWaitPM(HAB hab);
|
---|
44 | extern void APIENTRY OS2pglSwapBuffers(HAB hab, HWND hwnd);
|
---|
45 | extern LONG APIENTRY OS2pglQueryCapability(HAB hab);
|
---|
46 | extern void APIENTRY OS2pglQueryVersion(HAB hab, int *major, int *minor);
|
---|
47 | extern BOOL APIENTRY OS2pglUsePMBitmapFont(HAB hab, LONG id, int first, int count, int listbase);
|
---|
48 | extern BOOL APIENTRY OS2pglGrabFrontBitmap(HAB hab,HPS *phps,HBITMAP *phbitmap);
|
---|
49 | extern BOOL APIENTRY OS2pglReleaseFrontBitmap(HAB hab);
|
---|
50 | extern BOOL APIENTRY OS2pglUseFont(HAB,HPS,FATTRS *,long,int,int,int);
|
---|
51 |
|
---|
52 | #define None 0x0
|
---|
53 |
|
---|
54 | #define PGL_USE_GL 1
|
---|
55 | #define PGL_BUFFER_SIZE 2
|
---|
56 | #define PGL_LEVEL 3
|
---|
57 | #define PGL_RGBA 4
|
---|
58 | #define PGL_DOUBLEBUFFER 5
|
---|
59 | #define PGL_STEREO 6
|
---|
60 | #define PGL_AUX_BUFFERS 7
|
---|
61 | #define PGL_RED_SIZE 8
|
---|
62 | #define PGL_GREEN_SIZE 9
|
---|
63 | #define PGL_BLUE_SIZE 10
|
---|
64 | #define PGL_ALPHA_SIZE 11
|
---|
65 | #define PGL_DEPTH_SIZE 12
|
---|
66 | #define PGL_STENCIL_SIZE 13
|
---|
67 | #define PGL_ACCUM_RED_SIZE 14
|
---|
68 | #define PGL_ACCUM_GREEN_SIZE 15
|
---|
69 | #define PGL_ACCUM_BLUE_SIZE 16
|
---|
70 | #define PGL_ACCUM_ALPHA_SIZE 17
|
---|
71 | #define PGL_SINGLEBUFFER 18
|
---|
72 |
|
---|
73 | #ifdef __cplusplus
|
---|
74 | }
|
---|
75 | #endif
|
---|
76 |
|
---|
77 | #endif /* _pglos2_h_ */
|
---|