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 /** 147 * At startup we will embed one of the following values in the caps field 148 * of OGLContext. Later we can use this information to select 149 * the codepath that offers the best performance for that vendor's 150 * hardware and/or drivers. 151 */ 152 #define OGLC_VENDOR_OTHER 0 153 #define OGLC_VENDOR_ATI 1 154 #define OGLC_VENDOR_NVIDIA 2 155 #define OGLC_VENDOR_INTEL 3 156 | 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 #define CAPS_EXT_TEXBARRIER \ 138 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_TEXBARRIER 139 140 /** 141 * Evaluates to true if the given capability bitmask is present for the 142 * given OGLContext. Note that only the constant name needs to be passed as 143 * a parameter, as this macro will automatically prepend the full package 144 * and class name to the constant name. 145 */ 146 #define OGLC_IS_CAP_PRESENT(oglc, cap) (((oglc)->caps & (cap)) != 0) 147 148 /** 149 * At startup we will embed one of the following values in the caps field 150 * of OGLContext. Later we can use this information to select 151 * the codepath that offers the best performance for that vendor's 152 * hardware and/or drivers. 153 */ 154 #define OGLC_VENDOR_OTHER 0 155 #define OGLC_VENDOR_ATI 1 156 #define OGLC_VENDOR_NVIDIA 2 157 #define OGLC_VENDOR_INTEL 3 158 |