aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/OpenGL_Win32_common.h
blob: f8c6ca43fc17bfd023eaf1e683bf8192af516ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef _OPENGL_WIN32_COMMON_H
#define _OPENGL_WIN32_COMMON_H

#include "OpenGL_misc.h"

#include <wingdi.h>


// Set Pixel Format function - forward declaration
LIBAPI void LIBAPIENTRY SetDCPixelFormat(HDC hDC, jboolean doubleBuffer, 
		jboolean stereo, jint stencilBits, jboolean offScreenRenderer, 
		jboolean verbose);

LIBAPI HPALETTE LIBAPIENTRY GetOpenGLPalette(HDC hDC);

LIBAPI HGLRC LIBAPIENTRY get_GC( HDC *hDC, jboolean doubleBuffer, 
		jboolean stereo, jint stencilBits, HGLRC shareWith, 
		jboolean offScreenRenderer,
		int width, int height, HBITMAP *pix,
		jboolean verbose);

LIBAPI int LIBAPIENTRY PixelFormatDescriptorFromDc( HDC Dc, 
		PIXELFORMATDESCRIPTOR *Pfd );

const char * LIBAPIENTRY GetTextualPixelFormatByHDC(HDC hdc);

const char * LIBAPIENTRY GetTextualPixelFormatByPFD(
		PIXELFORMATDESCRIPTOR *ppfd, int format);

/* testX11Java does important implementation plattformspecific checks:
 *
 * o do fit X11-Vars in jint (because GLContext stores 'em like that)
 */
LIBAPI jboolean LIBAPIENTRY testWin32Java(void);

LIBAPI void LIBAPIENTRY setupDIB(HDC hDCOrig, HDC hDC, HBITMAP * hBitmap, 
		int width, int height);

LIBAPI void LIBAPIENTRY resizeDIB(HDC hDC, HBITMAP *hOldBitmap, 
		HBITMAP *hBitmap);

LIBAPI void LIBAPIENTRY setupPalette(HDC hDC);

#endif