1 /*
2 * Copyright (c) 2004, 2012, 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
105 #define CAPS_RT_PLAIN_ALPHA \
106 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_RT_PLAIN_ALPHA
107 #define CAPS_RT_TEXTURE_ALPHA \
108 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_RT_TEXTURE_ALPHA
109 #define CAPS_RT_TEXTURE_OPAQUE \
110 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_RT_TEXTURE_OPAQUE
111 #define CAPS_MULTITEXTURE \
112 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_MULTITEXTURE
113 #define CAPS_TEXNONPOW2 \
114 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_TEXNONPOW2
115 #define CAPS_TEXNONSQUARE \
116 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_TEXNONSQUARE
117 #define CAPS_PS20 \
118 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_PS20
119 #define CAPS_PS30 \
120 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_PS30
121 #define LAST_SHARED_CAP \
122 sun_java2d_opengl_OGLContext_OGLContextCaps_LAST_SHARED_CAP
123 #define CAPS_EXT_FBOBJECT \
124 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_FBOBJECT
125 #define CAPS_STORED_ALPHA \
126 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_STORED_ALPHA
127 #define CAPS_DOUBLEBUFFERED \
128 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_DOUBLEBUFFERED
129 #define CAPS_EXT_LCD_SHADER \
130 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_LCD_SHADER
131 #define CAPS_EXT_BIOP_SHADER \
132 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_BIOP_SHADER
133 #define CAPS_EXT_GRAD_SHADER \
134 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_GRAD_SHADER
135 #define CAPS_EXT_TEXRECT \
136 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_TEXRECT
137
138 /**
139 * Evaluates to true if the given capability bitmask is present for the
140 * given OGLContext. Note that only the constant name needs to be passed as
141 * a parameter, as this macro will automatically prepend the full package
142 * and class name to the constant name.
143 */
144 #define OGLC_IS_CAP_PRESENT(oglc, cap) (((oglc)->caps & (cap)) != 0)
145
146 /**
| 1 /*
2 * Copyright (c) 2004, 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
105 #define CAPS_RT_PLAIN_ALPHA \
106 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_RT_PLAIN_ALPHA
107 #define CAPS_RT_TEXTURE_ALPHA \
108 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_RT_TEXTURE_ALPHA
109 #define CAPS_RT_TEXTURE_OPAQUE \
110 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_RT_TEXTURE_OPAQUE
111 #define CAPS_MULTITEXTURE \
112 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_MULTITEXTURE
113 #define CAPS_TEXNONPOW2 \
114 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_TEXNONPOW2
115 #define CAPS_TEXNONSQUARE \
116 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_TEXNONSQUARE
117 #define CAPS_PS20 \
118 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_PS20
119 #define CAPS_PS30 \
120 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_PS30
121 #define LAST_SHARED_CAP \
122 sun_java2d_opengl_OGLContext_OGLContextCaps_LAST_SHARED_CAP
123 #define CAPS_EXT_FBOBJECT \
124 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_FBOBJECT
125 #define CAPS_DOUBLEBUFFERED \
126 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_DOUBLEBUFFERED
127 #define CAPS_EXT_LCD_SHADER \
128 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_LCD_SHADER
129 #define CAPS_EXT_BIOP_SHADER \
130 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_BIOP_SHADER
131 #define CAPS_EXT_GRAD_SHADER \
132 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_GRAD_SHADER
133 #define CAPS_EXT_TEXRECT \
134 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_TEXRECT
135
136 /**
137 * Evaluates to true if the given capability bitmask is present for the
138 * given OGLContext. Note that only the constant name needs to be passed as
139 * a parameter, as this macro will automatically prepend the full package
140 * and class name to the constant name.
141 */
142 #define OGLC_IS_CAP_PRESENT(oglc, cap) (((oglc)->caps & (cap)) != 0)
143
144 /**
|