source: trunk/src/opengl/pglos2.h@ 2690

Last change on this file since 2690 was 2690, checked in by jeroen, 26 years ago

* empty log message *

File size: 2.7 KB
Line 
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
6extern "C" {
7#endif
8
9#include "glos2.h"
10
11#pragma pack(1)
12typedef 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
30typedef LHANDLE HGC;
31
32extern PVISUALCONFIG APIENTRY OS2pglChooseConfig(HAB hab, int *attriblist);
33extern PVISUALCONFIG* APIENTRY OS2pglQueryConfigs(HAB hab);
34extern HGC APIENTRY OS2pglCreateContext(HAB hab, PVISUALCONFIG pVisualConfig, HGC Sharelist, BOOL IsDirect);
35extern BOOL APIENTRY OS2pglMakeCurrent(HAB hab,HGC hgc, HWND hwnd);
36extern BOOL APIENTRY OS2pglDestroyContext(HAB hab, HGC hgc);
37extern BOOL APIENTRY OS2pglCopyContext(HAB hab, HGC hgc_src, HGC hgc_dst, GLuint attrib_mask);
38extern int APIENTRY OS2pglSelectColorIndexPalette(HAB hab, HPAL hpal, HGC hgc);
39extern LONG APIENTRY OS2pglIsIndirect(HAB hab, HGC hgc);
40extern HGC APIENTRY OS2pglGetCurrentContext(HAB hab);
41extern HWND APIENTRY OS2pglGetCurrentWindow(HAB hab);
42extern HPS APIENTRY OS2pglWaitGL(HAB hab);
43extern void APIENTRY OS2pglWaitPM(HAB hab);
44extern void APIENTRY OS2pglSwapBuffers(HAB hab, HWND hwnd);
45extern LONG APIENTRY OS2pglQueryCapability(HAB hab);
46extern void APIENTRY OS2pglQueryVersion(HAB hab, int *major, int *minor);
47extern BOOL APIENTRY OS2pglUsePMBitmapFont(HAB hab, LONG id, int first, int count, int listbase);
48extern BOOL APIENTRY OS2pglGrabFrontBitmap(HAB hab,HPS *phps,HBITMAP *phbitmap);
49extern BOOL APIENTRY OS2pglReleaseFrontBitmap(HAB hab);
50extern 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_ */
Note: See TracBrowser for help on using the repository browser.