wglgears: add srgb-mode to usage
[mesa-demos.git] / src / wgl / rtotex / pbuffer.h
blob6a4e1cab62a007942cd41dac9ffabc43ca7b2178
1 //////////////////////////////////////////////////////////////////////////////////////////
2 // PBUFFER.h
3 // class to setup pBuffer
4 // Downloaded from: www.paulsprojects.net
5 // Created: 9th September 2002
6 //
7 // Copyright (c) 2006, Paul Baker
8 // Distributed under the New BSD Licence. (See accompanying file License.txt or copy at
9 // http://www.paulsprojects.net/NewBSDLicense.txt)
10 //////////////////////////////////////////////////////////////////////////////////////////
12 #ifndef PBUFFER_H
13 #define PBUFFER_H
15 class PBUFFER
17 public:
18 HGLRC hRC; //rendering context
19 HDC hDC; //device context
21 HPBUFFERARB hBuffer; //buffer handle
23 int width, height; //window size
24 int colorBits, depthBits, stencilBits; //window bpp
26 bool Init( int newWidth, int newHeight,
27 int newColorBits, int newDepthBits, int newStencilBits,
28 int numExtraIAttribs, int * extraIAttribList, int * flags);
29 void Shutdown(void); //Properly kill pbuffer
31 bool MakeCurrent(void);
34 #endif //PBUFFER_H