1 /*
2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
93
94 #ifdef WIN32 /* WIN32 */
95 #include <windows.h>
96 #include <GL/gl.h>
97 #include <GL/wglext.h>
98 #include <GL/glext.h>
99
100 #ifndef _WIN32_WINNT
101 #define _WIN32_WINNT 0x0500
102 #endif
103 #ifndef _WIN64
104 typedef int intptr_t;
105 #endif
106
107 #define jlong_to_ptr(value) (intptr_t)(value)
108 #define ptr_to_jlong(value) (jlong)((intptr_t)(value))
109 #endif /* WIN32 */
110
111 /* platform independent .h files generated by javah */
112 #include "com_sun_prism_es2_GLContext.h"
113 #include "com_sun_prism_es2_GLDrawable.h"
114 #include "com_sun_prism_es2_GLFactory.h"
115 #include "com_sun_prism_es2_GLPixelFormat.h"
116 #include "com_sun_prism_es2_GLPixelFormat_Attributes.h"
117
118 /*
119 * These match the constants in GLPixelFormat
120 */
121 #define RED_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_RED_SIZE
122 #define GREEN_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_GREEN_SIZE
123 #define BLUE_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_BLUE_SIZE
124 #define ALPHA_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_ALPHA_SIZE
125 #define DEPTH_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_DEPTH_SIZE
126 #define DOUBLEBUFFER com_sun_prism_es2_GLPixelFormat_Attributes_DOUBLEBUFFER
127 #define ONSCREEN com_sun_prism_es2_GLPixelFormat_Attributes_ONSCREEN
128 #define NUM_ITEMS com_sun_prism_es2_GLPixelFormat_Attributes_NUM_ITEMS
129
130 #ifdef ANDROID_NDK
131
132 #include "com_sun_prism_es2_GLPixelFormat_Attributes.h"
133
134 typedef EGLNativeDisplayType Display;
135 typedef EGLNativeWindowType Window;
|
1 /*
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
93
94 #ifdef WIN32 /* WIN32 */
95 #include <windows.h>
96 #include <GL/gl.h>
97 #include <GL/wglext.h>
98 #include <GL/glext.h>
99
100 #ifndef _WIN32_WINNT
101 #define _WIN32_WINNT 0x0500
102 #endif
103 #ifndef _WIN64
104 typedef int intptr_t;
105 #endif
106
107 #define jlong_to_ptr(value) (intptr_t)(value)
108 #define ptr_to_jlong(value) (jlong)((intptr_t)(value))
109 #endif /* WIN32 */
110
111 /* platform independent .h files generated by javah */
112 #include "com_sun_prism_es2_GLContext.h"
113 #include "com_sun_prism_es2_GLFactory.h"
114 #include "com_sun_prism_es2_GLPixelFormat_Attributes.h"
115
116 /*
117 * These match the constants in GLPixelFormat
118 */
119 #define RED_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_RED_SIZE
120 #define GREEN_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_GREEN_SIZE
121 #define BLUE_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_BLUE_SIZE
122 #define ALPHA_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_ALPHA_SIZE
123 #define DEPTH_SIZE com_sun_prism_es2_GLPixelFormat_Attributes_DEPTH_SIZE
124 #define DOUBLEBUFFER com_sun_prism_es2_GLPixelFormat_Attributes_DOUBLEBUFFER
125 #define ONSCREEN com_sun_prism_es2_GLPixelFormat_Attributes_ONSCREEN
126 #define NUM_ITEMS com_sun_prism_es2_GLPixelFormat_Attributes_NUM_ITEMS
127
128 #ifdef ANDROID_NDK
129
130 #include "com_sun_prism_es2_GLPixelFormat_Attributes.h"
131
132 typedef EGLNativeDisplayType Display;
133 typedef EGLNativeWindowType Window;
|