diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 03:01:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 03:01:46 +0000 |
commit | f8fe689a81f906d1b91bb3220acde2a4ecb14c5b (patch) | |
tree | 26484e9d7e2c67806c2d1760196ff01aaa858e8c /src/VBox/GuestHost/OpenGL/include | |
parent | Initial commit. (diff) | |
download | virtualbox-f8fe689a81f906d1b91bb3220acde2a4ecb14c5b.tar.xz virtualbox-f8fe689a81f906d1b91bb3220acde2a4ecb14c5b.zip |
Adding upstream version 6.0.4-dfsg.upstream/6.0.4-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/include')
77 files changed, 20585 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/include/GL/glext.h b/src/VBox/GuestHost/OpenGL/include/GL/glext.h new file mode 100644 index 00000000..9c50739d --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/GL/glext.h @@ -0,0 +1,7669 @@ +#ifndef __glext_h_ +#define __glext_h_ + +#ifdef __cplusplus +extern "C" { +#endif + +/* +** Copyright (c) 2007 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) +#define WIN32_LEAN_AND_MEAN 1 +# ifdef VBOX +# include <iprt/win/windows.h> +# else +#include <windows.h> +# endif +#endif + +#ifndef APIENTRY +#define APIENTRY +#endif +#ifndef APIENTRYP +#define APIENTRYP APIENTRY * +#endif +#ifndef GLAPI +#define GLAPI extern +#endif + +/*************************************************************/ + +/* Header file version number, required by OpenGL ABI for Linux */ +/* glext.h last updated 2008/08/10 */ +/* Current version at http://www.opengl.org/registry/ */ +#define GL_GLEXT_VERSION 41 + +#ifndef GL_VERSION_1_2 +#define GL_UNSIGNED_BYTE_3_3_2 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2 0x8036 +#define GL_RESCALE_NORMAL 0x803A +#define GL_TEXTURE_BINDING_3D 0x806A +#define GL_PACK_SKIP_IMAGES 0x806B +#define GL_PACK_IMAGE_HEIGHT 0x806C +#define GL_UNPACK_SKIP_IMAGES 0x806D +#define GL_UNPACK_IMAGE_HEIGHT 0x806E +#define GL_TEXTURE_3D 0x806F +#define GL_PROXY_TEXTURE_3D 0x8070 +#define GL_TEXTURE_DEPTH 0x8071 +#define GL_TEXTURE_WRAP_R 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE 0x8073 +#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 +#define GL_UNSIGNED_SHORT_5_6_5 0x8363 +#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 +#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 +#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 +#define GL_BGR 0x80E0 +#define GL_BGRA 0x80E1 +#define GL_MAX_ELEMENTS_VERTICES 0x80E8 +#define GL_MAX_ELEMENTS_INDICES 0x80E9 +#define GL_CLAMP_TO_EDGE 0x812F +#define GL_TEXTURE_MIN_LOD 0x813A +#define GL_TEXTURE_MAX_LOD 0x813B +#define GL_TEXTURE_BASE_LEVEL 0x813C +#define GL_TEXTURE_MAX_LEVEL 0x813D +#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 +#define GL_SINGLE_COLOR 0x81F9 +#define GL_SEPARATE_SPECULAR_COLOR 0x81FA +#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 +#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 +#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_ALIASED_POINT_SIZE_RANGE 0x846D +#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E +#endif + +#ifndef GL_ARB_imaging +#define GL_CONSTANT_COLOR 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 +#define GL_CONSTANT_ALPHA 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 +#define GL_BLEND_COLOR 0x8005 +#define GL_FUNC_ADD 0x8006 +#define GL_MIN 0x8007 +#define GL_MAX 0x8008 +#define GL_BLEND_EQUATION 0x8009 +#define GL_FUNC_SUBTRACT 0x800A +#define GL_FUNC_REVERSE_SUBTRACT 0x800B +#define GL_CONVOLUTION_1D 0x8010 +#define GL_CONVOLUTION_2D 0x8011 +#define GL_SEPARABLE_2D 0x8012 +#define GL_CONVOLUTION_BORDER_MODE 0x8013 +#define GL_CONVOLUTION_FILTER_SCALE 0x8014 +#define GL_CONVOLUTION_FILTER_BIAS 0x8015 +#define GL_REDUCE 0x8016 +#define GL_CONVOLUTION_FORMAT 0x8017 +#define GL_CONVOLUTION_WIDTH 0x8018 +#define GL_CONVOLUTION_HEIGHT 0x8019 +#define GL_MAX_CONVOLUTION_WIDTH 0x801A +#define GL_MAX_CONVOLUTION_HEIGHT 0x801B +#define GL_POST_CONVOLUTION_RED_SCALE 0x801C +#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D +#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E +#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F +#define GL_POST_CONVOLUTION_RED_BIAS 0x8020 +#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021 +#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022 +#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023 +#define GL_HISTOGRAM 0x8024 +#define GL_PROXY_HISTOGRAM 0x8025 +#define GL_HISTOGRAM_WIDTH 0x8026 +#define GL_HISTOGRAM_FORMAT 0x8027 +#define GL_HISTOGRAM_RED_SIZE 0x8028 +#define GL_HISTOGRAM_GREEN_SIZE 0x8029 +#define GL_HISTOGRAM_BLUE_SIZE 0x802A +#define GL_HISTOGRAM_ALPHA_SIZE 0x802B +#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C +#define GL_HISTOGRAM_SINK 0x802D +#define GL_MINMAX 0x802E +#define GL_MINMAX_FORMAT 0x802F +#define GL_MINMAX_SINK 0x8030 +#define GL_TABLE_TOO_LARGE 0x8031 +#define GL_COLOR_MATRIX 0x80B1 +#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 +#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3 +#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4 +#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5 +#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6 +#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7 +#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 +#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 +#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB +#define GL_COLOR_TABLE 0x80D0 +#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 +#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 +#define GL_PROXY_COLOR_TABLE 0x80D3 +#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4 +#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5 +#define GL_COLOR_TABLE_SCALE 0x80D6 +#define GL_COLOR_TABLE_BIAS 0x80D7 +#define GL_COLOR_TABLE_FORMAT 0x80D8 +#define GL_COLOR_TABLE_WIDTH 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF +#define GL_CONSTANT_BORDER 0x8151 +#define GL_REPLICATE_BORDER 0x8153 +#define GL_CONVOLUTION_BORDER_COLOR 0x8154 +#endif + +#ifndef GL_VERSION_1_3 +#define GL_TEXTURE0 0x84C0 +#define GL_TEXTURE1 0x84C1 +#define GL_TEXTURE2 0x84C2 +#define GL_TEXTURE3 0x84C3 +#define GL_TEXTURE4 0x84C4 +#define GL_TEXTURE5 0x84C5 +#define GL_TEXTURE6 0x84C6 +#define GL_TEXTURE7 0x84C7 +#define GL_TEXTURE8 0x84C8 +#define GL_TEXTURE9 0x84C9 +#define GL_TEXTURE10 0x84CA +#define GL_TEXTURE11 0x84CB +#define GL_TEXTURE12 0x84CC +#define GL_TEXTURE13 0x84CD +#define GL_TEXTURE14 0x84CE +#define GL_TEXTURE15 0x84CF +#define GL_TEXTURE16 0x84D0 +#define GL_TEXTURE17 0x84D1 +#define GL_TEXTURE18 0x84D2 +#define GL_TEXTURE19 0x84D3 +#define GL_TEXTURE20 0x84D4 +#define GL_TEXTURE21 0x84D5 +#define GL_TEXTURE22 0x84D6 +#define GL_TEXTURE23 0x84D7 +#define GL_TEXTURE24 0x84D8 +#define GL_TEXTURE25 0x84D9 +#define GL_TEXTURE26 0x84DA +#define GL_TEXTURE27 0x84DB +#define GL_TEXTURE28 0x84DC +#define GL_TEXTURE29 0x84DD +#define GL_TEXTURE30 0x84DE +#define GL_TEXTURE31 0x84DF +#define GL_ACTIVE_TEXTURE 0x84E0 +#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 +#define GL_MAX_TEXTURE_UNITS 0x84E2 +#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 +#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 +#define GL_MULTISAMPLE 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE 0x809F +#define GL_SAMPLE_COVERAGE 0x80A0 +#define GL_SAMPLE_BUFFERS 0x80A8 +#define GL_SAMPLES 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT 0x80AB +#define GL_MULTISAMPLE_BIT 0x20000000 +#define GL_NORMAL_MAP 0x8511 +#define GL_REFLECTION_MAP 0x8512 +#define GL_TEXTURE_CUBE_MAP 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C +#define GL_COMPRESSED_ALPHA 0x84E9 +#define GL_COMPRESSED_LUMINANCE 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB +#define GL_COMPRESSED_INTENSITY 0x84EC +#define GL_COMPRESSED_RGB 0x84ED +#define GL_COMPRESSED_RGBA 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 +#define GL_TEXTURE_COMPRESSED 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 +#define GL_CLAMP_TO_BORDER 0x812D +#define GL_COMBINE 0x8570 +#define GL_COMBINE_RGB 0x8571 +#define GL_COMBINE_ALPHA 0x8572 +#define GL_SOURCE0_RGB 0x8580 +#define GL_SOURCE1_RGB 0x8581 +#define GL_SOURCE2_RGB 0x8582 +#define GL_SOURCE0_ALPHA 0x8588 +#define GL_SOURCE1_ALPHA 0x8589 +#define GL_SOURCE2_ALPHA 0x858A +#define GL_OPERAND0_RGB 0x8590 +#define GL_OPERAND1_RGB 0x8591 +#define GL_OPERAND2_RGB 0x8592 +#define GL_OPERAND0_ALPHA 0x8598 +#define GL_OPERAND1_ALPHA 0x8599 +#define GL_OPERAND2_ALPHA 0x859A +#define GL_RGB_SCALE 0x8573 +#define GL_ADD_SIGNED 0x8574 +#define GL_INTERPOLATE 0x8575 +#define GL_SUBTRACT 0x84E7 +#define GL_CONSTANT 0x8576 +#define GL_PRIMARY_COLOR 0x8577 +#define GL_PREVIOUS 0x8578 +#define GL_DOT3_RGB 0x86AE +#define GL_DOT3_RGBA 0x86AF +#endif + +#ifndef GL_VERSION_1_4 +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_POINT_SIZE_MIN 0x8126 +#define GL_POINT_SIZE_MAX 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 +#define GL_POINT_DISTANCE_ATTENUATION 0x8129 +#define GL_GENERATE_MIPMAP 0x8191 +#define GL_GENERATE_MIPMAP_HINT 0x8192 +#define GL_DEPTH_COMPONENT16 0x81A5 +#define GL_DEPTH_COMPONENT24 0x81A6 +#define GL_DEPTH_COMPONENT32 0x81A7 +#define GL_MIRRORED_REPEAT 0x8370 +#define GL_FOG_COORDINATE_SOURCE 0x8450 +#define GL_FOG_COORDINATE 0x8451 +#define GL_FRAGMENT_DEPTH 0x8452 +#define GL_CURRENT_FOG_COORDINATE 0x8453 +#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 +#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 +#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 +#define GL_FOG_COORDINATE_ARRAY 0x8457 +#define GL_COLOR_SUM 0x8458 +#define GL_CURRENT_SECONDARY_COLOR 0x8459 +#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A +#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B +#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C +#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D +#define GL_SECONDARY_COLOR_ARRAY 0x845E +#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD +#define GL_TEXTURE_FILTER_CONTROL 0x8500 +#define GL_TEXTURE_LOD_BIAS 0x8501 +#define GL_INCR_WRAP 0x8507 +#define GL_DECR_WRAP 0x8508 +#define GL_TEXTURE_DEPTH_SIZE 0x884A +#define GL_DEPTH_TEXTURE_MODE 0x884B +#define GL_TEXTURE_COMPARE_MODE 0x884C +#define GL_TEXTURE_COMPARE_FUNC 0x884D +#define GL_COMPARE_R_TO_TEXTURE 0x884E +#endif + +#ifndef GL_VERSION_1_5 +#define GL_BUFFER_SIZE 0x8764 +#define GL_BUFFER_USAGE 0x8765 +#define GL_QUERY_COUNTER_BITS 0x8864 +#define GL_CURRENT_QUERY 0x8865 +#define GL_QUERY_RESULT 0x8866 +#define GL_QUERY_RESULT_AVAILABLE 0x8867 +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 +#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 +#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 +#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F +#define GL_READ_ONLY 0x88B8 +#define GL_WRITE_ONLY 0x88B9 +#define GL_READ_WRITE 0x88BA +#define GL_BUFFER_ACCESS 0x88BB +#define GL_BUFFER_MAPPED 0x88BC +#define GL_BUFFER_MAP_POINTER 0x88BD +#define GL_STREAM_DRAW 0x88E0 +#define GL_STREAM_READ 0x88E1 +#define GL_STREAM_COPY 0x88E2 +#define GL_STATIC_DRAW 0x88E4 +#define GL_STATIC_READ 0x88E5 +#define GL_STATIC_COPY 0x88E6 +#define GL_DYNAMIC_DRAW 0x88E8 +#define GL_DYNAMIC_READ 0x88E9 +#define GL_DYNAMIC_COPY 0x88EA +#define GL_SAMPLES_PASSED 0x8914 +#define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE +#define GL_FOG_COORD GL_FOG_COORDINATE +#define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE +#define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE +#define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE +#define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER +#define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY +#define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING +#define GL_SRC0_RGB GL_SOURCE0_RGB +#define GL_SRC1_RGB GL_SOURCE1_RGB +#define GL_SRC2_RGB GL_SOURCE2_RGB +#define GL_SRC0_ALPHA GL_SOURCE0_ALPHA +#define GL_SRC1_ALPHA GL_SOURCE1_ALPHA +#define GL_SRC2_ALPHA GL_SOURCE2_ALPHA +#endif + +#ifndef GL_VERSION_2_0 +#define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB 0x8626 +#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_STENCIL_BACK_FUNC 0x8800 +#define GL_STENCIL_BACK_FAIL 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 +#define GL_MAX_DRAW_BUFFERS 0x8824 +#define GL_DRAW_BUFFER0 0x8825 +#define GL_DRAW_BUFFER1 0x8826 +#define GL_DRAW_BUFFER2 0x8827 +#define GL_DRAW_BUFFER3 0x8828 +#define GL_DRAW_BUFFER4 0x8829 +#define GL_DRAW_BUFFER5 0x882A +#define GL_DRAW_BUFFER6 0x882B +#define GL_DRAW_BUFFER7 0x882C +#define GL_DRAW_BUFFER8 0x882D +#define GL_DRAW_BUFFER9 0x882E +#define GL_DRAW_BUFFER10 0x882F +#define GL_DRAW_BUFFER11 0x8830 +#define GL_DRAW_BUFFER12 0x8831 +#define GL_DRAW_BUFFER13 0x8832 +#define GL_DRAW_BUFFER14 0x8833 +#define GL_DRAW_BUFFER15 0x8834 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_POINT_SPRITE 0x8861 +#define GL_COORD_REPLACE 0x8862 +#define GL_MAX_VERTEX_ATTRIBS 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_MAX_TEXTURE_COORDS 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A +#define GL_MAX_VARYING_FLOATS 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D +#define GL_SHADER_TYPE 0x8B4F +#define GL_FLOAT_VEC2 0x8B50 +#define GL_FLOAT_VEC3 0x8B51 +#define GL_FLOAT_VEC4 0x8B52 +#define GL_INT_VEC2 0x8B53 +#define GL_INT_VEC3 0x8B54 +#define GL_INT_VEC4 0x8B55 +#define GL_BOOL 0x8B56 +#define GL_BOOL_VEC2 0x8B57 +#define GL_BOOL_VEC3 0x8B58 +#define GL_BOOL_VEC4 0x8B59 +#define GL_FLOAT_MAT2 0x8B5A +#define GL_FLOAT_MAT3 0x8B5B +#define GL_FLOAT_MAT4 0x8B5C +#define GL_SAMPLER_1D 0x8B5D +#define GL_SAMPLER_2D 0x8B5E +#define GL_SAMPLER_3D 0x8B5F +#define GL_SAMPLER_CUBE 0x8B60 +#define GL_SAMPLER_1D_SHADOW 0x8B61 +#define GL_SAMPLER_2D_SHADOW 0x8B62 +#define GL_DELETE_STATUS 0x8B80 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_LINK_STATUS 0x8B82 +#define GL_VALIDATE_STATUS 0x8B83 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_ATTACHED_SHADERS 0x8B85 +#define GL_ACTIVE_UNIFORMS 0x8B86 +#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 +#define GL_SHADER_SOURCE_LENGTH 0x8B88 +#define GL_ACTIVE_ATTRIBUTES 0x8B89 +#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 +#define GL_LOWER_LEFT 0x8CA1 +#define GL_UPPER_LEFT 0x8CA2 +#define GL_STENCIL_BACK_REF 0x8CA3 +#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 +#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 +#endif + +#ifndef GL_VERSION_2_1 +#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F +#define GL_PIXEL_PACK_BUFFER 0x88EB +#define GL_PIXEL_UNPACK_BUFFER 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF +#define GL_FLOAT_MAT2x3 0x8B65 +#define GL_FLOAT_MAT2x4 0x8B66 +#define GL_FLOAT_MAT3x2 0x8B67 +#define GL_FLOAT_MAT3x4 0x8B68 +#define GL_FLOAT_MAT4x2 0x8B69 +#define GL_FLOAT_MAT4x3 0x8B6A +#define GL_SRGB 0x8C40 +#define GL_SRGB8 0x8C41 +#define GL_SRGB_ALPHA 0x8C42 +#define GL_SRGB8_ALPHA8 0x8C43 +#define GL_SLUMINANCE_ALPHA 0x8C44 +#define GL_SLUMINANCE8_ALPHA8 0x8C45 +#define GL_SLUMINANCE 0x8C46 +#define GL_SLUMINANCE8 0x8C47 +#define GL_COMPRESSED_SRGB 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 +#define GL_COMPRESSED_SLUMINANCE 0x8C4A +#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B +#endif + +#ifndef GL_VERSION_3_0 +#define GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB +#define GL_CLIP_DISTANCE0 GL_CLIP_PLANE0 +#define GL_CLIP_DISTANCE1 GL_CLIP_PLANE1 +#define GL_CLIP_DISTANCE2 GL_CLIP_PLANE2 +#define GL_CLIP_DISTANCE3 GL_CLIP_PLANE3 +#define GL_CLIP_DISTANCE4 GL_CLIP_PLANE4 +#define GL_CLIP_DISTANCE5 GL_CLIP_PLANE5 +#define GL_MAX_CLIP_DISTANCES GL_MAX_CLIP_PLANES +#define GL_MAJOR_VERSION 0x821B +#define GL_MINOR_VERSION 0x821C +#define GL_NUM_EXTENSIONS 0x821D +#define GL_CONTEXT_FLAGS 0x821E +#define GL_DEPTH_BUFFER 0x8223 +#define GL_STENCIL_BUFFER 0x8224 +#define GL_COMPRESSED_RED 0x8225 +#define GL_COMPRESSED_RG 0x8226 +#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001 +#define GL_RGBA32F 0x8814 +#define GL_RGB32F 0x8815 +#define GL_RGBA16F 0x881A +#define GL_RGB16F 0x881B +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD +#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF +#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 +#define GL_CLAMP_VERTEX_COLOR 0x891A +#define GL_CLAMP_FRAGMENT_COLOR 0x891B +#define GL_CLAMP_READ_COLOR 0x891C +#define GL_FIXED_ONLY 0x891D +#define GL_MAX_VARYING_COMPONENTS GL_MAX_VARYING_FLOATS +#define GL_TEXTURE_RED_TYPE 0x8C10 +#define GL_TEXTURE_GREEN_TYPE 0x8C11 +#define GL_TEXTURE_BLUE_TYPE 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE 0x8C13 +#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14 +#define GL_TEXTURE_INTENSITY_TYPE 0x8C15 +#define GL_TEXTURE_DEPTH_TYPE 0x8C16 +#define GL_UNSIGNED_NORMALIZED 0x8C17 +#define GL_TEXTURE_1D_ARRAY 0x8C18 +#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 +#define GL_TEXTURE_2D_ARRAY 0x8C1A +#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B +#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C +#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D +#define GL_R11F_G11F_B10F 0x8C3A +#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B +#define GL_RGB9_E5 0x8C3D +#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E +#define GL_TEXTURE_SHARED_SIZE 0x8C3F +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 +#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 +#define GL_PRIMITIVES_GENERATED 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 +#define GL_RASTERIZER_DISCARD 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B +#define GL_INTERLEAVED_ATTRIBS 0x8C8C +#define GL_SEPARATE_ATTRIBS 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F +#define GL_RGBA32UI 0x8D70 +#define GL_RGB32UI 0x8D71 +#define GL_RGBA16UI 0x8D76 +#define GL_RGB16UI 0x8D77 +#define GL_RGBA8UI 0x8D7C +#define GL_RGB8UI 0x8D7D +#define GL_RGBA32I 0x8D82 +#define GL_RGB32I 0x8D83 +#define GL_RGBA16I 0x8D88 +#define GL_RGB16I 0x8D89 +#define GL_RGBA8I 0x8D8E +#define GL_RGB8I 0x8D8F +#define GL_RED_INTEGER 0x8D94 +#define GL_GREEN_INTEGER 0x8D95 +#define GL_BLUE_INTEGER 0x8D96 +#define GL_ALPHA_INTEGER 0x8D97 +#define GL_RGB_INTEGER 0x8D98 +#define GL_RGBA_INTEGER 0x8D99 +#define GL_BGR_INTEGER 0x8D9A +#define GL_BGRA_INTEGER 0x8D9B +#define GL_SAMPLER_1D_ARRAY 0x8DC0 +#define GL_SAMPLER_2D_ARRAY 0x8DC1 +#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 +#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 +#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 +#define GL_UNSIGNED_INT_VEC2 0x8DC6 +#define GL_UNSIGNED_INT_VEC3 0x8DC7 +#define GL_UNSIGNED_INT_VEC4 0x8DC8 +#define GL_INT_SAMPLER_1D 0x8DC9 +#define GL_INT_SAMPLER_2D 0x8DCA +#define GL_INT_SAMPLER_3D 0x8DCB +#define GL_INT_SAMPLER_CUBE 0x8DCC +#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE +#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF +#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 +#define GL_QUERY_WAIT 0x8E13 +#define GL_QUERY_NO_WAIT 0x8E14 +#define GL_QUERY_BY_REGION_WAIT 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 +#endif + +#ifndef GL_ARB_multitexture +#define GL_TEXTURE0_ARB 0x84C0 +#define GL_TEXTURE1_ARB 0x84C1 +#define GL_TEXTURE2_ARB 0x84C2 +#define GL_TEXTURE3_ARB 0x84C3 +#define GL_TEXTURE4_ARB 0x84C4 +#define GL_TEXTURE5_ARB 0x84C5 +#define GL_TEXTURE6_ARB 0x84C6 +#define GL_TEXTURE7_ARB 0x84C7 +#define GL_TEXTURE8_ARB 0x84C8 +#define GL_TEXTURE9_ARB 0x84C9 +#define GL_TEXTURE10_ARB 0x84CA +#define GL_TEXTURE11_ARB 0x84CB +#define GL_TEXTURE12_ARB 0x84CC +#define GL_TEXTURE13_ARB 0x84CD +#define GL_TEXTURE14_ARB 0x84CE +#define GL_TEXTURE15_ARB 0x84CF +#define GL_TEXTURE16_ARB 0x84D0 +#define GL_TEXTURE17_ARB 0x84D1 +#define GL_TEXTURE18_ARB 0x84D2 +#define GL_TEXTURE19_ARB 0x84D3 +#define GL_TEXTURE20_ARB 0x84D4 +#define GL_TEXTURE21_ARB 0x84D5 +#define GL_TEXTURE22_ARB 0x84D6 +#define GL_TEXTURE23_ARB 0x84D7 +#define GL_TEXTURE24_ARB 0x84D8 +#define GL_TEXTURE25_ARB 0x84D9 +#define GL_TEXTURE26_ARB 0x84DA +#define GL_TEXTURE27_ARB 0x84DB +#define GL_TEXTURE28_ARB 0x84DC +#define GL_TEXTURE29_ARB 0x84DD +#define GL_TEXTURE30_ARB 0x84DE +#define GL_TEXTURE31_ARB 0x84DF +#define GL_ACTIVE_TEXTURE_ARB 0x84E0 +#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 +#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 +#endif + +#ifndef GL_ARB_transpose_matrix +#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5 +#define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6 +#endif + +#ifndef GL_ARB_multisample +#define GL_MULTISAMPLE_ARB 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F +#define GL_SAMPLE_COVERAGE_ARB 0x80A0 +#define GL_SAMPLE_BUFFERS_ARB 0x80A8 +#define GL_SAMPLES_ARB 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB +#define GL_MULTISAMPLE_BIT_ARB 0x20000000 +#endif + +#ifndef GL_ARB_texture_env_add +#endif + +#ifndef GL_ARB_texture_cube_map +#define GL_NORMAL_MAP_ARB 0x8511 +#define GL_REFLECTION_MAP_ARB 0x8512 +#define GL_TEXTURE_CUBE_MAP_ARB 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C +#endif + +#ifndef GL_ARB_texture_compression +#define GL_COMPRESSED_ALPHA_ARB 0x84E9 +#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB +#define GL_COMPRESSED_INTENSITY_ARB 0x84EC +#define GL_COMPRESSED_RGB_ARB 0x84ED +#define GL_COMPRESSED_RGBA_ARB 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0 +#define GL_TEXTURE_COMPRESSED_ARB 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3 +#endif + +#ifndef GL_ARB_texture_border_clamp +#define GL_CLAMP_TO_BORDER_ARB 0x812D +#endif + +#ifndef GL_ARB_point_parameters +#define GL_POINT_SIZE_MIN_ARB 0x8126 +#define GL_POINT_SIZE_MAX_ARB 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128 +#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129 +#endif + +#ifndef GL_ARB_vertex_blend +#define GL_MAX_VERTEX_UNITS_ARB 0x86A4 +#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5 +#define GL_WEIGHT_SUM_UNITY_ARB 0x86A6 +#define GL_VERTEX_BLEND_ARB 0x86A7 +#define GL_CURRENT_WEIGHT_ARB 0x86A8 +#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9 +#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA +#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB +#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC +#define GL_WEIGHT_ARRAY_ARB 0x86AD +#define GL_MODELVIEW0_ARB 0x1700 +#define GL_MODELVIEW1_ARB 0x850A +#define GL_MODELVIEW2_ARB 0x8722 +#define GL_MODELVIEW3_ARB 0x8723 +#define GL_MODELVIEW4_ARB 0x8724 +#define GL_MODELVIEW5_ARB 0x8725 +#define GL_MODELVIEW6_ARB 0x8726 +#define GL_MODELVIEW7_ARB 0x8727 +#define GL_MODELVIEW8_ARB 0x8728 +#define GL_MODELVIEW9_ARB 0x8729 +#define GL_MODELVIEW10_ARB 0x872A +#define GL_MODELVIEW11_ARB 0x872B +#define GL_MODELVIEW12_ARB 0x872C +#define GL_MODELVIEW13_ARB 0x872D +#define GL_MODELVIEW14_ARB 0x872E +#define GL_MODELVIEW15_ARB 0x872F +#define GL_MODELVIEW16_ARB 0x8730 +#define GL_MODELVIEW17_ARB 0x8731 +#define GL_MODELVIEW18_ARB 0x8732 +#define GL_MODELVIEW19_ARB 0x8733 +#define GL_MODELVIEW20_ARB 0x8734 +#define GL_MODELVIEW21_ARB 0x8735 +#define GL_MODELVIEW22_ARB 0x8736 +#define GL_MODELVIEW23_ARB 0x8737 +#define GL_MODELVIEW24_ARB 0x8738 +#define GL_MODELVIEW25_ARB 0x8739 +#define GL_MODELVIEW26_ARB 0x873A +#define GL_MODELVIEW27_ARB 0x873B +#define GL_MODELVIEW28_ARB 0x873C +#define GL_MODELVIEW29_ARB 0x873D +#define GL_MODELVIEW30_ARB 0x873E +#define GL_MODELVIEW31_ARB 0x873F +#endif + +#ifndef GL_ARB_matrix_palette +#define GL_MATRIX_PALETTE_ARB 0x8840 +#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841 +#define GL_MAX_PALETTE_MATRICES_ARB 0x8842 +#define GL_CURRENT_PALETTE_MATRIX_ARB 0x8843 +#define GL_MATRIX_INDEX_ARRAY_ARB 0x8844 +#define GL_CURRENT_MATRIX_INDEX_ARB 0x8845 +#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846 +#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847 +#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848 +#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849 +#endif + +#ifndef GL_ARB_texture_env_combine +#define GL_COMBINE_ARB 0x8570 +#define GL_COMBINE_RGB_ARB 0x8571 +#define GL_COMBINE_ALPHA_ARB 0x8572 +#define GL_SOURCE0_RGB_ARB 0x8580 +#define GL_SOURCE1_RGB_ARB 0x8581 +#define GL_SOURCE2_RGB_ARB 0x8582 +#define GL_SOURCE0_ALPHA_ARB 0x8588 +#define GL_SOURCE1_ALPHA_ARB 0x8589 +#define GL_SOURCE2_ALPHA_ARB 0x858A +#define GL_OPERAND0_RGB_ARB 0x8590 +#define GL_OPERAND1_RGB_ARB 0x8591 +#define GL_OPERAND2_RGB_ARB 0x8592 +#define GL_OPERAND0_ALPHA_ARB 0x8598 +#define GL_OPERAND1_ALPHA_ARB 0x8599 +#define GL_OPERAND2_ALPHA_ARB 0x859A +#define GL_RGB_SCALE_ARB 0x8573 +#define GL_ADD_SIGNED_ARB 0x8574 +#define GL_INTERPOLATE_ARB 0x8575 +#define GL_SUBTRACT_ARB 0x84E7 +#define GL_CONSTANT_ARB 0x8576 +#define GL_PRIMARY_COLOR_ARB 0x8577 +#define GL_PREVIOUS_ARB 0x8578 +#endif + +#ifndef GL_ARB_texture_env_crossbar +#endif + +#ifndef GL_ARB_texture_env_dot3 +#define GL_DOT3_RGB_ARB 0x86AE +#define GL_DOT3_RGBA_ARB 0x86AF +#endif + +#ifndef GL_ARB_texture_mirrored_repeat +#define GL_MIRRORED_REPEAT_ARB 0x8370 +#endif + +#ifndef GL_ATI_texture_mirror_once +#define GL_MIRROR_CLAMP_ATI 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 +#endif + +#ifndef GL_ARB_depth_texture +#define GL_DEPTH_COMPONENT16_ARB 0x81A5 +#define GL_DEPTH_COMPONENT24_ARB 0x81A6 +#define GL_DEPTH_COMPONENT32_ARB 0x81A7 +#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A +#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B +#endif + +#ifndef GL_ARB_shadow +#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C +#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D +#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E +#endif + +#ifndef GL_ARB_shadow_ambient +#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF +#endif + +#ifndef GL_ARB_window_pos +#endif + +#ifndef GL_ARB_vertex_program +#define GL_COLOR_SUM_ARB 0x8458 +#define GL_VERTEX_PROGRAM_ARB 0x8620 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626 +#define GL_PROGRAM_LENGTH_ARB 0x8627 +#define GL_PROGRAM_STRING_ARB 0x8628 +#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E +#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F +#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640 +#define GL_CURRENT_MATRIX_ARB 0x8641 +#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645 +#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B +#define GL_PROGRAM_BINDING_ARB 0x8677 +#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A +#define GL_PROGRAM_ERROR_STRING_ARB 0x8874 +#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875 +#define GL_PROGRAM_FORMAT_ARB 0x8876 +#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0 +#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1 +#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2 +#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3 +#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4 +#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5 +#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6 +#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7 +#define GL_PROGRAM_PARAMETERS_ARB 0x88A8 +#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9 +#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA +#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB +#define GL_PROGRAM_ATTRIBS_ARB 0x88AC +#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD +#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE +#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF +#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0 +#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1 +#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2 +#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3 +#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4 +#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5 +#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6 +#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7 +#define GL_MATRIX0_ARB 0x88C0 +#define GL_MATRIX1_ARB 0x88C1 +#define GL_MATRIX2_ARB 0x88C2 +#define GL_MATRIX3_ARB 0x88C3 +#define GL_MATRIX4_ARB 0x88C4 +#define GL_MATRIX5_ARB 0x88C5 +#define GL_MATRIX6_ARB 0x88C6 +#define GL_MATRIX7_ARB 0x88C7 +#define GL_MATRIX8_ARB 0x88C8 +#define GL_MATRIX9_ARB 0x88C9 +#define GL_MATRIX10_ARB 0x88CA +#define GL_MATRIX11_ARB 0x88CB +#define GL_MATRIX12_ARB 0x88CC +#define GL_MATRIX13_ARB 0x88CD +#define GL_MATRIX14_ARB 0x88CE +#define GL_MATRIX15_ARB 0x88CF +#define GL_MATRIX16_ARB 0x88D0 +#define GL_MATRIX17_ARB 0x88D1 +#define GL_MATRIX18_ARB 0x88D2 +#define GL_MATRIX19_ARB 0x88D3 +#define GL_MATRIX20_ARB 0x88D4 +#define GL_MATRIX21_ARB 0x88D5 +#define GL_MATRIX22_ARB 0x88D6 +#define GL_MATRIX23_ARB 0x88D7 +#define GL_MATRIX24_ARB 0x88D8 +#define GL_MATRIX25_ARB 0x88D9 +#define GL_MATRIX26_ARB 0x88DA +#define GL_MATRIX27_ARB 0x88DB +#define GL_MATRIX28_ARB 0x88DC +#define GL_MATRIX29_ARB 0x88DD +#define GL_MATRIX30_ARB 0x88DE +#define GL_MATRIX31_ARB 0x88DF +#endif + +#ifndef GL_ARB_fragment_program +#define GL_FRAGMENT_PROGRAM_ARB 0x8804 +#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805 +#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806 +#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807 +#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808 +#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809 +#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A +#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B +#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C +#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D +#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E +#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F +#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810 +#define GL_MAX_TEXTURE_COORDS_ARB 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872 +#endif + +#ifndef GL_ARB_vertex_buffer_object +#define GL_BUFFER_SIZE_ARB 0x8764 +#define GL_BUFFER_USAGE_ARB 0x8765 +#define GL_ARRAY_BUFFER_ARB 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 +#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895 +#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896 +#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897 +#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898 +#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F +#define GL_READ_ONLY_ARB 0x88B8 +#define GL_WRITE_ONLY_ARB 0x88B9 +#define GL_READ_WRITE_ARB 0x88BA +#define GL_BUFFER_ACCESS_ARB 0x88BB +#define GL_BUFFER_MAPPED_ARB 0x88BC +#define GL_BUFFER_MAP_POINTER_ARB 0x88BD +#define GL_STREAM_DRAW_ARB 0x88E0 +#define GL_STREAM_READ_ARB 0x88E1 +#define GL_STREAM_COPY_ARB 0x88E2 +#define GL_STATIC_DRAW_ARB 0x88E4 +#define GL_STATIC_READ_ARB 0x88E5 +#define GL_STATIC_COPY_ARB 0x88E6 +#define GL_DYNAMIC_DRAW_ARB 0x88E8 +#define GL_DYNAMIC_READ_ARB 0x88E9 +#define GL_DYNAMIC_COPY_ARB 0x88EA +#endif + +#ifndef GL_ARB_occlusion_query +#define GL_QUERY_COUNTER_BITS_ARB 0x8864 +#define GL_CURRENT_QUERY_ARB 0x8865 +#define GL_QUERY_RESULT_ARB 0x8866 +#define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867 +#define GL_SAMPLES_PASSED_ARB 0x8914 +#endif + +#ifndef GL_ARB_shader_objects +#define GL_PROGRAM_OBJECT_ARB 0x8B40 +#define GL_SHADER_OBJECT_ARB 0x8B48 +#define GL_OBJECT_TYPE_ARB 0x8B4E +#define GL_OBJECT_SUBTYPE_ARB 0x8B4F +#define GL_FLOAT_VEC2_ARB 0x8B50 +#define GL_FLOAT_VEC3_ARB 0x8B51 +#define GL_FLOAT_VEC4_ARB 0x8B52 +#define GL_INT_VEC2_ARB 0x8B53 +#define GL_INT_VEC3_ARB 0x8B54 +#define GL_INT_VEC4_ARB 0x8B55 +#define GL_BOOL_ARB 0x8B56 +#define GL_BOOL_VEC2_ARB 0x8B57 +#define GL_BOOL_VEC3_ARB 0x8B58 +#define GL_BOOL_VEC4_ARB 0x8B59 +#define GL_FLOAT_MAT2_ARB 0x8B5A +#define GL_FLOAT_MAT3_ARB 0x8B5B +#define GL_FLOAT_MAT4_ARB 0x8B5C +#define GL_SAMPLER_1D_ARB 0x8B5D +#define GL_SAMPLER_2D_ARB 0x8B5E +#define GL_SAMPLER_3D_ARB 0x8B5F +#define GL_SAMPLER_CUBE_ARB 0x8B60 +#define GL_SAMPLER_1D_SHADOW_ARB 0x8B61 +#define GL_SAMPLER_2D_SHADOW_ARB 0x8B62 +#define GL_SAMPLER_2D_RECT_ARB 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64 +#define GL_OBJECT_DELETE_STATUS_ARB 0x8B80 +#define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81 +#define GL_OBJECT_LINK_STATUS_ARB 0x8B82 +#define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83 +#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84 +#define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85 +#define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86 +#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87 +#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88 +#endif + +#ifndef GL_ARB_vertex_shader +#define GL_VERTEX_SHADER_ARB 0x8B31 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A +#define GL_MAX_VARYING_FLOATS_ARB 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D +#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89 +#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A +#endif + +#ifndef GL_ARB_fragment_shader +#define GL_FRAGMENT_SHADER_ARB 0x8B30 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B +#endif + +#ifndef GL_ARB_shading_language_100 +#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C +#endif + +#ifndef GL_ARB_texture_non_power_of_two +#endif + +#ifndef GL_ARB_point_sprite +#define GL_POINT_SPRITE_ARB 0x8861 +#define GL_COORD_REPLACE_ARB 0x8862 +#endif + +#ifndef GL_ARB_fragment_program_shadow +#endif + +#ifndef GL_ARB_draw_buffers +#define GL_MAX_DRAW_BUFFERS_ARB 0x8824 +#define GL_DRAW_BUFFER0_ARB 0x8825 +#define GL_DRAW_BUFFER1_ARB 0x8826 +#define GL_DRAW_BUFFER2_ARB 0x8827 +#define GL_DRAW_BUFFER3_ARB 0x8828 +#define GL_DRAW_BUFFER4_ARB 0x8829 +#define GL_DRAW_BUFFER5_ARB 0x882A +#define GL_DRAW_BUFFER6_ARB 0x882B +#define GL_DRAW_BUFFER7_ARB 0x882C +#define GL_DRAW_BUFFER8_ARB 0x882D +#define GL_DRAW_BUFFER9_ARB 0x882E +#define GL_DRAW_BUFFER10_ARB 0x882F +#define GL_DRAW_BUFFER11_ARB 0x8830 +#define GL_DRAW_BUFFER12_ARB 0x8831 +#define GL_DRAW_BUFFER13_ARB 0x8832 +#define GL_DRAW_BUFFER14_ARB 0x8833 +#define GL_DRAW_BUFFER15_ARB 0x8834 +#endif + +#ifndef GL_ARB_texture_rectangle +#define GL_TEXTURE_RECTANGLE_ARB 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 +#endif + +#ifndef GL_ARB_color_buffer_float +#define GL_RGBA_FLOAT_MODE_ARB 0x8820 +#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A +#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B +#define GL_CLAMP_READ_COLOR_ARB 0x891C +#define GL_FIXED_ONLY_ARB 0x891D +#endif + +#ifndef GL_ARB_half_float_pixel +#define GL_HALF_FLOAT_ARB 0x140B +#endif + +#ifndef GL_ARB_texture_float +#define GL_TEXTURE_RED_TYPE_ARB 0x8C10 +#define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11 +#define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13 +#define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14 +#define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15 +#define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16 +#define GL_UNSIGNED_NORMALIZED_ARB 0x8C17 +#define GL_RGBA32F_ARB 0x8814 +#define GL_RGB32F_ARB 0x8815 +#define GL_ALPHA32F_ARB 0x8816 +#define GL_INTENSITY32F_ARB 0x8817 +#define GL_LUMINANCE32F_ARB 0x8818 +#define GL_LUMINANCE_ALPHA32F_ARB 0x8819 +#define GL_RGBA16F_ARB 0x881A +#define GL_RGB16F_ARB 0x881B +#define GL_ALPHA16F_ARB 0x881C +#define GL_INTENSITY16F_ARB 0x881D +#define GL_LUMINANCE16F_ARB 0x881E +#define GL_LUMINANCE_ALPHA16F_ARB 0x881F +#endif + +#ifndef GL_ARB_pixel_buffer_object +#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF +#endif + +#ifndef GL_ARB_depth_buffer_float +#define GL_DEPTH_COMPONENT32F 0x8CAC +#define GL_DEPTH32F_STENCIL8 0x8CAD +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD +#endif + +#ifndef GL_ARB_draw_instanced +#endif + +#ifndef GL_ARB_framebuffer_object +#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 +#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 +#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 +#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 +#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 +#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 +#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 +#define GL_FRAMEBUFFER_DEFAULT 0x8218 +#define GL_FRAMEBUFFER_UNDEFINED 0x8219 +#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A +#define GL_INDEX 0x8222 +#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 +#define GL_DEPTH_STENCIL 0x84F9 +#define GL_UNSIGNED_INT_24_8 0x84FA +#define GL_DEPTH24_STENCIL8 0x88F0 +#define GL_TEXTURE_STENCIL_SIZE 0x88F1 +#define GL_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_DRAW_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING +#define GL_RENDERBUFFER_BINDING 0x8CA7 +#define GL_READ_FRAMEBUFFER 0x8CA8 +#define GL_DRAW_FRAMEBUFFER 0x8CA9 +#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA +#define GL_RENDERBUFFER_SAMPLES 0x8CAB +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_COLOR_ATTACHMENT1 0x8CE1 +#define GL_COLOR_ATTACHMENT2 0x8CE2 +#define GL_COLOR_ATTACHMENT3 0x8CE3 +#define GL_COLOR_ATTACHMENT4 0x8CE4 +#define GL_COLOR_ATTACHMENT5 0x8CE5 +#define GL_COLOR_ATTACHMENT6 0x8CE6 +#define GL_COLOR_ATTACHMENT7 0x8CE7 +#define GL_COLOR_ATTACHMENT8 0x8CE8 +#define GL_COLOR_ATTACHMENT9 0x8CE9 +#define GL_COLOR_ATTACHMENT10 0x8CEA +#define GL_COLOR_ATTACHMENT11 0x8CEB +#define GL_COLOR_ATTACHMENT12 0x8CEC +#define GL_COLOR_ATTACHMENT13 0x8CED +#define GL_COLOR_ATTACHMENT14 0x8CEE +#define GL_COLOR_ATTACHMENT15 0x8CEF +#define GL_DEPTH_ATTACHMENT 0x8D00 +#define GL_STENCIL_ATTACHMENT 0x8D20 +#define GL_FRAMEBUFFER 0x8D40 +#define GL_RENDERBUFFER 0x8D41 +#define GL_RENDERBUFFER_WIDTH 0x8D42 +#define GL_RENDERBUFFER_HEIGHT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 +#define GL_STENCIL_INDEX1 0x8D46 +#define GL_STENCIL_INDEX4 0x8D47 +#define GL_STENCIL_INDEX8 0x8D48 +#define GL_STENCIL_INDEX16 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 +#define GL_MAX_SAMPLES 0x8D57 +#endif + +#ifndef GL_ARB_framebuffer_sRGB +#define GL_FRAMEBUFFER_SRGB 0x8DB9 +#endif + +#ifndef GL_ARB_geometry_shader4 +#define GL_LINES_ADJACENCY_ARB 0x000A +#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B +#define GL_TRIANGLES_ADJACENCY_ARB 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D +#define GL_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9 +#define GL_GEOMETRY_SHADER_ARB 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA +#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB +#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC +#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD +#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1 +#endif + +#ifndef GL_ARB_half_float_vertex +#define GL_HALF_FLOAT 0x140B +#endif + +#ifndef GL_ARB_instanced_arrays +#endif + +#ifndef GL_ARB_map_buffer_range +#define GL_MAP_READ_BIT 0x0001 +#define GL_MAP_WRITE_BIT 0x0002 +#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 +#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 +#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 +#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 +#endif + +#ifndef GL_ARB_texture_buffer_object +#define GL_TEXTURE_BUFFER_ARB 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E +#endif + +#ifndef GL_ARB_texture_compression_rgtc +#define GL_COMPRESSED_RED_RGTC1 0x8DBB +#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC +#define GL_COMPRESSED_RG_RGTC2 0x8DBD +#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE +#endif + +#ifndef GL_ARB_texture_rg +#define GL_RG 0x8227 +#define GL_RG_INTEGER 0x8228 +#define GL_R8 0x8229 +#define GL_R16 0x822A +#define GL_RG8 0x822B +#define GL_RG16 0x822C +#define GL_R16F 0x822D +#define GL_R32F 0x822E +#define GL_RG16F 0x822F +#define GL_RG32F 0x8230 +#define GL_R8I 0x8231 +#define GL_R8UI 0x8232 +#define GL_R16I 0x8233 +#define GL_R16UI 0x8234 +#define GL_R32I 0x8235 +#define GL_R32UI 0x8236 +#define GL_RG8I 0x8237 +#define GL_RG8UI 0x8238 +#define GL_RG16I 0x8239 +#define GL_RG16UI 0x823A +#define GL_RG32I 0x823B +#define GL_RG32UI 0x823C +#endif + +#ifndef GL_ARB_vertex_array_object +#define GL_VERTEX_ARRAY_BINDING 0x85B5 +#endif + +#ifndef GL_EXT_abgr +#define GL_ABGR_EXT 0x8000 +#endif + +#ifndef GL_EXT_blend_color +#define GL_CONSTANT_COLOR_EXT 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002 +#define GL_CONSTANT_ALPHA_EXT 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004 +#define GL_BLEND_COLOR_EXT 0x8005 +#endif + +#ifndef GL_EXT_polygon_offset +#define GL_POLYGON_OFFSET_EXT 0x8037 +#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 +#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 +#endif + +#ifndef GL_EXT_texture +#define GL_ALPHA4_EXT 0x803B +#define GL_ALPHA8_EXT 0x803C +#define GL_ALPHA12_EXT 0x803D +#define GL_ALPHA16_EXT 0x803E +#define GL_LUMINANCE4_EXT 0x803F +#define GL_LUMINANCE8_EXT 0x8040 +#define GL_LUMINANCE12_EXT 0x8041 +#define GL_LUMINANCE16_EXT 0x8042 +#define GL_LUMINANCE4_ALPHA4_EXT 0x8043 +#define GL_LUMINANCE6_ALPHA2_EXT 0x8044 +#define GL_LUMINANCE8_ALPHA8_EXT 0x8045 +#define GL_LUMINANCE12_ALPHA4_EXT 0x8046 +#define GL_LUMINANCE12_ALPHA12_EXT 0x8047 +#define GL_LUMINANCE16_ALPHA16_EXT 0x8048 +#define GL_INTENSITY_EXT 0x8049 +#define GL_INTENSITY4_EXT 0x804A +#define GL_INTENSITY8_EXT 0x804B +#define GL_INTENSITY12_EXT 0x804C +#define GL_INTENSITY16_EXT 0x804D +#define GL_RGB2_EXT 0x804E +#define GL_RGB4_EXT 0x804F +#define GL_RGB5_EXT 0x8050 +#define GL_RGB8_EXT 0x8051 +#define GL_RGB10_EXT 0x8052 +#define GL_RGB12_EXT 0x8053 +#define GL_RGB16_EXT 0x8054 +#define GL_RGBA2_EXT 0x8055 +#define GL_RGBA4_EXT 0x8056 +#define GL_RGB5_A1_EXT 0x8057 +#define GL_RGBA8_EXT 0x8058 +#define GL_RGB10_A2_EXT 0x8059 +#define GL_RGBA12_EXT 0x805A +#define GL_RGBA16_EXT 0x805B +#define GL_TEXTURE_RED_SIZE_EXT 0x805C +#define GL_TEXTURE_GREEN_SIZE_EXT 0x805D +#define GL_TEXTURE_BLUE_SIZE_EXT 0x805E +#define GL_TEXTURE_ALPHA_SIZE_EXT 0x805F +#define GL_TEXTURE_LUMINANCE_SIZE_EXT 0x8060 +#define GL_TEXTURE_INTENSITY_SIZE_EXT 0x8061 +#define GL_REPLACE_EXT 0x8062 +#define GL_PROXY_TEXTURE_1D_EXT 0x8063 +#define GL_PROXY_TEXTURE_2D_EXT 0x8064 +#define GL_TEXTURE_TOO_LARGE_EXT 0x8065 +#endif + +#ifndef GL_EXT_texture3D +#define GL_PACK_SKIP_IMAGES_EXT 0x806B +#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C +#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D +#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E +#define GL_TEXTURE_3D_EXT 0x806F +#define GL_PROXY_TEXTURE_3D_EXT 0x8070 +#define GL_TEXTURE_DEPTH_EXT 0x8071 +#define GL_TEXTURE_WRAP_R_EXT 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073 +#endif + +#ifndef GL_SGIS_texture_filter4 +#define GL_FILTER4_SGIS 0x8146 +#define GL_TEXTURE_FILTER4_SIZE_SGIS 0x8147 +#endif + +#ifndef GL_EXT_subtexture +#endif + +#ifndef GL_EXT_copy_texture +#endif + +#ifndef GL_EXT_histogram +#define GL_HISTOGRAM_EXT 0x8024 +#define GL_PROXY_HISTOGRAM_EXT 0x8025 +#define GL_HISTOGRAM_WIDTH_EXT 0x8026 +#define GL_HISTOGRAM_FORMAT_EXT 0x8027 +#define GL_HISTOGRAM_RED_SIZE_EXT 0x8028 +#define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029 +#define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A +#define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B +#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C +#define GL_HISTOGRAM_SINK_EXT 0x802D +#define GL_MINMAX_EXT 0x802E +#define GL_MINMAX_FORMAT_EXT 0x802F +#define GL_MINMAX_SINK_EXT 0x8030 +#define GL_TABLE_TOO_LARGE_EXT 0x8031 +#endif + +#ifndef GL_EXT_convolution +#define GL_CONVOLUTION_1D_EXT 0x8010 +#define GL_CONVOLUTION_2D_EXT 0x8011 +#define GL_SEPARABLE_2D_EXT 0x8012 +#define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013 +#define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014 +#define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015 +#define GL_REDUCE_EXT 0x8016 +#define GL_CONVOLUTION_FORMAT_EXT 0x8017 +#define GL_CONVOLUTION_WIDTH_EXT 0x8018 +#define GL_CONVOLUTION_HEIGHT_EXT 0x8019 +#define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A +#define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B +#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C +#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D +#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E +#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F +#define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020 +#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021 +#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022 +#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023 +#endif + +#ifndef GL_SGI_color_matrix +#define GL_COLOR_MATRIX_SGI 0x80B1 +#define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2 +#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3 +#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4 +#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5 +#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6 +#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7 +#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8 +#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9 +#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB +#endif + +#ifndef GL_SGI_color_table +#define GL_COLOR_TABLE_SGI 0x80D0 +#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1 +#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2 +#define GL_PROXY_COLOR_TABLE_SGI 0x80D3 +#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4 +#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5 +#define GL_COLOR_TABLE_SCALE_SGI 0x80D6 +#define GL_COLOR_TABLE_BIAS_SGI 0x80D7 +#define GL_COLOR_TABLE_FORMAT_SGI 0x80D8 +#define GL_COLOR_TABLE_WIDTH_SGI 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF +#endif + +#ifndef GL_SGIS_pixel_texture +#define GL_PIXEL_TEXTURE_SGIS 0x8353 +#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354 +#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355 +#define GL_PIXEL_GROUP_COLOR_SGIS 0x8356 +#endif + +#ifndef GL_SGIX_pixel_texture +#define GL_PIXEL_TEX_GEN_SGIX 0x8139 +#define GL_PIXEL_TEX_GEN_MODE_SGIX 0x832B +#endif + +#ifndef GL_SGIS_texture4D +#define GL_PACK_SKIP_VOLUMES_SGIS 0x8130 +#define GL_PACK_IMAGE_DEPTH_SGIS 0x8131 +#define GL_UNPACK_SKIP_VOLUMES_SGIS 0x8132 +#define GL_UNPACK_IMAGE_DEPTH_SGIS 0x8133 +#define GL_TEXTURE_4D_SGIS 0x8134 +#define GL_PROXY_TEXTURE_4D_SGIS 0x8135 +#define GL_TEXTURE_4DSIZE_SGIS 0x8136 +#define GL_TEXTURE_WRAP_Q_SGIS 0x8137 +#define GL_MAX_4D_TEXTURE_SIZE_SGIS 0x8138 +#define GL_TEXTURE_4D_BINDING_SGIS 0x814F +#endif + +#ifndef GL_SGI_texture_color_table +#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC +#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD +#endif + +#ifndef GL_EXT_cmyka +#define GL_CMYK_EXT 0x800C +#define GL_CMYKA_EXT 0x800D +#define GL_PACK_CMYK_HINT_EXT 0x800E +#define GL_UNPACK_CMYK_HINT_EXT 0x800F +#endif + +#ifndef GL_EXT_texture_object +#define GL_TEXTURE_PRIORITY_EXT 0x8066 +#define GL_TEXTURE_RESIDENT_EXT 0x8067 +#define GL_TEXTURE_1D_BINDING_EXT 0x8068 +#define GL_TEXTURE_2D_BINDING_EXT 0x8069 +#define GL_TEXTURE_3D_BINDING_EXT 0x806A +#endif + +#ifndef GL_SGIS_detail_texture +#define GL_DETAIL_TEXTURE_2D_SGIS 0x8095 +#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096 +#define GL_LINEAR_DETAIL_SGIS 0x8097 +#define GL_LINEAR_DETAIL_ALPHA_SGIS 0x8098 +#define GL_LINEAR_DETAIL_COLOR_SGIS 0x8099 +#define GL_DETAIL_TEXTURE_LEVEL_SGIS 0x809A +#define GL_DETAIL_TEXTURE_MODE_SGIS 0x809B +#define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C +#endif + +#ifndef GL_SGIS_sharpen_texture +#define GL_LINEAR_SHARPEN_SGIS 0x80AD +#define GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE +#define GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF +#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0 +#endif + +#ifndef GL_EXT_packed_pixels +#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036 +#endif + +#ifndef GL_SGIS_texture_lod +#define GL_TEXTURE_MIN_LOD_SGIS 0x813A +#define GL_TEXTURE_MAX_LOD_SGIS 0x813B +#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C +#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D +#endif + +#ifndef GL_SGIS_multisample +#define GL_MULTISAMPLE_SGIS 0x809D +#define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F +#define GL_SAMPLE_MASK_SGIS 0x80A0 +#define GL_1PASS_SGIS 0x80A1 +#define GL_2PASS_0_SGIS 0x80A2 +#define GL_2PASS_1_SGIS 0x80A3 +#define GL_4PASS_0_SGIS 0x80A4 +#define GL_4PASS_1_SGIS 0x80A5 +#define GL_4PASS_2_SGIS 0x80A6 +#define GL_4PASS_3_SGIS 0x80A7 +#define GL_SAMPLE_BUFFERS_SGIS 0x80A8 +#define GL_SAMPLES_SGIS 0x80A9 +#define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA +#define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB +#define GL_SAMPLE_PATTERN_SGIS 0x80AC +#endif + +#ifndef GL_EXT_rescale_normal +#define GL_RESCALE_NORMAL_EXT 0x803A +#endif + +#ifndef GL_EXT_vertex_array +#define GL_VERTEX_ARRAY_EXT 0x8074 +#define GL_NORMAL_ARRAY_EXT 0x8075 +#define GL_COLOR_ARRAY_EXT 0x8076 +#define GL_INDEX_ARRAY_EXT 0x8077 +#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 +#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 +#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A +#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B +#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C +#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D +#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E +#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F +#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 +#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 +#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 +#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 +#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 +#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 +#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 +#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 +#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A +#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B +#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C +#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D +#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E +#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F +#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 +#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 +#endif + +#ifndef GL_EXT_misc_attribute +#endif + +#ifndef GL_SGIS_generate_mipmap +#define GL_GENERATE_MIPMAP_SGIS 0x8191 +#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 +#endif + +#ifndef GL_SGIX_clipmap +#define GL_LINEAR_CLIPMAP_LINEAR_SGIX 0x8170 +#define GL_TEXTURE_CLIPMAP_CENTER_SGIX 0x8171 +#define GL_TEXTURE_CLIPMAP_FRAME_SGIX 0x8172 +#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX 0x8173 +#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174 +#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175 +#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX 0x8176 +#define GL_MAX_CLIPMAP_DEPTH_SGIX 0x8177 +#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178 +#define GL_NEAREST_CLIPMAP_NEAREST_SGIX 0x844D +#define GL_NEAREST_CLIPMAP_LINEAR_SGIX 0x844E +#define GL_LINEAR_CLIPMAP_NEAREST_SGIX 0x844F +#endif + +#ifndef GL_SGIX_shadow +#define GL_TEXTURE_COMPARE_SGIX 0x819A +#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B +#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C +#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D +#endif + +#ifndef GL_SGIS_texture_edge_clamp +#define GL_CLAMP_TO_EDGE_SGIS 0x812F +#endif + +#ifndef GL_SGIS_texture_border_clamp +#define GL_CLAMP_TO_BORDER_SGIS 0x812D +#endif + +#ifndef GL_EXT_blend_minmax +#define GL_FUNC_ADD_EXT 0x8006 +#define GL_MIN_EXT 0x8007 +#define GL_MAX_EXT 0x8008 +#define GL_BLEND_EQUATION_EXT 0x8009 +#endif + +#ifndef GL_EXT_blend_subtract +#define GL_FUNC_SUBTRACT_EXT 0x800A +#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B +#endif + +#ifndef GL_EXT_blend_logic_op +#endif + +#ifndef GL_SGIX_interlace +#define GL_INTERLACE_SGIX 0x8094 +#endif + +#ifndef GL_SGIX_pixel_tiles +#define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E +#define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F +#define GL_PIXEL_TILE_WIDTH_SGIX 0x8140 +#define GL_PIXEL_TILE_HEIGHT_SGIX 0x8141 +#define GL_PIXEL_TILE_GRID_WIDTH_SGIX 0x8142 +#define GL_PIXEL_TILE_GRID_HEIGHT_SGIX 0x8143 +#define GL_PIXEL_TILE_GRID_DEPTH_SGIX 0x8144 +#define GL_PIXEL_TILE_CACHE_SIZE_SGIX 0x8145 +#endif + +#ifndef GL_SGIS_texture_select +#define GL_DUAL_ALPHA4_SGIS 0x8110 +#define GL_DUAL_ALPHA8_SGIS 0x8111 +#define GL_DUAL_ALPHA12_SGIS 0x8112 +#define GL_DUAL_ALPHA16_SGIS 0x8113 +#define GL_DUAL_LUMINANCE4_SGIS 0x8114 +#define GL_DUAL_LUMINANCE8_SGIS 0x8115 +#define GL_DUAL_LUMINANCE12_SGIS 0x8116 +#define GL_DUAL_LUMINANCE16_SGIS 0x8117 +#define GL_DUAL_INTENSITY4_SGIS 0x8118 +#define GL_DUAL_INTENSITY8_SGIS 0x8119 +#define GL_DUAL_INTENSITY12_SGIS 0x811A +#define GL_DUAL_INTENSITY16_SGIS 0x811B +#define GL_DUAL_LUMINANCE_ALPHA4_SGIS 0x811C +#define GL_DUAL_LUMINANCE_ALPHA8_SGIS 0x811D +#define GL_QUAD_ALPHA4_SGIS 0x811E +#define GL_QUAD_ALPHA8_SGIS 0x811F +#define GL_QUAD_LUMINANCE4_SGIS 0x8120 +#define GL_QUAD_LUMINANCE8_SGIS 0x8121 +#define GL_QUAD_INTENSITY4_SGIS 0x8122 +#define GL_QUAD_INTENSITY8_SGIS 0x8123 +#define GL_DUAL_TEXTURE_SELECT_SGIS 0x8124 +#define GL_QUAD_TEXTURE_SELECT_SGIS 0x8125 +#endif + +#ifndef GL_SGIX_sprite +#define GL_SPRITE_SGIX 0x8148 +#define GL_SPRITE_MODE_SGIX 0x8149 +#define GL_SPRITE_AXIS_SGIX 0x814A +#define GL_SPRITE_TRANSLATION_SGIX 0x814B +#define GL_SPRITE_AXIAL_SGIX 0x814C +#define GL_SPRITE_OBJECT_ALIGNED_SGIX 0x814D +#define GL_SPRITE_EYE_ALIGNED_SGIX 0x814E +#endif + +#ifndef GL_SGIX_texture_multi_buffer +#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E +#endif + +#ifndef GL_EXT_point_parameters +#define GL_POINT_SIZE_MIN_EXT 0x8126 +#define GL_POINT_SIZE_MAX_EXT 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 +#define GL_DISTANCE_ATTENUATION_EXT 0x8129 +#endif + +#ifndef GL_SGIS_point_parameters +#define GL_POINT_SIZE_MIN_SGIS 0x8126 +#define GL_POINT_SIZE_MAX_SGIS 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128 +#define GL_DISTANCE_ATTENUATION_SGIS 0x8129 +#endif + +#ifndef GL_SGIX_instruments +#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180 +#define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181 +#endif + +#ifndef GL_SGIX_texture_scale_bias +#define GL_POST_TEXTURE_FILTER_BIAS_SGIX 0x8179 +#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A +#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B +#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C +#endif + +#ifndef GL_SGIX_framezoom +#define GL_FRAMEZOOM_SGIX 0x818B +#define GL_FRAMEZOOM_FACTOR_SGIX 0x818C +#define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D +#endif + +#ifndef GL_SGIX_tag_sample_buffer +#endif + +#ifndef GL_FfdMaskSGIX +#define GL_TEXTURE_DEFORMATION_BIT_SGIX 0x00000001 +#define GL_GEOMETRY_DEFORMATION_BIT_SGIX 0x00000002 +#endif + +#ifndef GL_SGIX_polynomial_ffd +#define GL_GEOMETRY_DEFORMATION_SGIX 0x8194 +#define GL_TEXTURE_DEFORMATION_SGIX 0x8195 +#define GL_DEFORMATIONS_MASK_SGIX 0x8196 +#define GL_MAX_DEFORMATION_ORDER_SGIX 0x8197 +#endif + +#ifndef GL_SGIX_reference_plane +#define GL_REFERENCE_PLANE_SGIX 0x817D +#define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E +#endif + +#ifndef GL_SGIX_flush_raster +#endif + +#ifndef GL_SGIX_depth_texture +#define GL_DEPTH_COMPONENT16_SGIX 0x81A5 +#define GL_DEPTH_COMPONENT24_SGIX 0x81A6 +#define GL_DEPTH_COMPONENT32_SGIX 0x81A7 +#endif + +#ifndef GL_SGIS_fog_function +#define GL_FOG_FUNC_SGIS 0x812A +#define GL_FOG_FUNC_POINTS_SGIS 0x812B +#define GL_MAX_FOG_FUNC_POINTS_SGIS 0x812C +#endif + +#ifndef GL_SGIX_fog_offset +#define GL_FOG_OFFSET_SGIX 0x8198 +#define GL_FOG_OFFSET_VALUE_SGIX 0x8199 +#endif + +#ifndef GL_HP_image_transform +#define GL_IMAGE_SCALE_X_HP 0x8155 +#define GL_IMAGE_SCALE_Y_HP 0x8156 +#define GL_IMAGE_TRANSLATE_X_HP 0x8157 +#define GL_IMAGE_TRANSLATE_Y_HP 0x8158 +#define GL_IMAGE_ROTATE_ANGLE_HP 0x8159 +#define GL_IMAGE_ROTATE_ORIGIN_X_HP 0x815A +#define GL_IMAGE_ROTATE_ORIGIN_Y_HP 0x815B +#define GL_IMAGE_MAG_FILTER_HP 0x815C +#define GL_IMAGE_MIN_FILTER_HP 0x815D +#define GL_IMAGE_CUBIC_WEIGHT_HP 0x815E +#define GL_CUBIC_HP 0x815F +#define GL_AVERAGE_HP 0x8160 +#define GL_IMAGE_TRANSFORM_2D_HP 0x8161 +#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162 +#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163 +#endif + +#ifndef GL_HP_convolution_border_modes +#define GL_IGNORE_BORDER_HP 0x8150 +#define GL_CONSTANT_BORDER_HP 0x8151 +#define GL_REPLICATE_BORDER_HP 0x8153 +#define GL_CONVOLUTION_BORDER_COLOR_HP 0x8154 +#endif + +#ifndef GL_INGR_palette_buffer +#endif + +#ifndef GL_SGIX_texture_add_env +#define GL_TEXTURE_ENV_BIAS_SGIX 0x80BE +#endif + +#ifndef GL_EXT_color_subtable +#endif + +#ifndef GL_PGI_vertex_hints +#define GL_VERTEX_DATA_HINT_PGI 0x1A22A +#define GL_VERTEX_CONSISTENT_HINT_PGI 0x1A22B +#define GL_MATERIAL_SIDE_HINT_PGI 0x1A22C +#define GL_MAX_VERTEX_HINT_PGI 0x1A22D +#define GL_COLOR3_BIT_PGI 0x00010000 +#define GL_COLOR4_BIT_PGI 0x00020000 +#define GL_EDGEFLAG_BIT_PGI 0x00040000 +#define GL_INDEX_BIT_PGI 0x00080000 +#define GL_MAT_AMBIENT_BIT_PGI 0x00100000 +#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000 +#define GL_MAT_DIFFUSE_BIT_PGI 0x00400000 +#define GL_MAT_EMISSION_BIT_PGI 0x00800000 +#define GL_MAT_COLOR_INDEXES_BIT_PGI 0x01000000 +#define GL_MAT_SHININESS_BIT_PGI 0x02000000 +#define GL_MAT_SPECULAR_BIT_PGI 0x04000000 +#define GL_NORMAL_BIT_PGI 0x08000000 +#define GL_TEXCOORD1_BIT_PGI 0x10000000 +#define GL_TEXCOORD2_BIT_PGI 0x20000000 +#define GL_TEXCOORD3_BIT_PGI 0x40000000 +#define GL_TEXCOORD4_BIT_PGI 0x80000000 +#define GL_VERTEX23_BIT_PGI 0x00000004 +#define GL_VERTEX4_BIT_PGI 0x00000008 +#endif + +#ifndef GL_PGI_misc_hints +#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 0x1A1F8 +#define GL_CONSERVE_MEMORY_HINT_PGI 0x1A1FD +#define GL_RECLAIM_MEMORY_HINT_PGI 0x1A1FE +#define GL_NATIVE_GRAPHICS_HANDLE_PGI 0x1A202 +#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203 +#define GL_NATIVE_GRAPHICS_END_HINT_PGI 0x1A204 +#define GL_ALWAYS_FAST_HINT_PGI 0x1A20C +#define GL_ALWAYS_SOFT_HINT_PGI 0x1A20D +#define GL_ALLOW_DRAW_OBJ_HINT_PGI 0x1A20E +#define GL_ALLOW_DRAW_WIN_HINT_PGI 0x1A20F +#define GL_ALLOW_DRAW_FRG_HINT_PGI 0x1A210 +#define GL_ALLOW_DRAW_MEM_HINT_PGI 0x1A211 +#define GL_STRICT_DEPTHFUNC_HINT_PGI 0x1A216 +#define GL_STRICT_LIGHTING_HINT_PGI 0x1A217 +#define GL_STRICT_SCISSOR_HINT_PGI 0x1A218 +#define GL_FULL_STIPPLE_HINT_PGI 0x1A219 +#define GL_CLIP_NEAR_HINT_PGI 0x1A220 +#define GL_CLIP_FAR_HINT_PGI 0x1A221 +#define GL_WIDE_LINE_HINT_PGI 0x1A222 +#define GL_BACK_NORMALS_HINT_PGI 0x1A223 +#endif + +#ifndef GL_EXT_paletted_texture +#define GL_COLOR_INDEX1_EXT 0x80E2 +#define GL_COLOR_INDEX2_EXT 0x80E3 +#define GL_COLOR_INDEX4_EXT 0x80E4 +#define GL_COLOR_INDEX8_EXT 0x80E5 +#define GL_COLOR_INDEX12_EXT 0x80E6 +#define GL_COLOR_INDEX16_EXT 0x80E7 +#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED +#endif + +#ifndef GL_EXT_clip_volume_hint +#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0 +#endif + +#ifndef GL_SGIX_list_priority +#define GL_LIST_PRIORITY_SGIX 0x8182 +#endif + +#ifndef GL_SGIX_ir_instrument1 +#define GL_IR_INSTRUMENT1_SGIX 0x817F +#endif + +#ifndef GL_SGIX_calligraphic_fragment +#define GL_CALLIGRAPHIC_FRAGMENT_SGIX 0x8183 +#endif + +#ifndef GL_SGIX_texture_lod_bias +#define GL_TEXTURE_LOD_BIAS_S_SGIX 0x818E +#define GL_TEXTURE_LOD_BIAS_T_SGIX 0x818F +#define GL_TEXTURE_LOD_BIAS_R_SGIX 0x8190 +#endif + +#ifndef GL_SGIX_shadow_ambient +#define GL_SHADOW_AMBIENT_SGIX 0x80BF +#endif + +#ifndef GL_EXT_index_texture +#endif + +#ifndef GL_EXT_index_material +#define GL_INDEX_MATERIAL_EXT 0x81B8 +#define GL_INDEX_MATERIAL_PARAMETER_EXT 0x81B9 +#define GL_INDEX_MATERIAL_FACE_EXT 0x81BA +#endif + +#ifndef GL_EXT_index_func +#define GL_INDEX_TEST_EXT 0x81B5 +#define GL_INDEX_TEST_FUNC_EXT 0x81B6 +#define GL_INDEX_TEST_REF_EXT 0x81B7 +#endif + +#ifndef GL_EXT_index_array_formats +#define GL_IUI_V2F_EXT 0x81AD +#define GL_IUI_V3F_EXT 0x81AE +#define GL_IUI_N3F_V2F_EXT 0x81AF +#define GL_IUI_N3F_V3F_EXT 0x81B0 +#define GL_T2F_IUI_V2F_EXT 0x81B1 +#define GL_T2F_IUI_V3F_EXT 0x81B2 +#define GL_T2F_IUI_N3F_V2F_EXT 0x81B3 +#define GL_T2F_IUI_N3F_V3F_EXT 0x81B4 +#endif + +#ifndef GL_EXT_compiled_vertex_array +#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8 +#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9 +#endif + +#ifndef GL_EXT_cull_vertex +#define GL_CULL_VERTEX_EXT 0x81AA +#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB +#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC +#endif + +#ifndef GL_SGIX_ycrcb +#define GL_YCRCB_422_SGIX 0x81BB +#define GL_YCRCB_444_SGIX 0x81BC +#endif + +#ifndef GL_SGIX_fragment_lighting +#define GL_FRAGMENT_LIGHTING_SGIX 0x8400 +#define GL_FRAGMENT_COLOR_MATERIAL_SGIX 0x8401 +#define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402 +#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403 +#define GL_MAX_FRAGMENT_LIGHTS_SGIX 0x8404 +#define GL_MAX_ACTIVE_LIGHTS_SGIX 0x8405 +#define GL_CURRENT_RASTER_NORMAL_SGIX 0x8406 +#define GL_LIGHT_ENV_MODE_SGIX 0x8407 +#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408 +#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409 +#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A +#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B +#define GL_FRAGMENT_LIGHT0_SGIX 0x840C +#define GL_FRAGMENT_LIGHT1_SGIX 0x840D +#define GL_FRAGMENT_LIGHT2_SGIX 0x840E +#define GL_FRAGMENT_LIGHT3_SGIX 0x840F +#define GL_FRAGMENT_LIGHT4_SGIX 0x8410 +#define GL_FRAGMENT_LIGHT5_SGIX 0x8411 +#define GL_FRAGMENT_LIGHT6_SGIX 0x8412 +#define GL_FRAGMENT_LIGHT7_SGIX 0x8413 +#endif + +#ifndef GL_IBM_rasterpos_clip +#define GL_RASTER_POSITION_UNCLIPPED_IBM 0x19262 +#endif + +#ifndef GL_HP_texture_lighting +#define GL_TEXTURE_LIGHTING_MODE_HP 0x8167 +#define GL_TEXTURE_POST_SPECULAR_HP 0x8168 +#define GL_TEXTURE_PRE_SPECULAR_HP 0x8169 +#endif + +#ifndef GL_EXT_draw_range_elements +#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 +#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 +#endif + +#ifndef GL_WIN_phong_shading +#define GL_PHONG_WIN 0x80EA +#define GL_PHONG_HINT_WIN 0x80EB +#endif + +#ifndef GL_WIN_specular_fog +#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC +#endif + +#ifndef GL_EXT_light_texture +#define GL_FRAGMENT_MATERIAL_EXT 0x8349 +#define GL_FRAGMENT_NORMAL_EXT 0x834A +#define GL_FRAGMENT_COLOR_EXT 0x834C +#define GL_ATTENUATION_EXT 0x834D +#define GL_SHADOW_ATTENUATION_EXT 0x834E +#define GL_TEXTURE_APPLICATION_MODE_EXT 0x834F +#define GL_TEXTURE_LIGHT_EXT 0x8350 +#define GL_TEXTURE_MATERIAL_FACE_EXT 0x8351 +#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352 +/* reuse GL_FRAGMENT_DEPTH_EXT */ +#endif + +#ifndef GL_SGIX_blend_alpha_minmax +#define GL_ALPHA_MIN_SGIX 0x8320 +#define GL_ALPHA_MAX_SGIX 0x8321 +#endif + +#ifndef GL_SGIX_impact_pixel_texture +#define GL_PIXEL_TEX_GEN_Q_CEILING_SGIX 0x8184 +#define GL_PIXEL_TEX_GEN_Q_ROUND_SGIX 0x8185 +#define GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX 0x8186 +#define GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX 0x8187 +#define GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX 0x8188 +#define GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX 0x8189 +#define GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX 0x818A +#endif + +#ifndef GL_EXT_bgra +#define GL_BGR_EXT 0x80E0 +#define GL_BGRA_EXT 0x80E1 +#endif + +#ifndef GL_SGIX_async +#define GL_ASYNC_MARKER_SGIX 0x8329 +#endif + +#ifndef GL_SGIX_async_pixel +#define GL_ASYNC_TEX_IMAGE_SGIX 0x835C +#define GL_ASYNC_DRAW_PIXELS_SGIX 0x835D +#define GL_ASYNC_READ_PIXELS_SGIX 0x835E +#define GL_MAX_ASYNC_TEX_IMAGE_SGIX 0x835F +#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX 0x8360 +#define GL_MAX_ASYNC_READ_PIXELS_SGIX 0x8361 +#endif + +#ifndef GL_SGIX_async_histogram +#define GL_ASYNC_HISTOGRAM_SGIX 0x832C +#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D +#endif + +#ifndef GL_INTEL_texture_scissor +#endif + +#ifndef GL_INTEL_parallel_arrays +#define GL_PARALLEL_ARRAYS_INTEL 0x83F4 +#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5 +#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6 +#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7 +#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8 +#endif + +#ifndef GL_HP_occlusion_test +#define GL_OCCLUSION_TEST_HP 0x8165 +#define GL_OCCLUSION_TEST_RESULT_HP 0x8166 +#endif + +#ifndef GL_EXT_pixel_transform +#define GL_PIXEL_TRANSFORM_2D_EXT 0x8330 +#define GL_PIXEL_MAG_FILTER_EXT 0x8331 +#define GL_PIXEL_MIN_FILTER_EXT 0x8332 +#define GL_PIXEL_CUBIC_WEIGHT_EXT 0x8333 +#define GL_CUBIC_EXT 0x8334 +#define GL_AVERAGE_EXT 0x8335 +#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336 +#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337 +#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT 0x8338 +#endif + +#ifndef GL_EXT_pixel_transform_color_table +#endif + +#ifndef GL_EXT_shared_texture_palette +#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB +#endif + +#ifndef GL_EXT_separate_specular_color +#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 +#define GL_SINGLE_COLOR_EXT 0x81F9 +#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA +#endif + +#ifndef GL_EXT_secondary_color +#define GL_COLOR_SUM_EXT 0x8458 +#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459 +#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A +#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B +#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C +#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D +#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E +#endif + +#ifndef GL_EXT_texture_perturb_normal +#define GL_PERTURB_EXT 0x85AE +#define GL_TEXTURE_NORMAL_EXT 0x85AF +#endif + +#ifndef GL_EXT_multi_draw_arrays +#endif + +#ifndef GL_EXT_fog_coord +#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450 +#define GL_FOG_COORDINATE_EXT 0x8451 +#define GL_FRAGMENT_DEPTH_EXT 0x8452 +#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453 +#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454 +#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455 +#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456 +#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457 +#endif + +#ifndef GL_REND_screen_coordinates +#define GL_SCREEN_COORDINATES_REND 0x8490 +#define GL_INVERTED_SCREEN_W_REND 0x8491 +#endif + +#ifndef GL_EXT_coordinate_frame +#define GL_TANGENT_ARRAY_EXT 0x8439 +#define GL_BINORMAL_ARRAY_EXT 0x843A +#define GL_CURRENT_TANGENT_EXT 0x843B +#define GL_CURRENT_BINORMAL_EXT 0x843C +#define GL_TANGENT_ARRAY_TYPE_EXT 0x843E +#define GL_TANGENT_ARRAY_STRIDE_EXT 0x843F +#define GL_BINORMAL_ARRAY_TYPE_EXT 0x8440 +#define GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441 +#define GL_TANGENT_ARRAY_POINTER_EXT 0x8442 +#define GL_BINORMAL_ARRAY_POINTER_EXT 0x8443 +#define GL_MAP1_TANGENT_EXT 0x8444 +#define GL_MAP2_TANGENT_EXT 0x8445 +#define GL_MAP1_BINORMAL_EXT 0x8446 +#define GL_MAP2_BINORMAL_EXT 0x8447 +#endif + +#ifndef GL_EXT_texture_env_combine +#define GL_COMBINE_EXT 0x8570 +#define GL_COMBINE_RGB_EXT 0x8571 +#define GL_COMBINE_ALPHA_EXT 0x8572 +#define GL_RGB_SCALE_EXT 0x8573 +#define GL_ADD_SIGNED_EXT 0x8574 +#define GL_INTERPOLATE_EXT 0x8575 +#define GL_CONSTANT_EXT 0x8576 +#define GL_PRIMARY_COLOR_EXT 0x8577 +#define GL_PREVIOUS_EXT 0x8578 +#define GL_SOURCE0_RGB_EXT 0x8580 +#define GL_SOURCE1_RGB_EXT 0x8581 +#define GL_SOURCE2_RGB_EXT 0x8582 +#define GL_SOURCE0_ALPHA_EXT 0x8588 +#define GL_SOURCE1_ALPHA_EXT 0x8589 +#define GL_SOURCE2_ALPHA_EXT 0x858A +#define GL_OPERAND0_RGB_EXT 0x8590 +#define GL_OPERAND1_RGB_EXT 0x8591 +#define GL_OPERAND2_RGB_EXT 0x8592 +#define GL_OPERAND0_ALPHA_EXT 0x8598 +#define GL_OPERAND1_ALPHA_EXT 0x8599 +#define GL_OPERAND2_ALPHA_EXT 0x859A +#endif + +#ifndef GL_APPLE_specular_vector +#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0 +#endif + +#ifndef GL_APPLE_transform_hint +#define GL_TRANSFORM_HINT_APPLE 0x85B1 +#endif + +#ifndef GL_SGIX_fog_scale +#define GL_FOG_SCALE_SGIX 0x81FC +#define GL_FOG_SCALE_VALUE_SGIX 0x81FD +#endif + +#ifndef GL_SUNX_constant_data +#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5 +#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6 +#endif + +#ifndef GL_SUN_global_alpha +#define GL_GLOBAL_ALPHA_SUN 0x81D9 +#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA +#endif + +#ifndef GL_SUN_triangle_list +#define GL_RESTART_SUN 0x0001 +#define GL_REPLACE_MIDDLE_SUN 0x0002 +#define GL_REPLACE_OLDEST_SUN 0x0003 +#define GL_TRIANGLE_LIST_SUN 0x81D7 +#define GL_REPLACEMENT_CODE_SUN 0x81D8 +#define GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0 +#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1 +#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2 +#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3 +#define GL_R1UI_V3F_SUN 0x85C4 +#define GL_R1UI_C4UB_V3F_SUN 0x85C5 +#define GL_R1UI_C3F_V3F_SUN 0x85C6 +#define GL_R1UI_N3F_V3F_SUN 0x85C7 +#define GL_R1UI_C4F_N3F_V3F_SUN 0x85C8 +#define GL_R1UI_T2F_V3F_SUN 0x85C9 +#define GL_R1UI_T2F_N3F_V3F_SUN 0x85CA +#define GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB +#endif + +#ifndef GL_SUN_vertex +#endif + +#ifndef GL_EXT_blend_func_separate +#define GL_BLEND_DST_RGB_EXT 0x80C8 +#define GL_BLEND_SRC_RGB_EXT 0x80C9 +#define GL_BLEND_DST_ALPHA_EXT 0x80CA +#define GL_BLEND_SRC_ALPHA_EXT 0x80CB +#endif + +#ifndef GL_INGR_color_clamp +#define GL_RED_MIN_CLAMP_INGR 0x8560 +#define GL_GREEN_MIN_CLAMP_INGR 0x8561 +#define GL_BLUE_MIN_CLAMP_INGR 0x8562 +#define GL_ALPHA_MIN_CLAMP_INGR 0x8563 +#define GL_RED_MAX_CLAMP_INGR 0x8564 +#define GL_GREEN_MAX_CLAMP_INGR 0x8565 +#define GL_BLUE_MAX_CLAMP_INGR 0x8566 +#define GL_ALPHA_MAX_CLAMP_INGR 0x8567 +#endif + +#ifndef GL_INGR_interlace_read +#define GL_INTERLACE_READ_INGR 0x8568 +#endif + +#ifndef GL_EXT_stencil_wrap +#define GL_INCR_WRAP_EXT 0x8507 +#define GL_DECR_WRAP_EXT 0x8508 +#endif + +#ifndef GL_EXT_422_pixels +#define GL_422_EXT 0x80CC +#define GL_422_REV_EXT 0x80CD +#define GL_422_AVERAGE_EXT 0x80CE +#define GL_422_REV_AVERAGE_EXT 0x80CF +#endif + +#ifndef GL_NV_texgen_reflection +#define GL_NORMAL_MAP_NV 0x8511 +#define GL_REFLECTION_MAP_NV 0x8512 +#endif + +#ifndef GL_EXT_texture_cube_map +#define GL_NORMAL_MAP_EXT 0x8511 +#define GL_REFLECTION_MAP_EXT 0x8512 +#define GL_TEXTURE_CUBE_MAP_EXT 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C +#endif + +#ifndef GL_SUN_convolution_border_modes +#define GL_WRAP_BORDER_SUN 0x81D4 +#endif + +#ifndef GL_EXT_texture_env_add +#endif + +#ifndef GL_EXT_texture_lod_bias +#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD +#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 +#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 +#endif + +#ifndef GL_EXT_texture_filter_anisotropic +#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE +#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF +#endif + +#ifndef GL_EXT_vertex_weighting +#define GL_MODELVIEW0_STACK_DEPTH_EXT GL_MODELVIEW_STACK_DEPTH +#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502 +#define GL_MODELVIEW0_MATRIX_EXT GL_MODELVIEW_MATRIX +#define GL_MODELVIEW1_MATRIX_EXT 0x8506 +#define GL_VERTEX_WEIGHTING_EXT 0x8509 +#define GL_MODELVIEW0_EXT GL_MODELVIEW +#define GL_MODELVIEW1_EXT 0x850A +#define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850B +#define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850C +#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850D +#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850E +#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F +#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510 +#endif + +#ifndef GL_NV_light_max_exponent +#define GL_MAX_SHININESS_NV 0x8504 +#define GL_MAX_SPOT_EXPONENT_NV 0x8505 +#endif + +#ifndef GL_NV_vertex_array_range +#define GL_VERTEX_ARRAY_RANGE_NV 0x851D +#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E +#define GL_VERTEX_ARRAY_RANGE_VALID_NV 0x851F +#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520 +#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521 +#endif + +#ifndef GL_NV_register_combiners +#define GL_REGISTER_COMBINERS_NV 0x8522 +#define GL_VARIABLE_A_NV 0x8523 +#define GL_VARIABLE_B_NV 0x8524 +#define GL_VARIABLE_C_NV 0x8525 +#define GL_VARIABLE_D_NV 0x8526 +#define GL_VARIABLE_E_NV 0x8527 +#define GL_VARIABLE_F_NV 0x8528 +#define GL_VARIABLE_G_NV 0x8529 +#define GL_CONSTANT_COLOR0_NV 0x852A +#define GL_CONSTANT_COLOR1_NV 0x852B +#define GL_PRIMARY_COLOR_NV 0x852C +#define GL_SECONDARY_COLOR_NV 0x852D +#define GL_SPARE0_NV 0x852E +#define GL_SPARE1_NV 0x852F +#define GL_DISCARD_NV 0x8530 +#define GL_E_TIMES_F_NV 0x8531 +#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532 +#define GL_UNSIGNED_IDENTITY_NV 0x8536 +#define GL_UNSIGNED_INVERT_NV 0x8537 +#define GL_EXPAND_NORMAL_NV 0x8538 +#define GL_EXPAND_NEGATE_NV 0x8539 +#define GL_HALF_BIAS_NORMAL_NV 0x853A +#define GL_HALF_BIAS_NEGATE_NV 0x853B +#define GL_SIGNED_IDENTITY_NV 0x853C +#define GL_SIGNED_NEGATE_NV 0x853D +#define GL_SCALE_BY_TWO_NV 0x853E +#define GL_SCALE_BY_FOUR_NV 0x853F +#define GL_SCALE_BY_ONE_HALF_NV 0x8540 +#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541 +#define GL_COMBINER_INPUT_NV 0x8542 +#define GL_COMBINER_MAPPING_NV 0x8543 +#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544 +#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545 +#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546 +#define GL_COMBINER_MUX_SUM_NV 0x8547 +#define GL_COMBINER_SCALE_NV 0x8548 +#define GL_COMBINER_BIAS_NV 0x8549 +#define GL_COMBINER_AB_OUTPUT_NV 0x854A +#define GL_COMBINER_CD_OUTPUT_NV 0x854B +#define GL_COMBINER_SUM_OUTPUT_NV 0x854C +#define GL_MAX_GENERAL_COMBINERS_NV 0x854D +#define GL_NUM_GENERAL_COMBINERS_NV 0x854E +#define GL_COLOR_SUM_CLAMP_NV 0x854F +#define GL_COMBINER0_NV 0x8550 +#define GL_COMBINER1_NV 0x8551 +#define GL_COMBINER2_NV 0x8552 +#define GL_COMBINER3_NV 0x8553 +#define GL_COMBINER4_NV 0x8554 +#define GL_COMBINER5_NV 0x8555 +#define GL_COMBINER6_NV 0x8556 +#define GL_COMBINER7_NV 0x8557 +/* reuse GL_TEXTURE0_ARB */ +/* reuse GL_TEXTURE1_ARB */ +/* reuse GL_ZERO */ +/* reuse GL_NONE */ +/* reuse GL_FOG */ +#endif + +#ifndef GL_NV_fog_distance +#define GL_FOG_DISTANCE_MODE_NV 0x855A +#define GL_EYE_RADIAL_NV 0x855B +#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C +/* reuse GL_EYE_PLANE */ +#endif + +#ifndef GL_NV_texgen_emboss +#define GL_EMBOSS_LIGHT_NV 0x855D +#define GL_EMBOSS_CONSTANT_NV 0x855E +#define GL_EMBOSS_MAP_NV 0x855F +#endif + +#ifndef GL_NV_blend_square +#endif + +#ifndef GL_NV_texture_env_combine4 +#define GL_COMBINE4_NV 0x8503 +#define GL_SOURCE3_RGB_NV 0x8583 +#define GL_SOURCE3_ALPHA_NV 0x858B +#define GL_OPERAND3_RGB_NV 0x8593 +#define GL_OPERAND3_ALPHA_NV 0x859B +#endif + +#ifndef GL_MESA_resize_buffers +#endif + +#ifndef GL_MESA_window_pos +#endif + +#ifndef GL_EXT_texture_compression_s3tc +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 +#endif + +#ifndef GL_IBM_cull_vertex +#define GL_CULL_VERTEX_IBM 103050 +#endif + +#ifndef GL_IBM_multimode_draw_arrays +#endif + +#ifndef GL_IBM_vertex_array_lists +#define GL_VERTEX_ARRAY_LIST_IBM 103070 +#define GL_NORMAL_ARRAY_LIST_IBM 103071 +#define GL_COLOR_ARRAY_LIST_IBM 103072 +#define GL_INDEX_ARRAY_LIST_IBM 103073 +#define GL_TEXTURE_COORD_ARRAY_LIST_IBM 103074 +#define GL_EDGE_FLAG_ARRAY_LIST_IBM 103075 +#define GL_FOG_COORDINATE_ARRAY_LIST_IBM 103076 +#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077 +#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM 103080 +#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM 103081 +#define GL_COLOR_ARRAY_LIST_STRIDE_IBM 103082 +#define GL_INDEX_ARRAY_LIST_STRIDE_IBM 103083 +#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084 +#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085 +#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086 +#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087 +#endif + +#ifndef GL_SGIX_subsample +#define GL_PACK_SUBSAMPLE_RATE_SGIX 0x85A0 +#define GL_UNPACK_SUBSAMPLE_RATE_SGIX 0x85A1 +#define GL_PIXEL_SUBSAMPLE_4444_SGIX 0x85A2 +#define GL_PIXEL_SUBSAMPLE_2424_SGIX 0x85A3 +#define GL_PIXEL_SUBSAMPLE_4242_SGIX 0x85A4 +#endif + +#ifndef GL_SGIX_ycrcb_subsample +#endif + +#ifndef GL_SGIX_ycrcba +#define GL_YCRCB_SGIX 0x8318 +#define GL_YCRCBA_SGIX 0x8319 +#endif + +#ifndef GL_SGI_depth_pass_instrument +#define GL_DEPTH_PASS_INSTRUMENT_SGIX 0x8310 +#define GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX 0x8311 +#define GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX 0x8312 +#endif + +#ifndef GL_3DFX_texture_compression_FXT1 +#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0 +#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1 +#endif + +#ifndef GL_3DFX_multisample +#define GL_MULTISAMPLE_3DFX 0x86B2 +#define GL_SAMPLE_BUFFERS_3DFX 0x86B3 +#define GL_SAMPLES_3DFX 0x86B4 +#define GL_MULTISAMPLE_BIT_3DFX 0x20000000 +#endif + +#ifndef GL_3DFX_tbuffer +#endif + +#ifndef GL_EXT_multisample +#define GL_MULTISAMPLE_EXT 0x809D +#define GL_SAMPLE_ALPHA_TO_MASK_EXT 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F +#define GL_SAMPLE_MASK_EXT 0x80A0 +#define GL_1PASS_EXT 0x80A1 +#define GL_2PASS_0_EXT 0x80A2 +#define GL_2PASS_1_EXT 0x80A3 +#define GL_4PASS_0_EXT 0x80A4 +#define GL_4PASS_1_EXT 0x80A5 +#define GL_4PASS_2_EXT 0x80A6 +#define GL_4PASS_3_EXT 0x80A7 +#define GL_SAMPLE_BUFFERS_EXT 0x80A8 +#define GL_SAMPLES_EXT 0x80A9 +#define GL_SAMPLE_MASK_VALUE_EXT 0x80AA +#define GL_SAMPLE_MASK_INVERT_EXT 0x80AB +#define GL_SAMPLE_PATTERN_EXT 0x80AC +#define GL_MULTISAMPLE_BIT_EXT 0x20000000 +#endif + +#ifndef GL_SGIX_vertex_preclip +#define GL_VERTEX_PRECLIP_SGIX 0x83EE +#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF +#endif + +#ifndef GL_SGIX_convolution_accuracy +#define GL_CONVOLUTION_HINT_SGIX 0x8316 +#endif + +#ifndef GL_SGIX_resample +#define GL_PACK_RESAMPLE_SGIX 0x842C +#define GL_UNPACK_RESAMPLE_SGIX 0x842D +#define GL_RESAMPLE_REPLICATE_SGIX 0x842E +#define GL_RESAMPLE_ZERO_FILL_SGIX 0x842F +#define GL_RESAMPLE_DECIMATE_SGIX 0x8430 +#endif + +#ifndef GL_SGIS_point_line_texgen +#define GL_EYE_DISTANCE_TO_POINT_SGIS 0x81F0 +#define GL_OBJECT_DISTANCE_TO_POINT_SGIS 0x81F1 +#define GL_EYE_DISTANCE_TO_LINE_SGIS 0x81F2 +#define GL_OBJECT_DISTANCE_TO_LINE_SGIS 0x81F3 +#define GL_EYE_POINT_SGIS 0x81F4 +#define GL_OBJECT_POINT_SGIS 0x81F5 +#define GL_EYE_LINE_SGIS 0x81F6 +#define GL_OBJECT_LINE_SGIS 0x81F7 +#endif + +#ifndef GL_SGIS_texture_color_mask +#define GL_TEXTURE_COLOR_WRITEMASK_SGIS 0x81EF +#endif + +#ifndef GL_EXT_texture_env_dot3 +#define GL_DOT3_RGB_EXT 0x8740 +#define GL_DOT3_RGBA_EXT 0x8741 +#endif + +#ifndef GL_ATI_texture_mirror_once +#define GL_MIRROR_CLAMP_ATI 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 +#endif + +#ifndef GL_NV_fence +#define GL_ALL_COMPLETED_NV 0x84F2 +#define GL_FENCE_STATUS_NV 0x84F3 +#define GL_FENCE_CONDITION_NV 0x84F4 +#endif + +#ifndef GL_IBM_texture_mirrored_repeat +#define GL_MIRRORED_REPEAT_IBM 0x8370 +#endif + +#ifndef GL_NV_evaluators +#define GL_EVAL_2D_NV 0x86C0 +#define GL_EVAL_TRIANGULAR_2D_NV 0x86C1 +#define GL_MAP_TESSELLATION_NV 0x86C2 +#define GL_MAP_ATTRIB_U_ORDER_NV 0x86C3 +#define GL_MAP_ATTRIB_V_ORDER_NV 0x86C4 +#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5 +#define GL_EVAL_VERTEX_ATTRIB0_NV 0x86C6 +#define GL_EVAL_VERTEX_ATTRIB1_NV 0x86C7 +#define GL_EVAL_VERTEX_ATTRIB2_NV 0x86C8 +#define GL_EVAL_VERTEX_ATTRIB3_NV 0x86C9 +#define GL_EVAL_VERTEX_ATTRIB4_NV 0x86CA +#define GL_EVAL_VERTEX_ATTRIB5_NV 0x86CB +#define GL_EVAL_VERTEX_ATTRIB6_NV 0x86CC +#define GL_EVAL_VERTEX_ATTRIB7_NV 0x86CD +#define GL_EVAL_VERTEX_ATTRIB8_NV 0x86CE +#define GL_EVAL_VERTEX_ATTRIB9_NV 0x86CF +#define GL_EVAL_VERTEX_ATTRIB10_NV 0x86D0 +#define GL_EVAL_VERTEX_ATTRIB11_NV 0x86D1 +#define GL_EVAL_VERTEX_ATTRIB12_NV 0x86D2 +#define GL_EVAL_VERTEX_ATTRIB13_NV 0x86D3 +#define GL_EVAL_VERTEX_ATTRIB14_NV 0x86D4 +#define GL_EVAL_VERTEX_ATTRIB15_NV 0x86D5 +#define GL_MAX_MAP_TESSELLATION_NV 0x86D6 +#define GL_MAX_RATIONAL_EVAL_ORDER_NV 0x86D7 +#endif + +#ifndef GL_NV_packed_depth_stencil +#define GL_DEPTH_STENCIL_NV 0x84F9 +#define GL_UNSIGNED_INT_24_8_NV 0x84FA +#endif + +#ifndef GL_NV_register_combiners2 +#define GL_PER_STAGE_CONSTANTS_NV 0x8535 +#endif + +#ifndef GL_NV_texture_compression_vtc +#endif + +#ifndef GL_NV_texture_rectangle +#define GL_TEXTURE_RECTANGLE_NV 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8 +#endif + +#ifndef GL_NV_texture_shader +#define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C +#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D +#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E +#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9 +#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA +#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB +#define GL_DSDT_MAG_INTENSITY_NV 0x86DC +#define GL_SHADER_CONSISTENT_NV 0x86DD +#define GL_TEXTURE_SHADER_NV 0x86DE +#define GL_SHADER_OPERATION_NV 0x86DF +#define GL_CULL_MODES_NV 0x86E0 +#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1 +#define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2 +#define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3 +#define GL_OFFSET_TEXTURE_2D_MATRIX_NV GL_OFFSET_TEXTURE_MATRIX_NV +#define GL_OFFSET_TEXTURE_2D_SCALE_NV GL_OFFSET_TEXTURE_SCALE_NV +#define GL_OFFSET_TEXTURE_2D_BIAS_NV GL_OFFSET_TEXTURE_BIAS_NV +#define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4 +#define GL_CONST_EYE_NV 0x86E5 +#define GL_PASS_THROUGH_NV 0x86E6 +#define GL_CULL_FRAGMENT_NV 0x86E7 +#define GL_OFFSET_TEXTURE_2D_NV 0x86E8 +#define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9 +#define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA +#define GL_DOT_PRODUCT_NV 0x86EC +#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED +#define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE +#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0 +#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1 +#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2 +#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3 +#define GL_HILO_NV 0x86F4 +#define GL_DSDT_NV 0x86F5 +#define GL_DSDT_MAG_NV 0x86F6 +#define GL_DSDT_MAG_VIB_NV 0x86F7 +#define GL_HILO16_NV 0x86F8 +#define GL_SIGNED_HILO_NV 0x86F9 +#define GL_SIGNED_HILO16_NV 0x86FA +#define GL_SIGNED_RGBA_NV 0x86FB +#define GL_SIGNED_RGBA8_NV 0x86FC +#define GL_SIGNED_RGB_NV 0x86FE +#define GL_SIGNED_RGB8_NV 0x86FF +#define GL_SIGNED_LUMINANCE_NV 0x8701 +#define GL_SIGNED_LUMINANCE8_NV 0x8702 +#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703 +#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704 +#define GL_SIGNED_ALPHA_NV 0x8705 +#define GL_SIGNED_ALPHA8_NV 0x8706 +#define GL_SIGNED_INTENSITY_NV 0x8707 +#define GL_SIGNED_INTENSITY8_NV 0x8708 +#define GL_DSDT8_NV 0x8709 +#define GL_DSDT8_MAG8_NV 0x870A +#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B +#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C +#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D +#define GL_HI_SCALE_NV 0x870E +#define GL_LO_SCALE_NV 0x870F +#define GL_DS_SCALE_NV 0x8710 +#define GL_DT_SCALE_NV 0x8711 +#define GL_MAGNITUDE_SCALE_NV 0x8712 +#define GL_VIBRANCE_SCALE_NV 0x8713 +#define GL_HI_BIAS_NV 0x8714 +#define GL_LO_BIAS_NV 0x8715 +#define GL_DS_BIAS_NV 0x8716 +#define GL_DT_BIAS_NV 0x8717 +#define GL_MAGNITUDE_BIAS_NV 0x8718 +#define GL_VIBRANCE_BIAS_NV 0x8719 +#define GL_TEXTURE_BORDER_VALUES_NV 0x871A +#define GL_TEXTURE_HI_SIZE_NV 0x871B +#define GL_TEXTURE_LO_SIZE_NV 0x871C +#define GL_TEXTURE_DS_SIZE_NV 0x871D +#define GL_TEXTURE_DT_SIZE_NV 0x871E +#define GL_TEXTURE_MAG_SIZE_NV 0x871F +#endif + +#ifndef GL_NV_texture_shader2 +#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF +#endif + +#ifndef GL_NV_vertex_array_range2 +#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 +#endif + +#ifndef GL_NV_vertex_program +#define GL_VERTEX_PROGRAM_NV 0x8620 +#define GL_VERTEX_STATE_PROGRAM_NV 0x8621 +#define GL_ATTRIB_ARRAY_SIZE_NV 0x8623 +#define GL_ATTRIB_ARRAY_STRIDE_NV 0x8624 +#define GL_ATTRIB_ARRAY_TYPE_NV 0x8625 +#define GL_CURRENT_ATTRIB_NV 0x8626 +#define GL_PROGRAM_LENGTH_NV 0x8627 +#define GL_PROGRAM_STRING_NV 0x8628 +#define GL_MODELVIEW_PROJECTION_NV 0x8629 +#define GL_IDENTITY_NV 0x862A +#define GL_INVERSE_NV 0x862B +#define GL_TRANSPOSE_NV 0x862C +#define GL_INVERSE_TRANSPOSE_NV 0x862D +#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E +#define GL_MAX_TRACK_MATRICES_NV 0x862F +#define GL_MATRIX0_NV 0x8630 +#define GL_MATRIX1_NV 0x8631 +#define GL_MATRIX2_NV 0x8632 +#define GL_MATRIX3_NV 0x8633 +#define GL_MATRIX4_NV 0x8634 +#define GL_MATRIX5_NV 0x8635 +#define GL_MATRIX6_NV 0x8636 +#define GL_MATRIX7_NV 0x8637 +#define GL_CURRENT_MATRIX_STACK_DEPTH_NV 0x8640 +#define GL_CURRENT_MATRIX_NV 0x8641 +#define GL_VERTEX_PROGRAM_POINT_SIZE_NV 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE_NV 0x8643 +#define GL_PROGRAM_PARAMETER_NV 0x8644 +#define GL_ATTRIB_ARRAY_POINTER_NV 0x8645 +#define GL_PROGRAM_TARGET_NV 0x8646 +#define GL_PROGRAM_RESIDENT_NV 0x8647 +#define GL_TRACK_MATRIX_NV 0x8648 +#define GL_TRACK_MATRIX_TRANSFORM_NV 0x8649 +#define GL_VERTEX_PROGRAM_BINDING_NV 0x864A +#define GL_PROGRAM_ERROR_POSITION_NV 0x864B +#define GL_VERTEX_ATTRIB_ARRAY0_NV 0x8650 +#define GL_VERTEX_ATTRIB_ARRAY1_NV 0x8651 +#define GL_VERTEX_ATTRIB_ARRAY2_NV 0x8652 +#define GL_VERTEX_ATTRIB_ARRAY3_NV 0x8653 +#define GL_VERTEX_ATTRIB_ARRAY4_NV 0x8654 +#define GL_VERTEX_ATTRIB_ARRAY5_NV 0x8655 +#define GL_VERTEX_ATTRIB_ARRAY6_NV 0x8656 +#define GL_VERTEX_ATTRIB_ARRAY7_NV 0x8657 +#define GL_VERTEX_ATTRIB_ARRAY8_NV 0x8658 +#define GL_VERTEX_ATTRIB_ARRAY9_NV 0x8659 +#define GL_VERTEX_ATTRIB_ARRAY10_NV 0x865A +#define GL_VERTEX_ATTRIB_ARRAY11_NV 0x865B +#define GL_VERTEX_ATTRIB_ARRAY12_NV 0x865C +#define GL_VERTEX_ATTRIB_ARRAY13_NV 0x865D +#define GL_VERTEX_ATTRIB_ARRAY14_NV 0x865E +#define GL_VERTEX_ATTRIB_ARRAY15_NV 0x865F +#define GL_MAP1_VERTEX_ATTRIB0_4_NV 0x8660 +#define GL_MAP1_VERTEX_ATTRIB1_4_NV 0x8661 +#define GL_MAP1_VERTEX_ATTRIB2_4_NV 0x8662 +#define GL_MAP1_VERTEX_ATTRIB3_4_NV 0x8663 +#define GL_MAP1_VERTEX_ATTRIB4_4_NV 0x8664 +#define GL_MAP1_VERTEX_ATTRIB5_4_NV 0x8665 +#define GL_MAP1_VERTEX_ATTRIB6_4_NV 0x8666 +#define GL_MAP1_VERTEX_ATTRIB7_4_NV 0x8667 +#define GL_MAP1_VERTEX_ATTRIB8_4_NV 0x8668 +#define GL_MAP1_VERTEX_ATTRIB9_4_NV 0x8669 +#define GL_MAP1_VERTEX_ATTRIB10_4_NV 0x866A +#define GL_MAP1_VERTEX_ATTRIB11_4_NV 0x866B +#define GL_MAP1_VERTEX_ATTRIB12_4_NV 0x866C +#define GL_MAP1_VERTEX_ATTRIB13_4_NV 0x866D +#define GL_MAP1_VERTEX_ATTRIB14_4_NV 0x866E +#define GL_MAP1_VERTEX_ATTRIB15_4_NV 0x866F +#define GL_MAP2_VERTEX_ATTRIB0_4_NV 0x8670 +#define GL_MAP2_VERTEX_ATTRIB1_4_NV 0x8671 +#define GL_MAP2_VERTEX_ATTRIB2_4_NV 0x8672 +#define GL_MAP2_VERTEX_ATTRIB3_4_NV 0x8673 +#define GL_MAP2_VERTEX_ATTRIB4_4_NV 0x8674 +#define GL_MAP2_VERTEX_ATTRIB5_4_NV 0x8675 +#define GL_MAP2_VERTEX_ATTRIB6_4_NV 0x8676 +#define GL_MAP2_VERTEX_ATTRIB7_4_NV 0x8677 +#define GL_MAP2_VERTEX_ATTRIB8_4_NV 0x8678 +#define GL_MAP2_VERTEX_ATTRIB9_4_NV 0x8679 +#define GL_MAP2_VERTEX_ATTRIB10_4_NV 0x867A +#define GL_MAP2_VERTEX_ATTRIB11_4_NV 0x867B +#define GL_MAP2_VERTEX_ATTRIB12_4_NV 0x867C +#define GL_MAP2_VERTEX_ATTRIB13_4_NV 0x867D +#define GL_MAP2_VERTEX_ATTRIB14_4_NV 0x867E +#define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F +#endif + +#ifndef GL_SGIX_texture_coordinate_clamp +#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369 +#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A +#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B +#endif + +#ifndef GL_SGIX_scalebias_hint +#define GL_SCALEBIAS_HINT_SGIX 0x8322 +#endif + +#ifndef GL_OML_interlace +#define GL_INTERLACE_OML 0x8980 +#define GL_INTERLACE_READ_OML 0x8981 +#endif + +#ifndef GL_OML_subsample +#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982 +#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983 +#endif + +#ifndef GL_OML_resample +#define GL_PACK_RESAMPLE_OML 0x8984 +#define GL_UNPACK_RESAMPLE_OML 0x8985 +#define GL_RESAMPLE_REPLICATE_OML 0x8986 +#define GL_RESAMPLE_ZERO_FILL_OML 0x8987 +#define GL_RESAMPLE_AVERAGE_OML 0x8988 +#define GL_RESAMPLE_DECIMATE_OML 0x8989 +#endif + +#ifndef GL_NV_copy_depth_to_color +#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E +#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F +#endif + +#ifndef GL_ATI_envmap_bumpmap +#define GL_BUMP_ROT_MATRIX_ATI 0x8775 +#define GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776 +#define GL_BUMP_NUM_TEX_UNITS_ATI 0x8777 +#define GL_BUMP_TEX_UNITS_ATI 0x8778 +#define GL_DUDV_ATI 0x8779 +#define GL_DU8DV8_ATI 0x877A +#define GL_BUMP_ENVMAP_ATI 0x877B +#define GL_BUMP_TARGET_ATI 0x877C +#endif + +#ifndef GL_ATI_fragment_shader +#define GL_FRAGMENT_SHADER_ATI 0x8920 +#define GL_REG_0_ATI 0x8921 +#define GL_REG_1_ATI 0x8922 +#define GL_REG_2_ATI 0x8923 +#define GL_REG_3_ATI 0x8924 +#define GL_REG_4_ATI 0x8925 +#define GL_REG_5_ATI 0x8926 +#define GL_REG_6_ATI 0x8927 +#define GL_REG_7_ATI 0x8928 +#define GL_REG_8_ATI 0x8929 +#define GL_REG_9_ATI 0x892A +#define GL_REG_10_ATI 0x892B +#define GL_REG_11_ATI 0x892C +#define GL_REG_12_ATI 0x892D +#define GL_REG_13_ATI 0x892E +#define GL_REG_14_ATI 0x892F +#define GL_REG_15_ATI 0x8930 +#define GL_REG_16_ATI 0x8931 +#define GL_REG_17_ATI 0x8932 +#define GL_REG_18_ATI 0x8933 +#define GL_REG_19_ATI 0x8934 +#define GL_REG_20_ATI 0x8935 +#define GL_REG_21_ATI 0x8936 +#define GL_REG_22_ATI 0x8937 +#define GL_REG_23_ATI 0x8938 +#define GL_REG_24_ATI 0x8939 +#define GL_REG_25_ATI 0x893A +#define GL_REG_26_ATI 0x893B +#define GL_REG_27_ATI 0x893C +#define GL_REG_28_ATI 0x893D +#define GL_REG_29_ATI 0x893E +#define GL_REG_30_ATI 0x893F +#define GL_REG_31_ATI 0x8940 +#define GL_CON_0_ATI 0x8941 +#define GL_CON_1_ATI 0x8942 +#define GL_CON_2_ATI 0x8943 +#define GL_CON_3_ATI 0x8944 +#define GL_CON_4_ATI 0x8945 +#define GL_CON_5_ATI 0x8946 +#define GL_CON_6_ATI 0x8947 +#define GL_CON_7_ATI 0x8948 +#define GL_CON_8_ATI 0x8949 +#define GL_CON_9_ATI 0x894A +#define GL_CON_10_ATI 0x894B +#define GL_CON_11_ATI 0x894C +#define GL_CON_12_ATI 0x894D +#define GL_CON_13_ATI 0x894E +#define GL_CON_14_ATI 0x894F +#define GL_CON_15_ATI 0x8950 +#define GL_CON_16_ATI 0x8951 +#define GL_CON_17_ATI 0x8952 +#define GL_CON_18_ATI 0x8953 +#define GL_CON_19_ATI 0x8954 +#define GL_CON_20_ATI 0x8955 +#define GL_CON_21_ATI 0x8956 +#define GL_CON_22_ATI 0x8957 +#define GL_CON_23_ATI 0x8958 +#define GL_CON_24_ATI 0x8959 +#define GL_CON_25_ATI 0x895A +#define GL_CON_26_ATI 0x895B +#define GL_CON_27_ATI 0x895C +#define GL_CON_28_ATI 0x895D +#define GL_CON_29_ATI 0x895E +#define GL_CON_30_ATI 0x895F +#define GL_CON_31_ATI 0x8960 +#define GL_MOV_ATI 0x8961 +#define GL_ADD_ATI 0x8963 +#define GL_MUL_ATI 0x8964 +#define GL_SUB_ATI 0x8965 +#define GL_DOT3_ATI 0x8966 +#define GL_DOT4_ATI 0x8967 +#define GL_MAD_ATI 0x8968 +#define GL_LERP_ATI 0x8969 +#define GL_CND_ATI 0x896A +#define GL_CND0_ATI 0x896B +#define GL_DOT2_ADD_ATI 0x896C +#define GL_SECONDARY_INTERPOLATOR_ATI 0x896D +#define GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E +#define GL_NUM_FRAGMENT_CONSTANTS_ATI 0x896F +#define GL_NUM_PASSES_ATI 0x8970 +#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI 0x8971 +#define GL_NUM_INSTRUCTIONS_TOTAL_ATI 0x8972 +#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973 +#define GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974 +#define GL_COLOR_ALPHA_PAIRING_ATI 0x8975 +#define GL_SWIZZLE_STR_ATI 0x8976 +#define GL_SWIZZLE_STQ_ATI 0x8977 +#define GL_SWIZZLE_STR_DR_ATI 0x8978 +#define GL_SWIZZLE_STQ_DQ_ATI 0x8979 +#define GL_SWIZZLE_STRQ_ATI 0x897A +#define GL_SWIZZLE_STRQ_DQ_ATI 0x897B +#define GL_RED_BIT_ATI 0x00000001 +#define GL_GREEN_BIT_ATI 0x00000002 +#define GL_BLUE_BIT_ATI 0x00000004 +#define GL_2X_BIT_ATI 0x00000001 +#define GL_4X_BIT_ATI 0x00000002 +#define GL_8X_BIT_ATI 0x00000004 +#define GL_HALF_BIT_ATI 0x00000008 +#define GL_QUARTER_BIT_ATI 0x00000010 +#define GL_EIGHTH_BIT_ATI 0x00000020 +#define GL_SATURATE_BIT_ATI 0x00000040 +#define GL_COMP_BIT_ATI 0x00000002 +#define GL_NEGATE_BIT_ATI 0x00000004 +#define GL_BIAS_BIT_ATI 0x00000008 +#endif + +#ifndef GL_ATI_pn_triangles +#define GL_PN_TRIANGLES_ATI 0x87F0 +#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1 +#define GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2 +#define GL_PN_TRIANGLES_NORMAL_MODE_ATI 0x87F3 +#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4 +#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5 +#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6 +#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7 +#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8 +#endif + +#ifndef GL_ATI_vertex_array_object +#define GL_STATIC_ATI 0x8760 +#define GL_DYNAMIC_ATI 0x8761 +#define GL_PRESERVE_ATI 0x8762 +#define GL_DISCARD_ATI 0x8763 +#define GL_OBJECT_BUFFER_SIZE_ATI 0x8764 +#define GL_OBJECT_BUFFER_USAGE_ATI 0x8765 +#define GL_ARRAY_OBJECT_BUFFER_ATI 0x8766 +#define GL_ARRAY_OBJECT_OFFSET_ATI 0x8767 +#endif + +#ifndef GL_EXT_vertex_shader +#define GL_VERTEX_SHADER_EXT 0x8780 +#define GL_VERTEX_SHADER_BINDING_EXT 0x8781 +#define GL_OP_INDEX_EXT 0x8782 +#define GL_OP_NEGATE_EXT 0x8783 +#define GL_OP_DOT3_EXT 0x8784 +#define GL_OP_DOT4_EXT 0x8785 +#define GL_OP_MUL_EXT 0x8786 +#define GL_OP_ADD_EXT 0x8787 +#define GL_OP_MADD_EXT 0x8788 +#define GL_OP_FRAC_EXT 0x8789 +#define GL_OP_MAX_EXT 0x878A +#define GL_OP_MIN_EXT 0x878B +#define GL_OP_SET_GE_EXT 0x878C +#define GL_OP_SET_LT_EXT 0x878D +#define GL_OP_CLAMP_EXT 0x878E +#define GL_OP_FLOOR_EXT 0x878F +#define GL_OP_ROUND_EXT 0x8790 +#define GL_OP_EXP_BASE_2_EXT 0x8791 +#define GL_OP_LOG_BASE_2_EXT 0x8792 +#define GL_OP_POWER_EXT 0x8793 +#define GL_OP_RECIP_EXT 0x8794 +#define GL_OP_RECIP_SQRT_EXT 0x8795 +#define GL_OP_SUB_EXT 0x8796 +#define GL_OP_CROSS_PRODUCT_EXT 0x8797 +#define GL_OP_MULTIPLY_MATRIX_EXT 0x8798 +#define GL_OP_MOV_EXT 0x8799 +#define GL_OUTPUT_VERTEX_EXT 0x879A +#define GL_OUTPUT_COLOR0_EXT 0x879B +#define GL_OUTPUT_COLOR1_EXT 0x879C +#define GL_OUTPUT_TEXTURE_COORD0_EXT 0x879D +#define GL_OUTPUT_TEXTURE_COORD1_EXT 0x879E +#define GL_OUTPUT_TEXTURE_COORD2_EXT 0x879F +#define GL_OUTPUT_TEXTURE_COORD3_EXT 0x87A0 +#define GL_OUTPUT_TEXTURE_COORD4_EXT 0x87A1 +#define GL_OUTPUT_TEXTURE_COORD5_EXT 0x87A2 +#define GL_OUTPUT_TEXTURE_COORD6_EXT 0x87A3 +#define GL_OUTPUT_TEXTURE_COORD7_EXT 0x87A4 +#define GL_OUTPUT_TEXTURE_COORD8_EXT 0x87A5 +#define GL_OUTPUT_TEXTURE_COORD9_EXT 0x87A6 +#define GL_OUTPUT_TEXTURE_COORD10_EXT 0x87A7 +#define GL_OUTPUT_TEXTURE_COORD11_EXT 0x87A8 +#define GL_OUTPUT_TEXTURE_COORD12_EXT 0x87A9 +#define GL_OUTPUT_TEXTURE_COORD13_EXT 0x87AA +#define GL_OUTPUT_TEXTURE_COORD14_EXT 0x87AB +#define GL_OUTPUT_TEXTURE_COORD15_EXT 0x87AC +#define GL_OUTPUT_TEXTURE_COORD16_EXT 0x87AD +#define GL_OUTPUT_TEXTURE_COORD17_EXT 0x87AE +#define GL_OUTPUT_TEXTURE_COORD18_EXT 0x87AF +#define GL_OUTPUT_TEXTURE_COORD19_EXT 0x87B0 +#define GL_OUTPUT_TEXTURE_COORD20_EXT 0x87B1 +#define GL_OUTPUT_TEXTURE_COORD21_EXT 0x87B2 +#define GL_OUTPUT_TEXTURE_COORD22_EXT 0x87B3 +#define GL_OUTPUT_TEXTURE_COORD23_EXT 0x87B4 +#define GL_OUTPUT_TEXTURE_COORD24_EXT 0x87B5 +#define GL_OUTPUT_TEXTURE_COORD25_EXT 0x87B6 +#define GL_OUTPUT_TEXTURE_COORD26_EXT 0x87B7 +#define GL_OUTPUT_TEXTURE_COORD27_EXT 0x87B8 +#define GL_OUTPUT_TEXTURE_COORD28_EXT 0x87B9 +#define GL_OUTPUT_TEXTURE_COORD29_EXT 0x87BA +#define GL_OUTPUT_TEXTURE_COORD30_EXT 0x87BB +#define GL_OUTPUT_TEXTURE_COORD31_EXT 0x87BC +#define GL_OUTPUT_FOG_EXT 0x87BD +#define GL_SCALAR_EXT 0x87BE +#define GL_VECTOR_EXT 0x87BF +#define GL_MATRIX_EXT 0x87C0 +#define GL_VARIANT_EXT 0x87C1 +#define GL_INVARIANT_EXT 0x87C2 +#define GL_LOCAL_CONSTANT_EXT 0x87C3 +#define GL_LOCAL_EXT 0x87C4 +#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5 +#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6 +#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7 +#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8 +#define GL_MAX_VERTEX_SHADER_LOCALS_EXT 0x87C9 +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE +#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF +#define GL_VERTEX_SHADER_VARIANTS_EXT 0x87D0 +#define GL_VERTEX_SHADER_INVARIANTS_EXT 0x87D1 +#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2 +#define GL_VERTEX_SHADER_LOCALS_EXT 0x87D3 +#define GL_VERTEX_SHADER_OPTIMIZED_EXT 0x87D4 +#define GL_X_EXT 0x87D5 +#define GL_Y_EXT 0x87D6 +#define GL_Z_EXT 0x87D7 +#define GL_W_EXT 0x87D8 +#define GL_NEGATIVE_X_EXT 0x87D9 +#define GL_NEGATIVE_Y_EXT 0x87DA +#define GL_NEGATIVE_Z_EXT 0x87DB +#define GL_NEGATIVE_W_EXT 0x87DC +#define GL_ZERO_EXT 0x87DD +#define GL_ONE_EXT 0x87DE +#define GL_NEGATIVE_ONE_EXT 0x87DF +#define GL_NORMALIZED_RANGE_EXT 0x87E0 +#define GL_FULL_RANGE_EXT 0x87E1 +#define GL_CURRENT_VERTEX_EXT 0x87E2 +#define GL_MVP_MATRIX_EXT 0x87E3 +#define GL_VARIANT_VALUE_EXT 0x87E4 +#define GL_VARIANT_DATATYPE_EXT 0x87E5 +#define GL_VARIANT_ARRAY_STRIDE_EXT 0x87E6 +#define GL_VARIANT_ARRAY_TYPE_EXT 0x87E7 +#define GL_VARIANT_ARRAY_EXT 0x87E8 +#define GL_VARIANT_ARRAY_POINTER_EXT 0x87E9 +#define GL_INVARIANT_VALUE_EXT 0x87EA +#define GL_INVARIANT_DATATYPE_EXT 0x87EB +#define GL_LOCAL_CONSTANT_VALUE_EXT 0x87EC +#define GL_LOCAL_CONSTANT_DATATYPE_EXT 0x87ED +#endif + +#ifndef GL_ATI_vertex_streams +#define GL_MAX_VERTEX_STREAMS_ATI 0x876B +#define GL_VERTEX_STREAM0_ATI 0x876C +#define GL_VERTEX_STREAM1_ATI 0x876D +#define GL_VERTEX_STREAM2_ATI 0x876E +#define GL_VERTEX_STREAM3_ATI 0x876F +#define GL_VERTEX_STREAM4_ATI 0x8770 +#define GL_VERTEX_STREAM5_ATI 0x8771 +#define GL_VERTEX_STREAM6_ATI 0x8772 +#define GL_VERTEX_STREAM7_ATI 0x8773 +#define GL_VERTEX_SOURCE_ATI 0x8774 +#endif + +#ifndef GL_ATI_element_array +#define GL_ELEMENT_ARRAY_ATI 0x8768 +#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769 +#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A +#endif + +#ifndef GL_SUN_mesh_array +#define GL_QUAD_MESH_SUN 0x8614 +#define GL_TRIANGLE_MESH_SUN 0x8615 +#endif + +#ifndef GL_SUN_slice_accum +#define GL_SLICE_ACCUM_SUN 0x85CC +#endif + +#ifndef GL_NV_multisample_filter_hint +#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 +#endif + +#ifndef GL_NV_depth_clamp +#define GL_DEPTH_CLAMP_NV 0x864F +#endif + +#ifndef GL_NV_occlusion_query +#define GL_PIXEL_COUNTER_BITS_NV 0x8864 +#define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865 +#define GL_PIXEL_COUNT_NV 0x8866 +#define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867 +#endif + +#ifndef GL_NV_point_sprite +#define GL_POINT_SPRITE_NV 0x8861 +#define GL_COORD_REPLACE_NV 0x8862 +#define GL_POINT_SPRITE_R_MODE_NV 0x8863 +#endif + +#ifndef GL_NV_texture_shader3 +#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850 +#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851 +#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852 +#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853 +#define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854 +#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855 +#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856 +#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857 +#define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858 +#define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859 +#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A +#define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B +#define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C +#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D +#define GL_HILO8_NV 0x885E +#define GL_SIGNED_HILO8_NV 0x885F +#define GL_FORCE_BLUE_TO_ONE_NV 0x8860 +#endif + +#ifndef GL_NV_vertex_program1_1 +#endif + +#ifndef GL_EXT_shadow_funcs +#endif + +#ifndef GL_EXT_stencil_two_side +#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 +#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911 +#endif + +#ifndef GL_ATI_text_fragment_shader +#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200 +#endif + +#ifndef GL_APPLE_client_storage +#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 +#endif + +#ifndef GL_APPLE_element_array +#define GL_ELEMENT_ARRAY_APPLE 0x8768 +#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8769 +#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x876A +#endif + +#ifndef GL_APPLE_fence +#define GL_DRAW_PIXELS_APPLE 0x8A0A +#define GL_FENCE_APPLE 0x8A0B +#endif + +#ifndef GL_APPLE_vertex_array_object +#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5 +#endif + +#ifndef GL_APPLE_vertex_array_range +#define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D +#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E +#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F +#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521 +#define GL_STORAGE_CACHED_APPLE 0x85BE +#define GL_STORAGE_SHARED_APPLE 0x85BF +#endif + +#ifndef GL_APPLE_ycbcr_422 +#define GL_YCBCR_422_APPLE 0x85B9 +#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB +#endif + +#ifndef GL_S3_s3tc +#define GL_RGB_S3TC 0x83A0 +#define GL_RGB4_S3TC 0x83A1 +#define GL_RGBA_S3TC 0x83A2 +#define GL_RGBA4_S3TC 0x83A3 +#endif + +#ifndef GL_ATI_draw_buffers +#define GL_MAX_DRAW_BUFFERS_ATI 0x8824 +#define GL_DRAW_BUFFER0_ATI 0x8825 +#define GL_DRAW_BUFFER1_ATI 0x8826 +#define GL_DRAW_BUFFER2_ATI 0x8827 +#define GL_DRAW_BUFFER3_ATI 0x8828 +#define GL_DRAW_BUFFER4_ATI 0x8829 +#define GL_DRAW_BUFFER5_ATI 0x882A +#define GL_DRAW_BUFFER6_ATI 0x882B +#define GL_DRAW_BUFFER7_ATI 0x882C +#define GL_DRAW_BUFFER8_ATI 0x882D +#define GL_DRAW_BUFFER9_ATI 0x882E +#define GL_DRAW_BUFFER10_ATI 0x882F +#define GL_DRAW_BUFFER11_ATI 0x8830 +#define GL_DRAW_BUFFER12_ATI 0x8831 +#define GL_DRAW_BUFFER13_ATI 0x8832 +#define GL_DRAW_BUFFER14_ATI 0x8833 +#define GL_DRAW_BUFFER15_ATI 0x8834 +#endif + +#ifndef GL_ATI_pixel_format_float +#define GL_TYPE_RGBA_FLOAT_ATI 0x8820 +#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 +#endif + +#ifndef GL_ATI_texture_env_combine3 +#define GL_MODULATE_ADD_ATI 0x8744 +#define GL_MODULATE_SIGNED_ADD_ATI 0x8745 +#define GL_MODULATE_SUBTRACT_ATI 0x8746 +#endif + +#ifndef GL_ATI_texture_float +#define GL_RGBA_FLOAT32_ATI 0x8814 +#define GL_RGB_FLOAT32_ATI 0x8815 +#define GL_ALPHA_FLOAT32_ATI 0x8816 +#define GL_INTENSITY_FLOAT32_ATI 0x8817 +#define GL_LUMINANCE_FLOAT32_ATI 0x8818 +#define GL_LUMINANCE_ALPHA_FLOAT32_ATI 0x8819 +#define GL_RGBA_FLOAT16_ATI 0x881A +#define GL_RGB_FLOAT16_ATI 0x881B +#define GL_ALPHA_FLOAT16_ATI 0x881C +#define GL_INTENSITY_FLOAT16_ATI 0x881D +#define GL_LUMINANCE_FLOAT16_ATI 0x881E +#define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F +#endif + +#ifndef GL_NV_float_buffer +#define GL_FLOAT_R_NV 0x8880 +#define GL_FLOAT_RG_NV 0x8881 +#define GL_FLOAT_RGB_NV 0x8882 +#define GL_FLOAT_RGBA_NV 0x8883 +#define GL_FLOAT_R16_NV 0x8884 +#define GL_FLOAT_R32_NV 0x8885 +#define GL_FLOAT_RG16_NV 0x8886 +#define GL_FLOAT_RG32_NV 0x8887 +#define GL_FLOAT_RGB16_NV 0x8888 +#define GL_FLOAT_RGB32_NV 0x8889 +#define GL_FLOAT_RGBA16_NV 0x888A +#define GL_FLOAT_RGBA32_NV 0x888B +#define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C +#define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D +#define GL_FLOAT_RGBA_MODE_NV 0x888E +#endif + +#ifndef GL_NV_fragment_program +#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868 +#define GL_FRAGMENT_PROGRAM_NV 0x8870 +#define GL_MAX_TEXTURE_COORDS_NV 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872 +#define GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873 +#define GL_PROGRAM_ERROR_STRING_NV 0x8874 +#endif + +#ifndef GL_NV_half_float +#define GL_HALF_FLOAT_NV 0x140B +#endif + +#ifndef GL_NV_pixel_data_range +#define GL_WRITE_PIXEL_DATA_RANGE_NV 0x8878 +#define GL_READ_PIXEL_DATA_RANGE_NV 0x8879 +#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A +#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B +#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C +#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D +#endif + +#ifndef GL_NV_primitive_restart +#define GL_PRIMITIVE_RESTART_NV 0x8558 +#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559 +#endif + +#ifndef GL_NV_texture_expand_normal +#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F +#endif + +#ifndef GL_NV_vertex_program2 +#endif + +#ifndef GL_ATI_map_object_buffer +#endif + +#ifndef GL_ATI_separate_stencil +#define GL_STENCIL_BACK_FUNC_ATI 0x8800 +#define GL_STENCIL_BACK_FAIL_ATI 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803 +#endif + +#ifndef GL_ATI_vertex_attrib_array_object +#endif + +#ifndef GL_OES_read_format +#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B +#endif + +#ifndef GL_EXT_depth_bounds_test +#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 +#define GL_DEPTH_BOUNDS_EXT 0x8891 +#endif + +#ifndef GL_EXT_texture_mirror_clamp +#define GL_MIRROR_CLAMP_EXT 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743 +#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912 +#endif + +#ifndef GL_EXT_blend_equation_separate +#define GL_BLEND_EQUATION_RGB_EXT GL_BLEND_EQUATION +#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D +#endif + +#ifndef GL_MESA_pack_invert +#define GL_PACK_INVERT_MESA 0x8758 +#endif + +#ifndef GL_MESA_ycbcr_texture +#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB +#define GL_YCBCR_MESA 0x8757 +#endif + +#ifndef GL_EXT_pixel_buffer_object +#define GL_PIXEL_PACK_BUFFER_EXT 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF +#endif + +#ifndef GL_NV_fragment_program_option +#endif + +#ifndef GL_NV_fragment_program2 +#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 +#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 +#define GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6 +#define GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7 +#define GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8 +#endif + +#ifndef GL_NV_vertex_program2_option +/* reuse GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV */ +/* reuse GL_MAX_PROGRAM_CALL_DEPTH_NV */ +#endif + +#ifndef GL_NV_vertex_program3 +/* reuse GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB */ +#endif + +#ifndef GL_EXT_framebuffer_object +#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 +#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 +#define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 +#define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 +#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF +#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 +#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 +#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 +#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 +#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 +#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 +#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 +#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 +#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 +#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 +#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA +#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB +#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC +#define GL_COLOR_ATTACHMENT13_EXT 0x8CED +#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE +#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF +#define GL_DEPTH_ATTACHMENT_EXT 0x8D00 +#define GL_STENCIL_ATTACHMENT_EXT 0x8D20 +#define GL_FRAMEBUFFER_EXT 0x8D40 +#define GL_RENDERBUFFER_EXT 0x8D41 +#define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 +#define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 +#define GL_STENCIL_INDEX1_EXT 0x8D46 +#define GL_STENCIL_INDEX4_EXT 0x8D47 +#define GL_STENCIL_INDEX8_EXT 0x8D48 +#define GL_STENCIL_INDEX16_EXT 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55 +#endif + +#ifndef GL_GREMEDY_string_marker +#endif + +#ifndef GL_EXT_packed_depth_stencil +#define GL_DEPTH_STENCIL_EXT 0x84F9 +#define GL_UNSIGNED_INT_24_8_EXT 0x84FA +#define GL_DEPTH24_STENCIL8_EXT 0x88F0 +#define GL_TEXTURE_STENCIL_SIZE_EXT 0x88F1 +#endif + +#ifndef GL_EXT_stencil_clear_tag +#define GL_STENCIL_TAG_BITS_EXT 0x88F2 +#define GL_STENCIL_CLEAR_TAG_VALUE_EXT 0x88F3 +#endif + +#ifndef GL_EXT_texture_sRGB +#define GL_SRGB_EXT 0x8C40 +#define GL_SRGB8_EXT 0x8C41 +#define GL_SRGB_ALPHA_EXT 0x8C42 +#define GL_SRGB8_ALPHA8_EXT 0x8C43 +#define GL_SLUMINANCE_ALPHA_EXT 0x8C44 +#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45 +#define GL_SLUMINANCE_EXT 0x8C46 +#define GL_SLUMINANCE8_EXT 0x8C47 +#define GL_COMPRESSED_SRGB_EXT 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49 +#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A +#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B +#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F +#endif + +#ifndef GL_EXT_framebuffer_blit +#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 +#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 +#define GL_DRAW_FRAMEBUFFER_BINDING_EXT GL_FRAMEBUFFER_BINDING_EXT +#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA +#endif + +#ifndef GL_EXT_framebuffer_multisample +#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 +#define GL_MAX_SAMPLES_EXT 0x8D57 +#endif + +#ifndef GL_MESAX_texture_stack +#define GL_TEXTURE_1D_STACK_MESAX 0x8759 +#define GL_TEXTURE_2D_STACK_MESAX 0x875A +#define GL_PROXY_TEXTURE_1D_STACK_MESAX 0x875B +#define GL_PROXY_TEXTURE_2D_STACK_MESAX 0x875C +#define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D +#define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E +#endif + +#ifndef GL_EXT_timer_query +#define GL_TIME_ELAPSED_EXT 0x88BF +#endif + +#ifndef GL_EXT_gpu_program_parameters +#endif + +#ifndef GL_APPLE_flush_buffer_range +#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12 +#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13 +#endif + +#ifndef GL_NV_gpu_program4 +#define GL_MIN_PROGRAM_TEXEL_OFFSET_NV 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET_NV 0x8905 +#define GL_PROGRAM_ATTRIB_COMPONENTS_NV 0x8906 +#define GL_PROGRAM_RESULT_COMPONENTS_NV 0x8907 +#define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908 +#define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909 +#define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5 +#define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6 +#endif + +#ifndef GL_NV_geometry_program4 +#define GL_LINES_ADJACENCY_EXT 0x000A +#define GL_LINE_STRIP_ADJACENCY_EXT 0x000B +#define GL_TRIANGLES_ADJACENCY_EXT 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0x000D +#define GL_GEOMETRY_PROGRAM_NV 0x8C26 +#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27 +#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28 +#define GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA +#define GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB +#define GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 +#define GL_PROGRAM_POINT_SIZE_EXT 0x8642 +#endif + +#ifndef GL_EXT_geometry_shader4 +#define GL_GEOMETRY_SHADER_EXT 0x8DD9 +/* reuse GL_GEOMETRY_VERTICES_OUT_EXT */ +/* reuse GL_GEOMETRY_INPUT_TYPE_EXT */ +/* reuse GL_GEOMETRY_OUTPUT_TYPE_EXT */ +/* reuse GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT */ +#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD +#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE +#define GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1 +/* reuse GL_LINES_ADJACENCY_EXT */ +/* reuse GL_LINE_STRIP_ADJACENCY_EXT */ +/* reuse GL_TRIANGLES_ADJACENCY_EXT */ +/* reuse GL_TRIANGLE_STRIP_ADJACENCY_EXT */ +/* reuse GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT */ +/* reuse GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT */ +/* reuse GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT */ +/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT */ +/* reuse GL_PROGRAM_POINT_SIZE_EXT */ +#endif + +#ifndef GL_NV_vertex_program4 +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD +#endif + +#ifndef GL_EXT_gpu_shader4 +#define GL_SAMPLER_1D_ARRAY_EXT 0x8DC0 +#define GL_SAMPLER_2D_ARRAY_EXT 0x8DC1 +#define GL_SAMPLER_BUFFER_EXT 0x8DC2 +#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3 +#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4 +#define GL_SAMPLER_CUBE_SHADOW_EXT 0x8DC5 +#define GL_UNSIGNED_INT_VEC2_EXT 0x8DC6 +#define GL_UNSIGNED_INT_VEC3_EXT 0x8DC7 +#define GL_UNSIGNED_INT_VEC4_EXT 0x8DC8 +#define GL_INT_SAMPLER_1D_EXT 0x8DC9 +#define GL_INT_SAMPLER_2D_EXT 0x8DCA +#define GL_INT_SAMPLER_3D_EXT 0x8DCB +#define GL_INT_SAMPLER_CUBE_EXT 0x8DCC +#define GL_INT_SAMPLER_2D_RECT_EXT 0x8DCD +#define GL_INT_SAMPLER_1D_ARRAY_EXT 0x8DCE +#define GL_INT_SAMPLER_2D_ARRAY_EXT 0x8DCF +#define GL_INT_SAMPLER_BUFFER_EXT 0x8DD0 +#define GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4 +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8 +#endif + +#ifndef GL_EXT_draw_instanced +#endif + +#ifndef GL_EXT_packed_float +#define GL_R11F_G11F_B10F_EXT 0x8C3A +#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B +#define GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C +#endif + +#ifndef GL_EXT_texture_array +#define GL_TEXTURE_1D_ARRAY_EXT 0x8C18 +#define GL_PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19 +#define GL_TEXTURE_2D_ARRAY_EXT 0x8C1A +#define GL_PROXY_TEXTURE_2D_ARRAY_EXT 0x8C1B +#define GL_TEXTURE_BINDING_1D_ARRAY_EXT 0x8C1C +#define GL_TEXTURE_BINDING_2D_ARRAY_EXT 0x8C1D +#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF +#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E +/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT */ +#endif + +#ifndef GL_EXT_texture_buffer_object +#define GL_TEXTURE_BUFFER_EXT 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT_EXT 0x8C2E +#endif + +#ifndef GL_EXT_texture_compression_latc +#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70 +#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71 +#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72 +#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73 +#endif + +#ifndef GL_EXT_texture_compression_rgtc +#define GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB +#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC +#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD +#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE +#endif + +#ifndef GL_EXT_texture_shared_exponent +#define GL_RGB9_E5_EXT 0x8C3D +#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E +#define GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F +#endif + +#ifndef GL_NV_depth_buffer_float +#define GL_DEPTH_COMPONENT32F_NV 0x8DAB +#define GL_DEPTH32F_STENCIL8_NV 0x8DAC +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD +#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF +#endif + +#ifndef GL_NV_fragment_program4 +#endif + +#ifndef GL_NV_framebuffer_multisample_coverage +#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB +#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10 +#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11 +#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12 +#endif + +#ifndef GL_EXT_framebuffer_sRGB +#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 +#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA +#endif + +#ifndef GL_NV_geometry_shader4 +#endif + +#ifndef GL_NV_parameter_buffer_object +#define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0 +#define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1 +#define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2 +#define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3 +#define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4 +#endif + +#ifndef GL_EXT_draw_buffers2 +#endif + +#ifndef GL_NV_transform_feedback +#define GL_BACK_PRIMARY_COLOR_NV 0x8C77 +#define GL_BACK_SECONDARY_COLOR_NV 0x8C78 +#define GL_TEXTURE_COORD_NV 0x8C79 +#define GL_CLIP_DISTANCE_NV 0x8C7A +#define GL_VERTEX_ID_NV 0x8C7B +#define GL_PRIMITIVE_ID_NV 0x8C7C +#define GL_GENERIC_ATTRIB_NV 0x8C7D +#define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV 0x8C7E +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80 +#define GL_ACTIVE_VARYINGS_NV 0x8C81 +#define GL_ACTIVE_VARYING_MAX_LENGTH_NV 0x8C82 +#define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85 +#define GL_TRANSFORM_FEEDBACK_RECORD_NV 0x8C86 +#define GL_PRIMITIVES_GENERATED_NV 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88 +#define GL_RASTERIZER_DISCARD_NV 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B +#define GL_INTERLEAVED_ATTRIBS_NV 0x8C8C +#define GL_SEPARATE_ATTRIBS_NV 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER_NV 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F +#endif + +#ifndef GL_EXT_bindable_uniform +#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2 +#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3 +#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4 +#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED +#define GL_UNIFORM_BUFFER_EXT 0x8DEE +#define GL_UNIFORM_BUFFER_BINDING_EXT 0x8DEF +#endif + +#ifndef GL_EXT_texture_integer +#define GL_RGBA32UI_EXT 0x8D70 +#define GL_RGB32UI_EXT 0x8D71 +#define GL_ALPHA32UI_EXT 0x8D72 +#define GL_INTENSITY32UI_EXT 0x8D73 +#define GL_LUMINANCE32UI_EXT 0x8D74 +#define GL_LUMINANCE_ALPHA32UI_EXT 0x8D75 +#define GL_RGBA16UI_EXT 0x8D76 +#define GL_RGB16UI_EXT 0x8D77 +#define GL_ALPHA16UI_EXT 0x8D78 +#define GL_INTENSITY16UI_EXT 0x8D79 +#define GL_LUMINANCE16UI_EXT 0x8D7A +#define GL_LUMINANCE_ALPHA16UI_EXT 0x8D7B +#define GL_RGBA8UI_EXT 0x8D7C +#define GL_RGB8UI_EXT 0x8D7D +#define GL_ALPHA8UI_EXT 0x8D7E +#define GL_INTENSITY8UI_EXT 0x8D7F +#define GL_LUMINANCE8UI_EXT 0x8D80 +#define GL_LUMINANCE_ALPHA8UI_EXT 0x8D81 +#define GL_RGBA32I_EXT 0x8D82 +#define GL_RGB32I_EXT 0x8D83 +#define GL_ALPHA32I_EXT 0x8D84 +#define GL_INTENSITY32I_EXT 0x8D85 +#define GL_LUMINANCE32I_EXT 0x8D86 +#define GL_LUMINANCE_ALPHA32I_EXT 0x8D87 +#define GL_RGBA16I_EXT 0x8D88 +#define GL_RGB16I_EXT 0x8D89 +#define GL_ALPHA16I_EXT 0x8D8A +#define GL_INTENSITY16I_EXT 0x8D8B +#define GL_LUMINANCE16I_EXT 0x8D8C +#define GL_LUMINANCE_ALPHA16I_EXT 0x8D8D +#define GL_RGBA8I_EXT 0x8D8E +#define GL_RGB8I_EXT 0x8D8F +#define GL_ALPHA8I_EXT 0x8D90 +#define GL_INTENSITY8I_EXT 0x8D91 +#define GL_LUMINANCE8I_EXT 0x8D92 +#define GL_LUMINANCE_ALPHA8I_EXT 0x8D93 +#define GL_RED_INTEGER_EXT 0x8D94 +#define GL_GREEN_INTEGER_EXT 0x8D95 +#define GL_BLUE_INTEGER_EXT 0x8D96 +#define GL_ALPHA_INTEGER_EXT 0x8D97 +#define GL_RGB_INTEGER_EXT 0x8D98 +#define GL_RGBA_INTEGER_EXT 0x8D99 +#define GL_BGR_INTEGER_EXT 0x8D9A +#define GL_BGRA_INTEGER_EXT 0x8D9B +#define GL_LUMINANCE_INTEGER_EXT 0x8D9C +#define GL_LUMINANCE_ALPHA_INTEGER_EXT 0x8D9D +#define GL_RGBA_INTEGER_MODE_EXT 0x8D9E +#endif + +#ifndef GL_GREMEDY_frame_terminator +#endif + +#ifndef GL_NV_conditional_render +#define GL_QUERY_WAIT_NV 0x8E13 +#define GL_QUERY_NO_WAIT_NV 0x8E14 +#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16 +#endif + +#ifndef GL_NV_present_video +#define GL_FRAME_NV 0x8E26 +#define GL_FIELDS_NV 0x8E27 +#define GL_CURRENT_TIME_NV 0x8E28 +#define GL_NUM_FILL_STREAMS_NV 0x8E29 +#define GL_PRESENT_TIME_NV 0x8E2A +#define GL_PRESENT_DURATION_NV 0x8E2B +#endif + +#ifndef GL_EXT_transform_feedback +#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85 +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F +#define GL_INTERLEAVED_ATTRIBS_EXT 0x8C8C +#define GL_SEPARATE_ATTRIBS_EXT 0x8C8D +#define GL_PRIMITIVES_GENERATED_EXT 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88 +#define GL_RASTERIZER_DISCARD_EXT 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80 +#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76 +#endif + + +/*************************************************************/ + +#include <stddef.h> +#ifndef GL_VERSION_2_0 +/* GL type for program/shader text */ +typedef char GLchar; /* native character */ +#endif + +#ifndef GL_VERSION_1_5 +/* GL types for handling large vertex buffer objects */ +typedef ptrdiff_t GLintptr; +typedef ptrdiff_t GLsizeiptr; +#endif + +#ifndef GL_ARB_vertex_buffer_object +/* GL types for handling large vertex buffer objects */ +typedef ptrdiff_t GLintptrARB; +typedef ptrdiff_t GLsizeiptrARB; +#endif + +#ifndef GL_ARB_shader_objects +/* GL types for handling shader object handles and program/shader text */ +typedef char GLcharARB; /* native character */ +typedef unsigned int VBoxGLhandleARB; /* shader object handle */ +# ifdef RT_OS_DARWIN +typedef void* GLhandleARB; /* shader object handle */ +# else +typedef unsigned int GLhandleARB; /* native shader object handle */ +# endif +#else +# error "GL_ARB_shader_objects should NOT be defined here!!" +#endif + +/* GL types for "half" precision (s10e5) float data in host memory */ +#ifndef GL_ARB_half_float_pixel +typedef unsigned short GLhalfARB; +#endif + +#ifndef GL_NV_half_float +typedef unsigned short GLhalfNV; +#endif + +#ifndef GLEXT_64_TYPES_DEFINED +/* This code block is duplicated in glxext.h, so must be protected */ +#define GLEXT_64_TYPES_DEFINED +/* Define int32_t, int64_t, and uint64_t types for UST/MSC */ +/* (as used in the GL_EXT_timer_query extension). */ +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#include <inttypes.h> +#elif defined(__sun__) || defined(__digital__) +#include <inttypes.h> +#if defined(__STDC__) +#if defined(__arch64__) || defined(_LP64) +typedef long int int64_t; +typedef unsigned long int uint64_t; +#else +typedef long long int int64_t; +typedef unsigned long long int uint64_t; +#endif /* __arch64__ */ +#endif /* __STDC__ */ +#elif defined( __VMS ) || defined(__sgi) +#include <inttypes.h> +#elif defined(__SCO__) || defined(__USLC__) +#include <stdint.h> +#elif defined(__UNIXOS2__) || defined(__SOL64__) +typedef long int int32_t; +typedef long long int int64_t; +typedef unsigned long long int uint64_t; +#elif defined(_WIN32) && defined(__GNUC__) +#include <stdint.h> +#elif defined(_WIN32) +typedef __int32 int32_t; +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; +#else +#include <inttypes.h> /* Fallback option */ +#endif +#endif + +#ifndef GL_EXT_timer_query +typedef int64_t GLint64EXT; +typedef uint64_t GLuint64EXT; +#endif + +#ifndef GL_VERSION_1_2 +#define GL_VERSION_1_2 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf); +GLAPI void APIENTRY glBlendEquation (GLenum); +GLAPI void APIENTRY glDrawRangeElements (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); +GLAPI void APIENTRY glColorTable (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glColorTableParameterfv (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glColorTableParameteriv (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glCopyColorTable (GLenum, GLenum, GLint, GLint, GLsizei); +GLAPI void APIENTRY glGetColorTable (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetColorTableParameterfv (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetColorTableParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glColorSubTable (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glCopyColorSubTable (GLenum, GLsizei, GLint, GLint, GLsizei); +GLAPI void APIENTRY glConvolutionFilter1D (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glConvolutionFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glConvolutionParameterf (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glConvolutionParameterfv (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glConvolutionParameteri (GLenum, GLenum, GLint); +GLAPI void APIENTRY glConvolutionParameteriv (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum, GLenum, GLint, GLint, GLsizei); +GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); +GLAPI void APIENTRY glGetConvolutionFilter (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetSeparableFilter (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); +GLAPI void APIENTRY glSeparableFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); +GLAPI void APIENTRY glGetHistogram (GLenum, GLboolean, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetHistogramParameterfv (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetHistogramParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetMinmax (GLenum, GLboolean, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glHistogram (GLenum, GLsizei, GLenum, GLboolean); +GLAPI void APIENTRY glMinmax (GLenum, GLenum, GLboolean); +GLAPI void APIENTRY glResetHistogram (GLenum); +GLAPI void APIENTRY glResetMinmax (GLenum); +GLAPI void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); +typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); +typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); +typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); +typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); +typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); +typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target); +typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target); +typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#endif + +#ifndef GL_VERSION_1_3 +#define GL_VERSION_1_3 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveTexture (GLenum); +GLAPI void APIENTRY glClientActiveTexture (GLenum); +GLAPI void APIENTRY glMultiTexCoord1d (GLenum, GLdouble); +GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord1f (GLenum, GLfloat); +GLAPI void APIENTRY glMultiTexCoord1fv (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord1i (GLenum, GLint); +GLAPI void APIENTRY glMultiTexCoord1iv (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord1s (GLenum, GLshort); +GLAPI void APIENTRY glMultiTexCoord1sv (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord2d (GLenum, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord2dv (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord2f (GLenum, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord2fv (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord2i (GLenum, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord2iv (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord2s (GLenum, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord2sv (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord3d (GLenum, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord3dv (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord3f (GLenum, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord3fv (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord3i (GLenum, GLint, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord3iv (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord3s (GLenum, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord3sv (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord4d (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord4dv (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord4f (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord4fv (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord4i (GLenum, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord4iv (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord4s (GLenum, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord4sv (GLenum, const GLshort *); +GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *); +GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *); +GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *); +GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *); +GLAPI void APIENTRY glSampleCoverage (GLclampf, GLboolean); +GLAPI void APIENTRY glCompressedTexImage3D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexImage2D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexImage1D (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glGetCompressedTexImage (GLenum, GLint, GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m); +typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m); +typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m); +typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m); +typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img); +#endif + +#ifndef GL_VERSION_1_4 +#define GL_VERSION_1_4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparate (GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glFogCoordf (GLfloat); +GLAPI void APIENTRY glFogCoordfv (const GLfloat *); +GLAPI void APIENTRY glFogCoordd (GLdouble); +GLAPI void APIENTRY glFogCoorddv (const GLdouble *); +GLAPI void APIENTRY glFogCoordPointer (GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glMultiDrawArrays (GLenum, GLint *, GLsizei *, GLsizei); +GLAPI void APIENTRY glMultiDrawElements (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei); +GLAPI void APIENTRY glPointParameterf (GLenum, GLfloat); +GLAPI void APIENTRY glPointParameterfv (GLenum, const GLfloat *); +GLAPI void APIENTRY glPointParameteri (GLenum, GLint); +GLAPI void APIENTRY glPointParameteriv (GLenum, const GLint *); +GLAPI void APIENTRY glSecondaryColor3b (GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *); +GLAPI void APIENTRY glSecondaryColor3d (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *); +GLAPI void APIENTRY glSecondaryColor3f (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *); +GLAPI void APIENTRY glSecondaryColor3i (GLint, GLint, GLint); +GLAPI void APIENTRY glSecondaryColor3iv (const GLint *); +GLAPI void APIENTRY glSecondaryColor3s (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *); +GLAPI void APIENTRY glSecondaryColor3ub (GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *); +GLAPI void APIENTRY glSecondaryColor3ui (GLuint, GLuint, GLuint); +GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *); +GLAPI void APIENTRY glSecondaryColor3us (GLushort, GLushort, GLushort); +GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *); +GLAPI void APIENTRY glSecondaryColorPointer (GLint, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glWindowPos2d (GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos2dv (const GLdouble *); +GLAPI void APIENTRY glWindowPos2f (GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos2fv (const GLfloat *); +GLAPI void APIENTRY glWindowPos2i (GLint, GLint); +GLAPI void APIENTRY glWindowPos2iv (const GLint *); +GLAPI void APIENTRY glWindowPos2s (GLshort, GLshort); +GLAPI void APIENTRY glWindowPos2sv (const GLshort *); +GLAPI void APIENTRY glWindowPos3d (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos3dv (const GLdouble *); +GLAPI void APIENTRY glWindowPos3f (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos3fv (const GLfloat *); +GLAPI void APIENTRY glWindowPos3i (GLint, GLint, GLint); +GLAPI void APIENTRY glWindowPos3iv (const GLint *); +GLAPI void APIENTRY glWindowPos3s (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glWindowPos3sv (const GLshort *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord); +typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord); +typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord); +typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord); +typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); +typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v); +#endif + +#ifndef GL_VERSION_1_5 +#define GL_VERSION_1_5 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenQueries (GLsizei, GLuint *); +GLAPI void APIENTRY glDeleteQueries (GLsizei, const GLuint *); +GLAPI GLboolean APIENTRY glIsQuery (GLuint); +GLAPI void APIENTRY glBeginQuery (GLenum, GLuint); +GLAPI void APIENTRY glEndQuery (GLenum); +GLAPI void APIENTRY glGetQueryiv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetQueryObjectiv (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetQueryObjectuiv (GLuint, GLenum, GLuint *); +GLAPI void APIENTRY glBindBuffer (GLenum, GLuint); +GLAPI void APIENTRY glDeleteBuffers (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenBuffers (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsBuffer (GLuint); +GLAPI void APIENTRY glBufferData (GLenum, GLsizeiptr, const GLvoid *, GLenum); +GLAPI void APIENTRY glBufferSubData (GLenum, GLintptr, GLsizeiptr, const GLvoid *); +GLAPI void APIENTRY glGetBufferSubData (GLenum, GLintptr, GLsizeiptr, GLvoid *); +GLAPI GLvoid* APIENTRY glMapBuffer (GLenum, GLenum); +GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum); +GLAPI void APIENTRY glGetBufferParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetBufferPointerv (GLenum, GLenum, GLvoid* *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); +typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); +typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); +typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); +typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); +typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); +typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); +typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params); +#endif + +#ifndef GL_VERSION_2_0 +#define GL_VERSION_2_0 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationSeparate (GLenum, GLenum); +GLAPI void APIENTRY glDrawBuffers (GLsizei, const GLenum *); +GLAPI void APIENTRY glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint); +GLAPI void APIENTRY glStencilMaskSeparate (GLenum, GLuint); +GLAPI void APIENTRY glAttachShader (GLuint, GLuint); +GLAPI void APIENTRY glBindAttribLocation (GLuint, GLuint, const GLchar *); +GLAPI void APIENTRY glCompileShader (GLuint); +GLAPI GLuint APIENTRY glCreateProgram (void); +GLAPI GLuint APIENTRY glCreateShader (GLenum); +GLAPI void APIENTRY glDeleteProgram (GLuint); +GLAPI void APIENTRY glDeleteShader (GLuint); +GLAPI void APIENTRY glDetachShader (GLuint, GLuint); +GLAPI void APIENTRY glDisableVertexAttribArray (GLuint); +GLAPI void APIENTRY glEnableVertexAttribArray (GLuint); +GLAPI void APIENTRY glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); +GLAPI void APIENTRY glGetActiveUniform (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); +GLAPI void APIENTRY glGetAttachedShaders (GLuint, GLsizei, GLsizei *, GLuint *); +GLAPI GLint APIENTRY glGetAttribLocation (GLuint, const GLchar *); +GLAPI void APIENTRY glGetProgramiv (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetProgramInfoLog (GLuint, GLsizei, GLsizei *, GLchar *); +GLAPI void APIENTRY glGetShaderiv (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetShaderInfoLog (GLuint, GLsizei, GLsizei *, GLchar *); +GLAPI void APIENTRY glGetShaderSource (GLuint, GLsizei, GLsizei *, GLchar *); +GLAPI GLint APIENTRY glGetUniformLocation (GLuint, const GLchar *); +GLAPI void APIENTRY glGetUniformfv (GLuint, GLint, GLfloat *); +GLAPI void APIENTRY glGetUniformiv (GLuint, GLint, GLint *); +GLAPI void APIENTRY glGetVertexAttribdv (GLuint, GLenum, GLdouble *); +GLAPI void APIENTRY glGetVertexAttribfv (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVertexAttribiv (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint, GLenum, GLvoid* *); +GLAPI GLboolean APIENTRY glIsProgram (GLuint); +GLAPI GLboolean APIENTRY glIsShader (GLuint); +GLAPI void APIENTRY glLinkProgram (GLuint); +GLAPI void APIENTRY glShaderSource (GLuint, GLsizei, const GLchar* *, const GLint *); +GLAPI void APIENTRY glUseProgram (GLuint); +GLAPI void APIENTRY glUniform1f (GLint, GLfloat); +GLAPI void APIENTRY glUniform2f (GLint, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform3f (GLint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform4f (GLint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform1i (GLint, GLint); +GLAPI void APIENTRY glUniform2i (GLint, GLint, GLint); +GLAPI void APIENTRY glUniform3i (GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glUniform4i (GLint, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glUniform1fv (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform2fv (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform3fv (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform4fv (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform1iv (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform2iv (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform3iv (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform4iv (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniformMatrix2fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix3fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix4fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glValidateProgram (GLuint); +GLAPI void APIENTRY glVertexAttrib1d (GLuint, GLdouble); +GLAPI void APIENTRY glVertexAttrib1dv (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib1f (GLuint, GLfloat); +GLAPI void APIENTRY glVertexAttrib1fv (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib1s (GLuint, GLshort); +GLAPI void APIENTRY glVertexAttrib1sv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib2d (GLuint, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib2dv (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib2f (GLuint, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib2fv (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib2s (GLuint, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib2sv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib3d (GLuint, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib3dv (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib3fv (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib3sv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttrib4Niv (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttrib4bv (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttrib4d (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib4dv (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib4fv (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib4iv (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib4sv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4ubv (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttrib4uiv (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttrib4usv (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttribPointer (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs); +typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask); +typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name); +typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); +typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); +typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj); +typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); +typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params); +typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); +typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length); +typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); +typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_VERSION_2_1 +#define GL_VERSION_2_1 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUniformMatrix2x3fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix3x2fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix2x4fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix4x2fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix3x4fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix4x3fv (GLint, GLsizei, GLboolean, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +#endif + +#ifndef GL_VERSION_3_0 +#define GL_VERSION_3_0 1 +#endif + +#ifndef GL_ARB_multitexture +#define GL_ARB_multitexture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveTextureARB (GLenum); +GLAPI void APIENTRY glClientActiveTextureARB (GLenum); +GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum, GLdouble); +GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum, GLfloat); +GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum, GLint); +GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum, GLshort); +GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum, GLint, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum, const GLshort *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); +#endif + +#ifndef GL_ARB_transpose_matrix +#define GL_ARB_transpose_matrix 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *); +GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *); +GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *); +GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); +typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); +typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); +typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); +#endif + +#ifndef GL_ARB_multisample +#define GL_ARB_multisample 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSampleCoverageARB (GLclampf, GLboolean); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert); +#endif + +#ifndef GL_ARB_texture_env_add +#define GL_ARB_texture_env_add 1 +#endif + +#ifndef GL_ARB_texture_cube_map +#define GL_ARB_texture_cube_map 1 +#endif + +#ifndef GL_ARB_texture_compression +#define GL_ARB_texture_compression 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum, GLint, GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img); +#endif + +#ifndef GL_ARB_texture_border_clamp +#define GL_ARB_texture_border_clamp 1 +#endif + +#ifndef GL_ARB_point_parameters +#define GL_ARB_point_parameters 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPointParameterfARB (GLenum, GLfloat); +GLAPI void APIENTRY glPointParameterfvARB (GLenum, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params); +#endif + +#ifndef GL_ARB_vertex_blend +#define GL_ARB_vertex_blend 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glWeightbvARB (GLint, const GLbyte *); +GLAPI void APIENTRY glWeightsvARB (GLint, const GLshort *); +GLAPI void APIENTRY glWeightivARB (GLint, const GLint *); +GLAPI void APIENTRY glWeightfvARB (GLint, const GLfloat *); +GLAPI void APIENTRY glWeightdvARB (GLint, const GLdouble *); +GLAPI void APIENTRY glWeightubvARB (GLint, const GLubyte *); +GLAPI void APIENTRY glWeightusvARB (GLint, const GLushort *); +GLAPI void APIENTRY glWeightuivARB (GLint, const GLuint *); +GLAPI void APIENTRY glWeightPointerARB (GLint, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glVertexBlendARB (GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights); +typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights); +typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights); +typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights); +typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights); +typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights); +typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights); +typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights); +typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count); +#endif + +#ifndef GL_ARB_matrix_palette +#define GL_ARB_matrix_palette 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint); +GLAPI void APIENTRY glMatrixIndexubvARB (GLint, const GLubyte *); +GLAPI void APIENTRY glMatrixIndexusvARB (GLint, const GLushort *); +GLAPI void APIENTRY glMatrixIndexuivARB (GLint, const GLuint *); +GLAPI void APIENTRY glMatrixIndexPointerARB (GLint, GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); +typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices); +typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices); +typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices); +typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_ARB_texture_env_combine +#define GL_ARB_texture_env_combine 1 +#endif + +#ifndef GL_ARB_texture_env_crossbar +#define GL_ARB_texture_env_crossbar 1 +#endif + +#ifndef GL_ARB_texture_env_dot3 +#define GL_ARB_texture_env_dot3 1 +#endif + +#ifndef GL_ARB_texture_mirrored_repeat +#define GL_ARB_texture_mirrored_repeat 1 +#endif + +#ifndef GL_ATI_texture_mirror_once +#define GL_ATI_texture_mirror_once 1 +#endif + +#ifndef GL_ARB_depth_texture +#define GL_ARB_depth_texture 1 +#endif + +#ifndef GL_ARB_shadow +#define GL_ARB_shadow 1 +#endif + +#ifndef GL_ARB_shadow_ambient +#define GL_ARB_shadow_ambient 1 +#endif + +#ifndef GL_ARB_window_pos +#define GL_ARB_window_pos 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glWindowPos2dARB (GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *); +GLAPI void APIENTRY glWindowPos2fARB (GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *); +GLAPI void APIENTRY glWindowPos2iARB (GLint, GLint); +GLAPI void APIENTRY glWindowPos2ivARB (const GLint *); +GLAPI void APIENTRY glWindowPos2sARB (GLshort, GLshort); +GLAPI void APIENTRY glWindowPos2svARB (const GLshort *); +GLAPI void APIENTRY glWindowPos3dARB (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *); +GLAPI void APIENTRY glWindowPos3fARB (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *); +GLAPI void APIENTRY glWindowPos3iARB (GLint, GLint, GLint); +GLAPI void APIENTRY glWindowPos3ivARB (const GLint *); +GLAPI void APIENTRY glWindowPos3sARB (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glWindowPos3svARB (const GLshort *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); +typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v); +#endif + +#ifndef GL_ARB_vertex_program +#define GL_ARB_vertex_program 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttrib1dARB (GLuint, GLdouble); +GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib1fARB (GLuint, GLfloat); +GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib1sARB (GLuint, GLshort); +GLAPI void APIENTRY glVertexAttrib1svARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib2dARB (GLuint, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib2fARB (GLuint, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib2sARB (GLuint, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib2svARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib3dARB (GLuint, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib3fARB (GLuint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib3sARB (GLuint, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib3svARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttrib4dARB (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib4fARB (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttrib4sARB (GLuint, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib4svARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttribPointerARB (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *); +GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint); +GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint); +GLAPI void APIENTRY glProgramStringARB (GLenum, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glBindProgramARB (GLenum, GLuint); +GLAPI void APIENTRY glDeleteProgramsARB (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenProgramsARB (GLsizei, GLuint *); +GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum, GLuint, const GLdouble *); +GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum, GLuint, const GLfloat *); +GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum, GLuint, const GLdouble *); +GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum, GLuint, const GLfloat *); +GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum, GLuint, GLdouble *); +GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum, GLuint, GLfloat *); +GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum, GLuint, GLdouble *); +GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum, GLuint, GLfloat *); +GLAPI void APIENTRY glGetProgramivARB (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetProgramStringARB (GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint, GLenum, GLdouble *); +GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVertexAttribivARB (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint, GLenum, GLvoid* *); +GLAPI GLboolean APIENTRY glIsProgramARB (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); +typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string); +typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); +typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs); +typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program); +#endif + +#ifndef GL_ARB_fragment_program +#define GL_ARB_fragment_program 1 +/* All ARB_fragment_program entry points are shared with ARB_vertex_program. */ +#endif + +#ifndef GL_ARB_vertex_buffer_object +#define GL_ARB_vertex_buffer_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindBufferARB (GLenum, GLuint); +GLAPI void APIENTRY glDeleteBuffersARB (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenBuffersARB (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsBufferARB (GLuint); +GLAPI void APIENTRY glBufferDataARB (GLenum, GLsizeiptrARB, const GLvoid *, GLenum); +GLAPI void APIENTRY glBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *); +GLAPI void APIENTRY glGetBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *); +GLAPI GLvoid* APIENTRY glMapBufferARB (GLenum, GLenum); +GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum); +GLAPI void APIENTRY glGetBufferParameterivARB (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetBufferPointervARB (GLenum, GLenum, GLvoid* *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); +typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers); +typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers); +typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage); +typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data); +typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data); +typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); +typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params); +#endif + +#ifndef GL_ARB_occlusion_query +#define GL_ARB_occlusion_query 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenQueriesARB (GLsizei, GLuint *); +GLAPI void APIENTRY glDeleteQueriesARB (GLsizei, const GLuint *); +GLAPI GLboolean APIENTRY glIsQueryARB (GLuint); +GLAPI void APIENTRY glBeginQueryARB (GLenum, GLuint); +GLAPI void APIENTRY glEndQueryARB (GLenum); +GLAPI void APIENTRY glGetQueryivARB (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetQueryObjectivARB (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint, GLenum, GLuint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params); +#endif + +#ifndef GL_ARB_shader_objects +#define GL_ARB_shader_objects 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDeleteObjectARB (VBoxGLhandleARB); +GLAPI VBoxGLhandleARB APIENTRY glGetHandleARB (GLenum); +GLAPI void APIENTRY glDetachObjectARB (VBoxGLhandleARB, VBoxGLhandleARB); +GLAPI VBoxGLhandleARB APIENTRY glCreateShaderObjectARB (GLenum); +GLAPI void APIENTRY glShaderSourceARB (VBoxGLhandleARB, GLsizei, const GLcharARB* *, const GLint *); +GLAPI void APIENTRY glCompileShaderARB (VBoxGLhandleARB); +GLAPI VBoxGLhandleARB APIENTRY glCreateProgramObjectARB (void); +GLAPI void APIENTRY glAttachObjectARB (VBoxGLhandleARB, VBoxGLhandleARB); +GLAPI void APIENTRY glLinkProgramARB (VBoxGLhandleARB); +GLAPI void APIENTRY glUseProgramObjectARB (VBoxGLhandleARB); +GLAPI void APIENTRY glValidateProgramARB (VBoxGLhandleARB); +GLAPI void APIENTRY glUniform1fARB (GLint, GLfloat); +GLAPI void APIENTRY glUniform2fARB (GLint, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform3fARB (GLint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform4fARB (GLint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform1iARB (GLint, GLint); +GLAPI void APIENTRY glUniform2iARB (GLint, GLint, GLint); +GLAPI void APIENTRY glUniform3iARB (GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glUniform4iARB (GLint, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glUniform1fvARB (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform2fvARB (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform3fvARB (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform4fvARB (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform1ivARB (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform2ivARB (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform3ivARB (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform4ivARB (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniformMatrix2fvARB (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix3fvARB (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix4fvARB (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glGetObjectParameterfvARB (VBoxGLhandleARB, GLenum, GLfloat *); +GLAPI void APIENTRY glGetObjectParameterivARB (VBoxGLhandleARB, GLenum, GLint *); +GLAPI void APIENTRY glGetInfoLogARB (VBoxGLhandleARB, GLsizei, GLsizei *, GLcharARB *); +GLAPI void APIENTRY glGetAttachedObjectsARB (VBoxGLhandleARB, GLsizei, GLsizei *, VBoxGLhandleARB *); +GLAPI GLint APIENTRY glGetUniformLocationARB (VBoxGLhandleARB, const GLcharARB *); +GLAPI void APIENTRY glGetActiveUniformARB (VBoxGLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); +GLAPI void APIENTRY glGetUniformfvARB (VBoxGLhandleARB, GLint, GLfloat *); +GLAPI void APIENTRY glGetUniformivARB (VBoxGLhandleARB, GLint, GLint *); +GLAPI void APIENTRY glGetShaderSourceARB (VBoxGLhandleARB, GLsizei, GLsizei *, GLcharARB *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (VBoxGLhandleARB obj); +typedef VBoxGLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname); +typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (VBoxGLhandleARB containerObj, VBoxGLhandleARB attachedObj); +typedef VBoxGLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); +typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (VBoxGLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length); +typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (VBoxGLhandleARB shaderObj); +typedef VBoxGLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void); +typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (VBoxGLhandleARB containerObj, VBoxGLhandleARB obj); +typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (VBoxGLhandleARB programObj); +typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (VBoxGLhandleARB programObj); +typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (VBoxGLhandleARB programObj); +typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); +typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (VBoxGLhandleARB obj, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (VBoxGLhandleARB obj, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (VBoxGLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog); +typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (VBoxGLhandleARB containerObj, GLsizei maxCount, GLsizei *count, VBoxGLhandleARB *obj); +typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (VBoxGLhandleARB programObj, const GLcharARB *name); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (VBoxGLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); +typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (VBoxGLhandleARB programObj, GLint location, GLfloat *params); +typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (VBoxGLhandleARB programObj, GLint location, GLint *params); +typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (VBoxGLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source); +#endif + +#ifndef GL_ARB_vertex_shader +#define GL_ARB_vertex_shader 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindAttribLocationARB (VBoxGLhandleARB, GLuint, const GLcharARB *); +GLAPI void APIENTRY glGetActiveAttribARB (VBoxGLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); +GLAPI GLint APIENTRY glGetAttribLocationARB (VBoxGLhandleARB, const GLcharARB *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (VBoxGLhandleARB programObj, GLuint index, const GLcharARB *name); +typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (VBoxGLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); +typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (VBoxGLhandleARB programObj, const GLcharARB *name); +#endif + +#ifndef GL_ARB_fragment_shader +#define GL_ARB_fragment_shader 1 +#endif + +#ifndef GL_ARB_shading_language_100 +#define GL_ARB_shading_language_100 1 +#endif + +#ifndef GL_ARB_texture_non_power_of_two +#define GL_ARB_texture_non_power_of_two 1 +#endif + +#ifndef GL_ARB_point_sprite +#define GL_ARB_point_sprite 1 +#endif + +#ifndef GL_ARB_fragment_program_shadow +#define GL_ARB_fragment_program_shadow 1 +#endif + +#ifndef GL_ARB_draw_buffers +#define GL_ARB_draw_buffers 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawBuffersARB (GLsizei, const GLenum *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs); +#endif + +#ifndef GL_ARB_texture_rectangle +#define GL_ARB_texture_rectangle 1 +#endif + +#ifndef GL_ARB_color_buffer_float +#define GL_ARB_color_buffer_float 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glClampColorARB (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); +#endif + +#ifndef GL_ARB_half_float_pixel +#define GL_ARB_half_float_pixel 1 +#endif + +#ifndef GL_ARB_texture_float +#define GL_ARB_texture_float 1 +#endif + +#ifndef GL_ARB_pixel_buffer_object +#define GL_ARB_pixel_buffer_object 1 +#endif + +#ifndef GL_ARB_depth_buffer_float +#define GL_ARB_depth_buffer_float 1 +#endif + +#ifndef GL_ARB_draw_instanced +#define GL_ARB_draw_instanced 1 +#endif + +#ifndef GL_ARB_framebuffer_object +#define GL_ARB_framebuffer_object 1 +#endif + +#ifndef GL_ARB_framebuffer_sRGB +#define GL_ARB_framebuffer_sRGB 1 +#endif + +#ifndef GL_ARB_geometry_shader4 +#define GL_ARB_geometry_shader4 1 +#endif + +#ifndef GL_ARB_half_float_vertex +#define GL_ARB_half_float_vertex 1 +#endif + +#ifndef GL_ARB_instanced_arrays +#define GL_ARB_instanced_arrays 1 +#endif + +#ifndef GL_ARB_map_buffer_range +#define GL_ARB_map_buffer_range 1 +#endif + +#ifndef GL_ARB_texture_buffer_object +#define GL_ARB_texture_buffer_object 1 +#endif + +#ifndef GL_ARB_texture_compression_rgtc +#define GL_ARB_texture_compression_rgtc 1 +#endif + +#ifndef GL_ARB_texture_rg +#define GL_ARB_texture_rg 1 +#endif + +#ifndef GL_ARB_vertex_array_object +#define GL_ARB_vertex_array_object 1 +#endif + +#ifndef GL_EXT_abgr +#define GL_EXT_abgr 1 +#endif + +#ifndef GL_EXT_blend_color +#define GL_EXT_blend_color 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendColorEXT (GLclampf, GLclampf, GLclampf, GLclampf); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +#endif + +#ifndef GL_EXT_polygon_offset +#define GL_EXT_polygon_offset 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPolygonOffsetEXT (GLfloat, GLfloat); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); +#endif + +#ifndef GL_EXT_texture +#define GL_EXT_texture 1 +#endif + +#ifndef GL_EXT_texture3D +#define GL_EXT_texture3D 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexImage3DEXT (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); +#endif + +#ifndef GL_SGIS_texture_filter4 +#define GL_SGIS_texture_filter4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetTexFilterFuncSGIS (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glTexFilterFuncSGIS (GLenum, GLenum, GLsizei, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights); +typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); +#endif + +#ifndef GL_EXT_subtexture +#define GL_EXT_subtexture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexSubImage1DEXT (GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +#endif + +#ifndef GL_EXT_copy_texture +#define GL_EXT_copy_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCopyTexImage1DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); +GLAPI void APIENTRY glCopyTexImage2DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); +GLAPI void APIENTRY glCopyTexSubImage1DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei); +GLAPI void APIENTRY glCopyTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); +GLAPI void APIENTRY glCopyTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#endif + +#ifndef GL_EXT_histogram +#define GL_EXT_histogram 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetHistogramEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetHistogramParameterfvEXT (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetHistogramParameterivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetMinmaxEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetMinmaxParameterfvEXT (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetMinmaxParameterivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glHistogramEXT (GLenum, GLsizei, GLenum, GLboolean); +GLAPI void APIENTRY glMinmaxEXT (GLenum, GLenum, GLboolean); +GLAPI void APIENTRY glResetHistogramEXT (GLenum); +GLAPI void APIENTRY glResetMinmaxEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); +typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); +typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); +typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target); +#endif + +#ifndef GL_EXT_convolution +#define GL_EXT_convolution 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glConvolutionFilter1DEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glConvolutionFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glConvolutionParameterfEXT (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glConvolutionParameterfvEXT (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glConvolutionParameteriEXT (GLenum, GLenum, GLint); +GLAPI void APIENTRY glConvolutionParameterivEXT (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glCopyConvolutionFilter1DEXT (GLenum, GLenum, GLint, GLint, GLsizei); +GLAPI void APIENTRY glCopyConvolutionFilter2DEXT (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); +GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetConvolutionParameterfvEXT (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetConvolutionParameterivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetSeparableFilterEXT (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); +GLAPI void APIENTRY glSeparableFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); +typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); +typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); +#endif + +#ifndef GL_SGI_color_matrix +#define GL_SGI_color_matrix 1 +#endif + +#ifndef GL_SGI_color_table +#define GL_SGI_color_table 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorTableSGI (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glColorTableParameterfvSGI (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glColorTableParameterivSGI (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glCopyColorTableSGI (GLenum, GLenum, GLint, GLint, GLsizei); +GLAPI void APIENTRY glGetColorTableSGI (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetColorTableParameterfvSGI (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetColorTableParameterivSGI (GLenum, GLenum, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); +typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params); +#endif + +#ifndef GL_SGIX_pixel_texture +#define GL_SGIX_pixel_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPixelTexGenSGIX (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); +#endif + +#ifndef GL_SGIS_pixel_texture +#define GL_SGIS_pixel_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPixelTexGenParameteriSGIS (GLenum, GLint); +GLAPI void APIENTRY glPixelTexGenParameterivSGIS (GLenum, const GLint *); +GLAPI void APIENTRY glPixelTexGenParameterfSGIS (GLenum, GLfloat); +GLAPI void APIENTRY glPixelTexGenParameterfvSGIS (GLenum, const GLfloat *); +GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum, GLint *); +GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params); +#endif + +#ifndef GL_SGIS_texture4D +#define GL_SGIS_texture4D 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexImage4DSGIS (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glTexSubImage4DSGIS (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels); +#endif + +#ifndef GL_SGI_texture_color_table +#define GL_SGI_texture_color_table 1 +#endif + +#ifndef GL_EXT_cmyka +#define GL_EXT_cmyka 1 +#endif + +#ifndef GL_EXT_texture_object +#define GL_EXT_texture_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei, const GLuint *, GLboolean *); +GLAPI void APIENTRY glBindTextureEXT (GLenum, GLuint); +GLAPI void APIENTRY glDeleteTexturesEXT (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenTexturesEXT (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsTextureEXT (GLuint); +GLAPI void APIENTRY glPrioritizeTexturesEXT (GLsizei, const GLuint *, const GLclampf *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); +typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures); +typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures); +typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture); +typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); +#endif + +#ifndef GL_SGIS_detail_texture +#define GL_SGIS_detail_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDetailTexFuncSGIS (GLenum, GLsizei, const GLfloat *); +GLAPI void APIENTRY glGetDetailTexFuncSGIS (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); +typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points); +#endif + +#ifndef GL_SGIS_sharpen_texture +#define GL_SGIS_sharpen_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSharpenTexFuncSGIS (GLenum, GLsizei, const GLfloat *); +GLAPI void APIENTRY glGetSharpenTexFuncSGIS (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); +typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points); +#endif + +#ifndef GL_EXT_packed_pixels +#define GL_EXT_packed_pixels 1 +#endif + +#ifndef GL_SGIS_texture_lod +#define GL_SGIS_texture_lod 1 +#endif + +#ifndef GL_SGIS_multisample +#define GL_SGIS_multisample 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSampleMaskSGIS (GLclampf, GLboolean); +GLAPI void APIENTRY glSamplePatternSGIS (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); +typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); +#endif + +#ifndef GL_EXT_rescale_normal +#define GL_EXT_rescale_normal 1 +#endif + +#ifndef GL_EXT_vertex_array +#define GL_EXT_vertex_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glArrayElementEXT (GLint); +GLAPI void APIENTRY glColorPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +GLAPI void APIENTRY glDrawArraysEXT (GLenum, GLint, GLsizei); +GLAPI void APIENTRY glEdgeFlagPointerEXT (GLsizei, GLsizei, const GLboolean *); +GLAPI void APIENTRY glGetPointervEXT (GLenum, GLvoid* *); +GLAPI void APIENTRY glIndexPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *); +GLAPI void APIENTRY glNormalPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *); +GLAPI void APIENTRY glTexCoordPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +GLAPI void APIENTRY glVertexPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i); +typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer); +typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params); +typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +#endif + +#ifndef GL_EXT_misc_attribute +#define GL_EXT_misc_attribute 1 +#endif + +#ifndef GL_SGIS_generate_mipmap +#define GL_SGIS_generate_mipmap 1 +#endif + +#ifndef GL_SGIX_clipmap +#define GL_SGIX_clipmap 1 +#endif + +#ifndef GL_SGIX_shadow +#define GL_SGIX_shadow 1 +#endif + +#ifndef GL_SGIS_texture_edge_clamp +#define GL_SGIS_texture_edge_clamp 1 +#endif + +#ifndef GL_SGIS_texture_border_clamp +#define GL_SGIS_texture_border_clamp 1 +#endif + +#ifndef GL_EXT_blend_minmax +#define GL_EXT_blend_minmax 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); +#endif + +#ifndef GL_EXT_blend_subtract +#define GL_EXT_blend_subtract 1 +#endif + +#ifndef GL_EXT_blend_logic_op +#define GL_EXT_blend_logic_op 1 +#endif + +#ifndef GL_SGIX_interlace +#define GL_SGIX_interlace 1 +#endif + +#ifndef GL_SGIX_pixel_tiles +#define GL_SGIX_pixel_tiles 1 +#endif + +#ifndef GL_SGIX_texture_select +#define GL_SGIX_texture_select 1 +#endif + +#ifndef GL_SGIX_sprite +#define GL_SGIX_sprite 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSpriteParameterfSGIX (GLenum, GLfloat); +GLAPI void APIENTRY glSpriteParameterfvSGIX (GLenum, const GLfloat *); +GLAPI void APIENTRY glSpriteParameteriSGIX (GLenum, GLint); +GLAPI void APIENTRY glSpriteParameterivSGIX (GLenum, const GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params); +#endif + +#ifndef GL_SGIX_texture_multi_buffer +#define GL_SGIX_texture_multi_buffer 1 +#endif + +#ifndef GL_EXT_point_parameters +#define GL_EXT_point_parameters 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPointParameterfEXT (GLenum, GLfloat); +GLAPI void APIENTRY glPointParameterfvEXT (GLenum, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params); +#endif + +#ifndef GL_SGIS_point_parameters +#define GL_SGIS_point_parameters 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPointParameterfSGIS (GLenum, GLfloat); +GLAPI void APIENTRY glPointParameterfvSGIS (GLenum, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); +#endif + +#ifndef GL_SGIX_instruments +#define GL_SGIX_instruments 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLint APIENTRY glGetInstrumentsSGIX (void); +GLAPI void APIENTRY glInstrumentsBufferSGIX (GLsizei, GLint *); +GLAPI GLint APIENTRY glPollInstrumentsSGIX (GLint *); +GLAPI void APIENTRY glReadInstrumentsSGIX (GLint); +GLAPI void APIENTRY glStartInstrumentsSGIX (void); +GLAPI void APIENTRY glStopInstrumentsSGIX (GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void); +typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer); +typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p); +typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker); +typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void); +typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker); +#endif + +#ifndef GL_SGIX_texture_scale_bias +#define GL_SGIX_texture_scale_bias 1 +#endif + +#ifndef GL_SGIX_framezoom +#define GL_SGIX_framezoom 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFrameZoomSGIX (GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor); +#endif + +#ifndef GL_SGIX_tag_sample_buffer +#define GL_SGIX_tag_sample_buffer 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTagSampleBufferSGIX (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); +#endif + +#ifndef GL_SGIX_polynomial_ffd +#define GL_SGIX_polynomial_ffd 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDeformationMap3dSGIX (GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *); +GLAPI void APIENTRY glDeformationMap3fSGIX (GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *); +GLAPI void APIENTRY glDeformSGIX (GLbitfield); +GLAPI void APIENTRY glLoadIdentityDeformationMapSGIX (GLbitfield); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points); +typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points); +typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask); +#endif + +#ifndef GL_SGIX_reference_plane +#define GL_SGIX_reference_plane 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glReferencePlaneSGIX (const GLdouble *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation); +#endif + +#ifndef GL_SGIX_flush_raster +#define GL_SGIX_flush_raster 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFlushRasterSGIX (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void); +#endif + +#ifndef GL_SGIX_depth_texture +#define GL_SGIX_depth_texture 1 +#endif + +#ifndef GL_SGIS_fog_function +#define GL_SGIS_fog_function 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFogFuncSGIS (GLsizei, const GLfloat *); +GLAPI void APIENTRY glGetFogFuncSGIS (GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points); +typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat *points); +#endif + +#ifndef GL_SGIX_fog_offset +#define GL_SGIX_fog_offset 1 +#endif + +#ifndef GL_HP_image_transform +#define GL_HP_image_transform 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glImageTransformParameteriHP (GLenum, GLenum, GLint); +GLAPI void APIENTRY glImageTransformParameterfHP (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glImageTransformParameterivHP (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glImageTransformParameterfvHP (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glGetImageTransformParameterivHP (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetImageTransformParameterfvHP (GLenum, GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params); +#endif + +#ifndef GL_HP_convolution_border_modes +#define GL_HP_convolution_border_modes 1 +#endif + +#ifndef GL_SGIX_texture_add_env +#define GL_SGIX_texture_add_env 1 +#endif + +#ifndef GL_EXT_color_subtable +#define GL_EXT_color_subtable 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorSubTableEXT (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glCopyColorSubTableEXT (GLenum, GLsizei, GLint, GLint, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); +#endif + +#ifndef GL_PGI_vertex_hints +#define GL_PGI_vertex_hints 1 +#endif + +#ifndef GL_PGI_misc_hints +#define GL_PGI_misc_hints 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glHintPGI (GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode); +#endif + +#ifndef GL_EXT_paletted_texture +#define GL_EXT_paletted_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorTableEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glGetColorTableEXT (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetColorTableParameterivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetColorTableParameterfvEXT (GLenum, GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); +typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); +#endif + +#ifndef GL_EXT_clip_volume_hint +#define GL_EXT_clip_volume_hint 1 +#endif + +#ifndef GL_SGIX_list_priority +#define GL_SGIX_list_priority 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetListParameterfvSGIX (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetListParameterivSGIX (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glListParameterfSGIX (GLuint, GLenum, GLfloat); +GLAPI void APIENTRY glListParameterfvSGIX (GLuint, GLenum, const GLfloat *); +GLAPI void APIENTRY glListParameteriSGIX (GLuint, GLenum, GLint); +GLAPI void APIENTRY glListParameterivSGIX (GLuint, GLenum, const GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params); +#endif + +#ifndef GL_SGIX_ir_instrument1 +#define GL_SGIX_ir_instrument1 1 +#endif + +#ifndef GL_SGIX_calligraphic_fragment +#define GL_SGIX_calligraphic_fragment 1 +#endif + +#ifndef GL_SGIX_texture_lod_bias +#define GL_SGIX_texture_lod_bias 1 +#endif + +#ifndef GL_SGIX_shadow_ambient +#define GL_SGIX_shadow_ambient 1 +#endif + +#ifndef GL_EXT_index_texture +#define GL_EXT_index_texture 1 +#endif + +#ifndef GL_EXT_index_material +#define GL_EXT_index_material 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glIndexMaterialEXT (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); +#endif + +#ifndef GL_EXT_index_func +#define GL_EXT_index_func 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glIndexFuncEXT (GLenum, GLclampf); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref); +#endif + +#ifndef GL_EXT_index_array_formats +#define GL_EXT_index_array_formats 1 +#endif + +#ifndef GL_EXT_compiled_vertex_array +#define GL_EXT_compiled_vertex_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glLockArraysEXT (GLint, GLsizei); +GLAPI void APIENTRY glUnlockArraysEXT (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void); +#endif + +#ifndef GL_EXT_cull_vertex +#define GL_EXT_cull_vertex 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCullParameterdvEXT (GLenum, GLdouble *); +GLAPI void APIENTRY glCullParameterfvEXT (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params); +#endif + +#ifndef GL_SGIX_ycrcb +#define GL_SGIX_ycrcb 1 +#endif + +#ifndef GL_SGIX_fragment_lighting +#define GL_SGIX_fragment_lighting 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFragmentColorMaterialSGIX (GLenum, GLenum); +GLAPI void APIENTRY glFragmentLightfSGIX (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glFragmentLightfvSGIX (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glFragmentLightiSGIX (GLenum, GLenum, GLint); +GLAPI void APIENTRY glFragmentLightivSGIX (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glFragmentLightModelfSGIX (GLenum, GLfloat); +GLAPI void APIENTRY glFragmentLightModelfvSGIX (GLenum, const GLfloat *); +GLAPI void APIENTRY glFragmentLightModeliSGIX (GLenum, GLint); +GLAPI void APIENTRY glFragmentLightModelivSGIX (GLenum, const GLint *); +GLAPI void APIENTRY glFragmentMaterialfSGIX (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glFragmentMaterialfvSGIX (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glFragmentMaterialiSGIX (GLenum, GLenum, GLint); +GLAPI void APIENTRY glFragmentMaterialivSGIX (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glGetFragmentLightfvSGIX (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetFragmentLightivSGIX (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetFragmentMaterialfvSGIX (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetFragmentMaterialivSGIX (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glLightEnviSGIX (GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param); +#endif + +#ifndef GL_IBM_rasterpos_clip +#define GL_IBM_rasterpos_clip 1 +#endif + +#ifndef GL_HP_texture_lighting +#define GL_HP_texture_lighting 1 +#endif + +#ifndef GL_EXT_draw_range_elements +#define GL_EXT_draw_range_elements 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawRangeElementsEXT (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); +#endif + +#ifndef GL_WIN_phong_shading +#define GL_WIN_phong_shading 1 +#endif + +#ifndef GL_WIN_specular_fog +#define GL_WIN_specular_fog 1 +#endif + +#ifndef GL_EXT_light_texture +#define GL_EXT_light_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glApplyTextureEXT (GLenum); +GLAPI void APIENTRY glTextureLightEXT (GLenum); +GLAPI void APIENTRY glTextureMaterialEXT (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); +typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); +#endif + +#ifndef GL_SGIX_blend_alpha_minmax +#define GL_SGIX_blend_alpha_minmax 1 +#endif + +#ifndef GL_EXT_bgra +#define GL_EXT_bgra 1 +#endif + +#ifndef GL_SGIX_async +#define GL_SGIX_async 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glAsyncMarkerSGIX (GLuint); +GLAPI GLint APIENTRY glFinishAsyncSGIX (GLuint *); +GLAPI GLint APIENTRY glPollAsyncSGIX (GLuint *); +GLAPI GLuint APIENTRY glGenAsyncMarkersSGIX (GLsizei); +GLAPI void APIENTRY glDeleteAsyncMarkersSGIX (GLuint, GLsizei); +GLAPI GLboolean APIENTRY glIsAsyncMarkerSGIX (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker); +typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp); +typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp); +typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); +typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); +typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); +#endif + +#ifndef GL_SGIX_async_pixel +#define GL_SGIX_async_pixel 1 +#endif + +#ifndef GL_SGIX_async_histogram +#define GL_SGIX_async_histogram 1 +#endif + +#ifndef GL_INTEL_parallel_arrays +#define GL_INTEL_parallel_arrays 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexPointervINTEL (GLint, GLenum, const GLvoid* *); +GLAPI void APIENTRY glNormalPointervINTEL (GLenum, const GLvoid* *); +GLAPI void APIENTRY glColorPointervINTEL (GLint, GLenum, const GLvoid* *); +GLAPI void APIENTRY glTexCoordPointervINTEL (GLint, GLenum, const GLvoid* *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); +typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer); +typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); +typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); +#endif + +#ifndef GL_HP_occlusion_test +#define GL_HP_occlusion_test 1 +#endif + +#ifndef GL_EXT_pixel_transform +#define GL_EXT_pixel_transform 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPixelTransformParameteriEXT (GLenum, GLenum, GLint); +GLAPI void APIENTRY glPixelTransformParameterfEXT (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glPixelTransformParameterivEXT (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glPixelTransformParameterfvEXT (GLenum, GLenum, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); +#endif + +#ifndef GL_EXT_pixel_transform_color_table +#define GL_EXT_pixel_transform_color_table 1 +#endif + +#ifndef GL_EXT_shared_texture_palette +#define GL_EXT_shared_texture_palette 1 +#endif + +#ifndef GL_EXT_separate_specular_color +#define GL_EXT_separate_specular_color 1 +#endif + +#ifndef GL_EXT_secondary_color +#define GL_EXT_secondary_color 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSecondaryColor3bEXT (GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glSecondaryColor3bvEXT (const GLbyte *); +GLAPI void APIENTRY glSecondaryColor3dEXT (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glSecondaryColor3dvEXT (const GLdouble *); +GLAPI void APIENTRY glSecondaryColor3fEXT (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glSecondaryColor3fvEXT (const GLfloat *); +GLAPI void APIENTRY glSecondaryColor3iEXT (GLint, GLint, GLint); +GLAPI void APIENTRY glSecondaryColor3ivEXT (const GLint *); +GLAPI void APIENTRY glSecondaryColor3sEXT (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glSecondaryColor3svEXT (const GLshort *); +GLAPI void APIENTRY glSecondaryColor3ubEXT (GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glSecondaryColor3ubvEXT (const GLubyte *); +GLAPI void APIENTRY glSecondaryColor3uiEXT (GLuint, GLuint, GLuint); +GLAPI void APIENTRY glSecondaryColor3uivEXT (const GLuint *); +GLAPI void APIENTRY glSecondaryColor3usEXT (GLushort, GLushort, GLushort); +GLAPI void APIENTRY glSecondaryColor3usvEXT (const GLushort *); +GLAPI void APIENTRY glSecondaryColorPointerEXT (GLint, GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_EXT_texture_perturb_normal +#define GL_EXT_texture_perturb_normal 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTextureNormalEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode); +#endif + +#ifndef GL_EXT_multi_draw_arrays +#define GL_EXT_multi_draw_arrays 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei); +GLAPI void APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); +#endif + +#ifndef GL_EXT_fog_coord +#define GL_EXT_fog_coord 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFogCoordfEXT (GLfloat); +GLAPI void APIENTRY glFogCoordfvEXT (const GLfloat *); +GLAPI void APIENTRY glFogCoorddEXT (GLdouble); +GLAPI void APIENTRY glFogCoorddvEXT (const GLdouble *); +GLAPI void APIENTRY glFogCoordPointerEXT (GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord); +typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); +typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord); +typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); +typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_REND_screen_coordinates +#define GL_REND_screen_coordinates 1 +#endif + +#ifndef GL_EXT_coordinate_frame +#define GL_EXT_coordinate_frame 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTangent3bEXT (GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glTangent3bvEXT (const GLbyte *); +GLAPI void APIENTRY glTangent3dEXT (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glTangent3dvEXT (const GLdouble *); +GLAPI void APIENTRY glTangent3fEXT (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTangent3fvEXT (const GLfloat *); +GLAPI void APIENTRY glTangent3iEXT (GLint, GLint, GLint); +GLAPI void APIENTRY glTangent3ivEXT (const GLint *); +GLAPI void APIENTRY glTangent3sEXT (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glTangent3svEXT (const GLshort *); +GLAPI void APIENTRY glBinormal3bEXT (GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glBinormal3bvEXT (const GLbyte *); +GLAPI void APIENTRY glBinormal3dEXT (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glBinormal3dvEXT (const GLdouble *); +GLAPI void APIENTRY glBinormal3fEXT (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glBinormal3fvEXT (const GLfloat *); +GLAPI void APIENTRY glBinormal3iEXT (GLint, GLint, GLint); +GLAPI void APIENTRY glBinormal3ivEXT (const GLint *); +GLAPI void APIENTRY glBinormal3sEXT (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glBinormal3svEXT (const GLshort *); +GLAPI void APIENTRY glTangentPointerEXT (GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glBinormalPointerEXT (GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz); +typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte *v); +typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz); +typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz); +typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz); +typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz); +typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz); +typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v); +typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz); +typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz); +typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz); +typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz); +typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_EXT_texture_env_combine +#define GL_EXT_texture_env_combine 1 +#endif + +#ifndef GL_APPLE_specular_vector +#define GL_APPLE_specular_vector 1 +#endif + +#ifndef GL_APPLE_transform_hint +#define GL_APPLE_transform_hint 1 +#endif + +#ifndef GL_SGIX_fog_scale +#define GL_SGIX_fog_scale 1 +#endif + +#ifndef GL_SUNX_constant_data +#define GL_SUNX_constant_data 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFinishTextureSUNX (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void); +#endif + +#ifndef GL_SUN_global_alpha +#define GL_SUN_global_alpha 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGlobalAlphaFactorbSUN (GLbyte); +GLAPI void APIENTRY glGlobalAlphaFactorsSUN (GLshort); +GLAPI void APIENTRY glGlobalAlphaFactoriSUN (GLint); +GLAPI void APIENTRY glGlobalAlphaFactorfSUN (GLfloat); +GLAPI void APIENTRY glGlobalAlphaFactordSUN (GLdouble); +GLAPI void APIENTRY glGlobalAlphaFactorubSUN (GLubyte); +GLAPI void APIENTRY glGlobalAlphaFactorusSUN (GLushort); +GLAPI void APIENTRY glGlobalAlphaFactoruiSUN (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); +#endif + +#ifndef GL_SUN_triangle_list +#define GL_SUN_triangle_list 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glReplacementCodeuiSUN (GLuint); +GLAPI void APIENTRY glReplacementCodeusSUN (GLushort); +GLAPI void APIENTRY glReplacementCodeubSUN (GLubyte); +GLAPI void APIENTRY glReplacementCodeuivSUN (const GLuint *); +GLAPI void APIENTRY glReplacementCodeusvSUN (const GLushort *); +GLAPI void APIENTRY glReplacementCodeubvSUN (const GLubyte *); +GLAPI void APIENTRY glReplacementCodePointerSUN (GLenum, GLsizei, const GLvoid* *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer); +#endif + +#ifndef GL_SUN_vertex +#define GL_SUN_vertex 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColor4ubVertex2fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat); +GLAPI void APIENTRY glColor4ubVertex2fvSUN (const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glColor4ubVertex3fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glColor4ubVertex3fvSUN (const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glColor3fVertex3fvSUN (const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fVertex3fvSUN (const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord4fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord4fVertex4fvSUN (const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN (GLfloat, GLfloat, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *, const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN (const GLuint *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN (GLuint, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *, const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +#endif + +#ifndef GL_EXT_blend_func_separate +#define GL_EXT_blend_func_separate 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparateEXT (GLenum, GLenum, GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +#endif + +#ifndef GL_INGR_blend_func_separate +#define GL_INGR_blend_func_separate 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparateINGR (GLenum, GLenum, GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +#endif + +#ifndef GL_INGR_color_clamp +#define GL_INGR_color_clamp 1 +#endif + +#ifndef GL_INGR_interlace_read +#define GL_INGR_interlace_read 1 +#endif + +#ifndef GL_EXT_stencil_wrap +#define GL_EXT_stencil_wrap 1 +#endif + +#ifndef GL_EXT_422_pixels +#define GL_EXT_422_pixels 1 +#endif + +#ifndef GL_NV_texgen_reflection +#define GL_NV_texgen_reflection 1 +#endif + +#ifndef GL_SUN_convolution_border_modes +#define GL_SUN_convolution_border_modes 1 +#endif + +#ifndef GL_EXT_texture_env_add +#define GL_EXT_texture_env_add 1 +#endif + +#ifndef GL_EXT_texture_lod_bias +#define GL_EXT_texture_lod_bias 1 +#endif + +#ifndef GL_EXT_texture_filter_anisotropic +#define GL_EXT_texture_filter_anisotropic 1 +#endif + +#ifndef GL_EXT_vertex_weighting +#define GL_EXT_vertex_weighting 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexWeightfEXT (GLfloat); +GLAPI void APIENTRY glVertexWeightfvEXT (const GLfloat *); +GLAPI void APIENTRY glVertexWeightPointerEXT (GLsizei, GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); +typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight); +typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_NV_light_max_exponent +#define GL_NV_light_max_exponent 1 +#endif + +#ifndef GL_NV_vertex_array_range +#define GL_NV_vertex_array_range 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFlushVertexArrayRangeNV (void); +GLAPI void APIENTRY glVertexArrayRangeNV (GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); +typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const GLvoid *pointer); +#endif + +#ifndef GL_NV_register_combiners +#define GL_NV_register_combiners 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCombinerParameterfvNV (GLenum, const GLfloat *); +GLAPI void APIENTRY glCombinerParameterfNV (GLenum, GLfloat); +GLAPI void APIENTRY glCombinerParameterivNV (GLenum, const GLint *); +GLAPI void APIENTRY glCombinerParameteriNV (GLenum, GLint); +GLAPI void APIENTRY glCombinerInputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glCombinerOutputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean); +GLAPI void APIENTRY glFinalCombinerInputNV (GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glGetCombinerInputParameterfvNV (GLenum, GLenum, GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetCombinerInputParameterivNV (GLenum, GLenum, GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetCombinerOutputParameterfvNV (GLenum, GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetCombinerOutputParameterivNV (GLenum, GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV (GLenum, GLenum, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); +typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); +typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); +typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params); +#endif + +#ifndef GL_NV_fog_distance +#define GL_NV_fog_distance 1 +#endif + +#ifndef GL_NV_texgen_emboss +#define GL_NV_texgen_emboss 1 +#endif + +#ifndef GL_NV_blend_square +#define GL_NV_blend_square 1 +#endif + +#ifndef GL_NV_texture_env_combine4 +#define GL_NV_texture_env_combine4 1 +#endif + +#ifndef GL_MESA_resize_buffers +#define GL_MESA_resize_buffers 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glResizeBuffersMESA (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void); +#endif + +#ifndef GL_MESA_window_pos +#define GL_MESA_window_pos 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glWindowPos2dMESA (GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos2dvMESA (const GLdouble *); +GLAPI void APIENTRY glWindowPos2fMESA (GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos2fvMESA (const GLfloat *); +GLAPI void APIENTRY glWindowPos2iMESA (GLint, GLint); +GLAPI void APIENTRY glWindowPos2ivMESA (const GLint *); +GLAPI void APIENTRY glWindowPos2sMESA (GLshort, GLshort); +GLAPI void APIENTRY glWindowPos2svMESA (const GLshort *); +GLAPI void APIENTRY glWindowPos3dMESA (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos3dvMESA (const GLdouble *); +GLAPI void APIENTRY glWindowPos3fMESA (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos3fvMESA (const GLfloat *); +GLAPI void APIENTRY glWindowPos3iMESA (GLint, GLint, GLint); +GLAPI void APIENTRY glWindowPos3ivMESA (const GLint *); +GLAPI void APIENTRY glWindowPos3sMESA (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glWindowPos3svMESA (const GLshort *); +GLAPI void APIENTRY glWindowPos4dMESA (GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos4dvMESA (const GLdouble *); +GLAPI void APIENTRY glWindowPos4fMESA (GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos4fvMESA (const GLfloat *); +GLAPI void APIENTRY glWindowPos4iMESA (GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glWindowPos4ivMESA (const GLint *); +GLAPI void APIENTRY glWindowPos4sMESA (GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glWindowPos4svMESA (const GLshort *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); +typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v); +#endif + +#ifndef GL_IBM_cull_vertex +#define GL_IBM_cull_vertex 1 +#endif + +#ifndef GL_IBM_multimode_draw_arrays +#define GL_IBM_multimode_draw_arrays 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiModeDrawArraysIBM (const GLenum *, const GLint *, const GLsizei *, GLsizei, GLint); +GLAPI void APIENTRY glMultiModeDrawElementsIBM (const GLenum *, const GLsizei *, GLenum, const GLvoid* const *, GLsizei, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); +typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride); +#endif + +#ifndef GL_IBM_vertex_array_lists +#define GL_IBM_vertex_array_lists 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glSecondaryColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glEdgeFlagPointerListIBM (GLint, const GLboolean* *, GLint); +GLAPI void APIENTRY glFogCoordPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glIndexPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glNormalPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glTexCoordPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glVertexPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +#endif + +#ifndef GL_SGIX_subsample +#define GL_SGIX_subsample 1 +#endif + +#ifndef GL_SGIX_ycrcba +#define GL_SGIX_ycrcba 1 +#endif + +#ifndef GL_SGIX_ycrcb_subsample +#define GL_SGIX_ycrcb_subsample 1 +#endif + +#ifndef GL_SGIX_depth_pass_instrument +#define GL_SGIX_depth_pass_instrument 1 +#endif + +#ifndef GL_3DFX_texture_compression_FXT1 +#define GL_3DFX_texture_compression_FXT1 1 +#endif + +#ifndef GL_3DFX_multisample +#define GL_3DFX_multisample 1 +#endif + +#ifndef GL_3DFX_tbuffer +#define GL_3DFX_tbuffer 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTbufferMask3DFX (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); +#endif + +#ifndef GL_EXT_multisample +#define GL_EXT_multisample 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSampleMaskEXT (GLclampf, GLboolean); +GLAPI void APIENTRY glSamplePatternEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); +typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); +#endif + +#ifndef GL_SGIX_vertex_preclip +#define GL_SGIX_vertex_preclip 1 +#endif + +#ifndef GL_SGIX_convolution_accuracy +#define GL_SGIX_convolution_accuracy 1 +#endif + +#ifndef GL_SGIX_resample +#define GL_SGIX_resample 1 +#endif + +#ifndef GL_SGIS_point_line_texgen +#define GL_SGIS_point_line_texgen 1 +#endif + +#ifndef GL_SGIS_texture_color_mask +#define GL_SGIS_texture_color_mask 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTextureColorMaskSGIS (GLboolean, GLboolean, GLboolean, GLboolean); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +#endif + +#ifndef GL_SGIX_igloo_interface +#define GL_SGIX_igloo_interface 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glIglooInterfaceSGIX (GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const GLvoid *params); +#endif + +#ifndef GL_EXT_texture_env_dot3 +#define GL_EXT_texture_env_dot3 1 +#endif + +#ifndef GL_ATI_texture_mirror_once +#define GL_ATI_texture_mirror_once 1 +#endif + +#ifndef GL_NV_fence +#define GL_NV_fence 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDeleteFencesNV (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenFencesNV (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsFenceNV (GLuint); +GLAPI GLboolean APIENTRY glTestFenceNV (GLuint); +GLAPI void APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glFinishFenceNV (GLuint); +GLAPI void APIENTRY glSetFenceNV (GLuint, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences); +typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); +typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC) (GLuint fence); +typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence); +typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence); +typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); +#endif + +#ifndef GL_NV_evaluators +#define GL_NV_evaluators 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMapControlPointsNV (GLenum, GLuint, GLenum, GLsizei, GLsizei, GLint, GLint, GLboolean, const GLvoid *); +GLAPI void APIENTRY glMapParameterivNV (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glMapParameterfvNV (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glGetMapControlPointsNV (GLenum, GLuint, GLenum, GLsizei, GLsizei, GLboolean, GLvoid *); +GLAPI void APIENTRY glGetMapParameterivNV (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetMapParameterfvNV (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetMapAttribParameterivNV (GLenum, GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetMapAttribParameterfvNV (GLenum, GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glEvalMapsNV (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points); +typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points); +typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); +#endif + +#ifndef GL_NV_packed_depth_stencil +#define GL_NV_packed_depth_stencil 1 +#endif + +#ifndef GL_NV_register_combiners2 +#define GL_NV_register_combiners2 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCombinerStageParameterfvNV (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glGetCombinerStageParameterfvNV (GLenum, GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params); +#endif + +#ifndef GL_NV_texture_compression_vtc +#define GL_NV_texture_compression_vtc 1 +#endif + +#ifndef GL_NV_texture_rectangle +#define GL_NV_texture_rectangle 1 +#endif + +#ifndef GL_NV_texture_shader +#define GL_NV_texture_shader 1 +#endif + +#ifndef GL_NV_texture_shader2 +#define GL_NV_texture_shader2 1 +#endif + +#ifndef GL_NV_vertex_array_range2 +#define GL_NV_vertex_array_range2 1 +#endif + +#ifndef GL_NV_vertex_program +#define GL_NV_vertex_program 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLboolean APIENTRY glAreProgramsResidentNV (GLsizei, const GLuint *, GLboolean *); +GLAPI void APIENTRY glBindProgramNV (GLenum, GLuint); +GLAPI void APIENTRY glDeleteProgramsNV (GLsizei, const GLuint *); +GLAPI void APIENTRY glExecuteProgramNV (GLenum, GLuint, const GLfloat *); +GLAPI void APIENTRY glGenProgramsNV (GLsizei, GLuint *); +GLAPI void APIENTRY glGetProgramParameterdvNV (GLenum, GLuint, GLenum, GLdouble *); +GLAPI void APIENTRY glGetProgramParameterfvNV (GLenum, GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetProgramivNV (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetProgramStringNV (GLuint, GLenum, GLubyte *); +GLAPI void APIENTRY glGetTrackMatrixivNV (GLenum, GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribdvNV (GLuint, GLenum, GLdouble *); +GLAPI void APIENTRY glGetVertexAttribfvNV (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVertexAttribivNV (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribPointervNV (GLuint, GLenum, GLvoid* *); +GLAPI GLboolean APIENTRY glIsProgramNV (GLuint); +GLAPI void APIENTRY glLoadProgramNV (GLenum, GLuint, GLsizei, const GLubyte *); +GLAPI void APIENTRY glProgramParameter4dNV (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glProgramParameter4dvNV (GLenum, GLuint, const GLdouble *); +GLAPI void APIENTRY glProgramParameter4fNV (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glProgramParameter4fvNV (GLenum, GLuint, const GLfloat *); +GLAPI void APIENTRY glProgramParameters4dvNV (GLenum, GLuint, GLuint, const GLdouble *); +GLAPI void APIENTRY glProgramParameters4fvNV (GLenum, GLuint, GLuint, const GLfloat *); +GLAPI void APIENTRY glRequestResidentProgramsNV (GLsizei, const GLuint *); +GLAPI void APIENTRY glTrackMatrixNV (GLenum, GLuint, GLenum, GLenum); +GLAPI void APIENTRY glVertexAttribPointerNV (GLuint, GLint, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glVertexAttrib1dNV (GLuint, GLdouble); +GLAPI void APIENTRY glVertexAttrib1dvNV (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib1fNV (GLuint, GLfloat); +GLAPI void APIENTRY glVertexAttrib1fvNV (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib1sNV (GLuint, GLshort); +GLAPI void APIENTRY glVertexAttrib1svNV (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib2dNV (GLuint, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib2dvNV (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib2fNV (GLuint, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib2fvNV (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib2sNV (GLuint, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib2svNV (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib3dNV (GLuint, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib3dvNV (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib3fNV (GLuint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib3fvNV (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib3sNV (GLuint, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib3svNV (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4dNV (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib4dvNV (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib4fNV (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib4fvNV (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib4sNV (GLuint, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib4svNV (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4ubNV (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glVertexAttrib4ubvNV (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttribs1dvNV (GLuint, GLsizei, const GLdouble *); +GLAPI void APIENTRY glVertexAttribs1fvNV (GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glVertexAttribs1svNV (GLuint, GLsizei, const GLshort *); +GLAPI void APIENTRY glVertexAttribs2dvNV (GLuint, GLsizei, const GLdouble *); +GLAPI void APIENTRY glVertexAttribs2fvNV (GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glVertexAttribs2svNV (GLuint, GLsizei, const GLshort *); +GLAPI void APIENTRY glVertexAttribs3dvNV (GLuint, GLsizei, const GLdouble *); +GLAPI void APIENTRY glVertexAttribs3fvNV (GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glVertexAttribs3svNV (GLuint, GLsizei, const GLshort *); +GLAPI void APIENTRY glVertexAttribs4dvNV (GLuint, GLsizei, const GLdouble *); +GLAPI void APIENTRY glVertexAttribs4fvNV (GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glVertexAttribs4svNV (GLuint, GLsizei, const GLshort *); +GLAPI void APIENTRY glVertexAttribs4ubvNV (GLuint, GLsizei, const GLubyte *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences); +typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); +typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params); +typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs); +typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program); +typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id); +typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLuint count, const GLdouble *v); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLuint count, const GLfloat *v); +typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); +typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v); +#endif + +#ifndef GL_SGIX_texture_coordinate_clamp +#define GL_SGIX_texture_coordinate_clamp 1 +#endif + +#ifndef GL_SGIX_scalebias_hint +#define GL_SGIX_scalebias_hint 1 +#endif + +#ifndef GL_OML_interlace +#define GL_OML_interlace 1 +#endif + +#ifndef GL_OML_subsample +#define GL_OML_subsample 1 +#endif + +#ifndef GL_OML_resample +#define GL_OML_resample 1 +#endif + +#ifndef GL_NV_copy_depth_to_color +#define GL_NV_copy_depth_to_color 1 +#endif + +#ifndef GL_ATI_envmap_bumpmap +#define GL_ATI_envmap_bumpmap 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexBumpParameterivATI (GLenum, const GLint *); +GLAPI void APIENTRY glTexBumpParameterfvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glGetTexBumpParameterivATI (GLenum, GLint *); +GLAPI void APIENTRY glGetTexBumpParameterfvATI (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param); +typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param); +typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); +#endif + +#ifndef GL_ATI_fragment_shader +#define GL_ATI_fragment_shader 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint APIENTRY glGenFragmentShadersATI (GLuint); +GLAPI void APIENTRY glBindFragmentShaderATI (GLuint); +GLAPI void APIENTRY glDeleteFragmentShaderATI (GLuint); +GLAPI void APIENTRY glBeginFragmentShaderATI (void); +GLAPI void APIENTRY glEndFragmentShaderATI (void); +GLAPI void APIENTRY glPassTexCoordATI (GLuint, GLuint, GLenum); +GLAPI void APIENTRY glSampleMapATI (GLuint, GLuint, GLenum); +GLAPI void APIENTRY glColorFragmentOp1ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glColorFragmentOp2ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glColorFragmentOp3ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glAlphaFragmentOp1ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glAlphaFragmentOp2ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glAlphaFragmentOp3ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glSetFragmentShaderConstantATI (GLuint, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); +typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); +typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void); +typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void); +typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); +typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); +typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); +typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); +typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); +typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); +typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); +typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); +typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value); +#endif + +#ifndef GL_ATI_pn_triangles +#define GL_ATI_pn_triangles 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPNTrianglesiATI (GLenum, GLint); +GLAPI void APIENTRY glPNTrianglesfATI (GLenum, GLfloat); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); +#endif + +#ifndef GL_ATI_vertex_array_object +#define GL_ATI_vertex_array_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint APIENTRY glNewObjectBufferATI (GLsizei, const GLvoid *, GLenum); +GLAPI GLboolean APIENTRY glIsObjectBufferATI (GLuint); +GLAPI void APIENTRY glUpdateObjectBufferATI (GLuint, GLuint, GLsizei, const GLvoid *, GLenum); +GLAPI void APIENTRY glGetObjectBufferfvATI (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetObjectBufferivATI (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glFreeObjectBufferATI (GLuint); +GLAPI void APIENTRY glArrayObjectATI (GLenum, GLint, GLenum, GLsizei, GLuint, GLuint); +GLAPI void APIENTRY glGetArrayObjectfvATI (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetArrayObjectivATI (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glVariantArrayObjectATI (GLuint, GLenum, GLsizei, GLuint, GLuint); +GLAPI void APIENTRY glGetVariantArrayObjectfvATI (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVariantArrayObjectivATI (GLuint, GLenum, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage); +typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve); +typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params); +#endif + +#ifndef GL_EXT_vertex_shader +#define GL_EXT_vertex_shader 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBeginVertexShaderEXT (void); +GLAPI void APIENTRY glEndVertexShaderEXT (void); +GLAPI void APIENTRY glBindVertexShaderEXT (GLuint); +GLAPI GLuint APIENTRY glGenVertexShadersEXT (GLuint); +GLAPI void APIENTRY glDeleteVertexShaderEXT (GLuint); +GLAPI void APIENTRY glShaderOp1EXT (GLenum, GLuint, GLuint); +GLAPI void APIENTRY glShaderOp2EXT (GLenum, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glShaderOp3EXT (GLenum, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glSwizzleEXT (GLuint, GLuint, GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glWriteMaskEXT (GLuint, GLuint, GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glInsertComponentEXT (GLuint, GLuint, GLuint); +GLAPI void APIENTRY glExtractComponentEXT (GLuint, GLuint, GLuint); +GLAPI GLuint APIENTRY glGenSymbolsEXT (GLenum, GLenum, GLenum, GLuint); +GLAPI void APIENTRY glSetInvariantEXT (GLuint, GLenum, const GLvoid *); +GLAPI void APIENTRY glSetLocalConstantEXT (GLuint, GLenum, const GLvoid *); +GLAPI void APIENTRY glVariantbvEXT (GLuint, const GLbyte *); +GLAPI void APIENTRY glVariantsvEXT (GLuint, const GLshort *); +GLAPI void APIENTRY glVariantivEXT (GLuint, const GLint *); +GLAPI void APIENTRY glVariantfvEXT (GLuint, const GLfloat *); +GLAPI void APIENTRY glVariantdvEXT (GLuint, const GLdouble *); +GLAPI void APIENTRY glVariantubvEXT (GLuint, const GLubyte *); +GLAPI void APIENTRY glVariantusvEXT (GLuint, const GLushort *); +GLAPI void APIENTRY glVariantuivEXT (GLuint, const GLuint *); +GLAPI void APIENTRY glVariantPointerEXT (GLuint, GLenum, GLuint, const GLvoid *); +GLAPI void APIENTRY glEnableVariantClientStateEXT (GLuint); +GLAPI void APIENTRY glDisableVariantClientStateEXT (GLuint); +GLAPI GLuint APIENTRY glBindLightParameterEXT (GLenum, GLenum); +GLAPI GLuint APIENTRY glBindMaterialParameterEXT (GLenum, GLenum); +GLAPI GLuint APIENTRY glBindTexGenParameterEXT (GLenum, GLenum, GLenum); +GLAPI GLuint APIENTRY glBindTextureUnitParameterEXT (GLenum, GLenum); +GLAPI GLuint APIENTRY glBindParameterEXT (GLenum); +GLAPI GLboolean APIENTRY glIsVariantEnabledEXT (GLuint, GLenum); +GLAPI void APIENTRY glGetVariantBooleanvEXT (GLuint, GLenum, GLboolean *); +GLAPI void APIENTRY glGetVariantIntegervEXT (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVariantFloatvEXT (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVariantPointervEXT (GLuint, GLenum, GLvoid* *); +GLAPI void APIENTRY glGetInvariantBooleanvEXT (GLuint, GLenum, GLboolean *); +GLAPI void APIENTRY glGetInvariantIntegervEXT (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetInvariantFloatvEXT (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetLocalConstantBooleanvEXT (GLuint, GLenum, GLboolean *); +GLAPI void APIENTRY glGetLocalConstantIntegervEXT (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetLocalConstantFloatvEXT (GLuint, GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void); +typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void); +typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); +typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); +typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); +typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); +typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); +typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); +typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); +typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); +typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); +typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); +typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components); +typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); +typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); +typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr); +typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr); +typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr); +typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr); +typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr); +typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr); +typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr); +typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr); +typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const GLvoid *addr); +typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); +typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); +typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); +typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); +typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); +typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); +typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value); +typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); +typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid* *data); +typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +#endif + +#ifndef GL_ATI_vertex_streams +#define GL_ATI_vertex_streams 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexStream1sATI (GLenum, GLshort); +GLAPI void APIENTRY glVertexStream1svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glVertexStream1iATI (GLenum, GLint); +GLAPI void APIENTRY glVertexStream1ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glVertexStream1fATI (GLenum, GLfloat); +GLAPI void APIENTRY glVertexStream1fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glVertexStream1dATI (GLenum, GLdouble); +GLAPI void APIENTRY glVertexStream1dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glVertexStream2sATI (GLenum, GLshort, GLshort); +GLAPI void APIENTRY glVertexStream2svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glVertexStream2iATI (GLenum, GLint, GLint); +GLAPI void APIENTRY glVertexStream2ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glVertexStream2fATI (GLenum, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexStream2fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glVertexStream2dATI (GLenum, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexStream2dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glVertexStream3sATI (GLenum, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexStream3svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glVertexStream3iATI (GLenum, GLint, GLint, GLint); +GLAPI void APIENTRY glVertexStream3ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glVertexStream3fATI (GLenum, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexStream3fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glVertexStream3dATI (GLenum, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexStream3dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glVertexStream4sATI (GLenum, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexStream4svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glVertexStream4iATI (GLenum, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glVertexStream4ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glVertexStream4fATI (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexStream4fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glVertexStream4dATI (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexStream4dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glNormalStream3bATI (GLenum, GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glNormalStream3bvATI (GLenum, const GLbyte *); +GLAPI void APIENTRY glNormalStream3sATI (GLenum, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glNormalStream3svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glNormalStream3iATI (GLenum, GLint, GLint, GLint); +GLAPI void APIENTRY glNormalStream3ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glNormalStream3fATI (GLenum, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glNormalStream3fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glNormalStream3dATI (GLenum, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glNormalStream3dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glClientActiveVertexStreamATI (GLenum); +GLAPI void APIENTRY glVertexBlendEnviATI (GLenum, GLint); +GLAPI void APIENTRY glVertexBlendEnvfATI (GLenum, GLfloat); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); +typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); +#endif + +#ifndef GL_ATI_element_array +#define GL_ATI_element_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glElementPointerATI (GLenum, const GLvoid *); +GLAPI void APIENTRY glDrawElementArrayATI (GLenum, GLsizei); +GLAPI void APIENTRY glDrawRangeElementArrayATI (GLenum, GLuint, GLuint, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); +#endif + +#ifndef GL_SUN_mesh_array +#define GL_SUN_mesh_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawMeshArraysSUN (GLenum, GLint, GLsizei, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width); +#endif + +#ifndef GL_SUN_slice_accum +#define GL_SUN_slice_accum 1 +#endif + +#ifndef GL_NV_multisample_filter_hint +#define GL_NV_multisample_filter_hint 1 +#endif + +#ifndef GL_NV_depth_clamp +#define GL_NV_depth_clamp 1 +#endif + +#ifndef GL_NV_occlusion_query +#define GL_NV_occlusion_query 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenOcclusionQueriesNV (GLsizei, GLuint *); +GLAPI void APIENTRY glDeleteOcclusionQueriesNV (GLsizei, const GLuint *); +GLAPI GLboolean APIENTRY glIsOcclusionQueryNV (GLuint); +GLAPI void APIENTRY glBeginOcclusionQueryNV (GLuint); +GLAPI void APIENTRY glEndOcclusionQueryNV (void); +GLAPI void APIENTRY glGetOcclusionQueryivNV (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetOcclusionQueryuivNV (GLuint, GLenum, GLuint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); +typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void); +typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params); +#endif + +#ifndef GL_NV_point_sprite +#define GL_NV_point_sprite 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPointParameteriNV (GLenum, GLint); +GLAPI void APIENTRY glPointParameterivNV (GLenum, const GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params); +#endif + +#ifndef GL_NV_texture_shader3 +#define GL_NV_texture_shader3 1 +#endif + +#ifndef GL_NV_vertex_program1_1 +#define GL_NV_vertex_program1_1 1 +#endif + +#ifndef GL_EXT_shadow_funcs +#define GL_EXT_shadow_funcs 1 +#endif + +#ifndef GL_EXT_stencil_two_side +#define GL_EXT_stencil_two_side 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveStencilFaceEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); +#endif + +#ifndef GL_ATI_text_fragment_shader +#define GL_ATI_text_fragment_shader 1 +#endif + +#ifndef GL_APPLE_client_storage +#define GL_APPLE_client_storage 1 +#endif + +#ifndef GL_APPLE_element_array +#define GL_APPLE_element_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glElementPointerAPPLE (GLenum, const GLvoid *); +GLAPI void APIENTRY glDrawElementArrayAPPLE (GLenum, GLint, GLsizei); +GLAPI void APIENTRY glDrawRangeElementArrayAPPLE (GLenum, GLuint, GLuint, GLint, GLsizei); +GLAPI void APIENTRY glMultiDrawElementArrayAPPLE (GLenum, const GLint *, const GLsizei *, GLsizei); +GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE (GLenum, GLuint, GLuint, const GLint *, const GLsizei *, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); +typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount); +#endif + +#ifndef GL_APPLE_fence +#define GL_APPLE_fence 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenFencesAPPLE (GLsizei, GLuint *); +GLAPI void APIENTRY glDeleteFencesAPPLE (GLsizei, const GLuint *); +GLAPI void APIENTRY glSetFenceAPPLE (GLuint); +GLAPI GLboolean APIENTRY glIsFenceAPPLE (GLuint); +GLAPI GLboolean APIENTRY glTestFenceAPPLE (GLuint); +GLAPI void APIENTRY glFinishFenceAPPLE (GLuint); +GLAPI GLboolean APIENTRY glTestObjectAPPLE (GLenum, GLuint); +GLAPI void APIENTRY glFinishObjectAPPLE (GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences); +typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences); +typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence); +typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence); +typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence); +typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); +typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); +typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); +#endif + +#ifndef GL_APPLE_vertex_array_object +#define GL_APPLE_vertex_array_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindVertexArrayAPPLE (GLuint); +GLAPI void APIENTRY glDeleteVertexArraysAPPLE (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenVertexArraysAPPLE (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); +typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays); +typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays); +typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); +#endif + +#ifndef GL_APPLE_vertex_array_range +#define GL_APPLE_vertex_array_range 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexArrayRangeAPPLE (GLsizei, GLvoid *); +GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE (GLsizei, GLvoid *); +GLAPI void APIENTRY glVertexArrayParameteriAPPLE (GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); +typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); +typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); +#endif + +#ifndef GL_APPLE_ycbcr_422 +#define GL_APPLE_ycbcr_422 1 +#endif + +#ifndef GL_S3_s3tc +#define GL_S3_s3tc 1 +#endif + +#ifndef GL_ATI_draw_buffers +#define GL_ATI_draw_buffers 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawBuffersATI (GLsizei, const GLenum *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs); +#endif + +#ifndef GL_ATI_pixel_format_float +#define GL_ATI_pixel_format_float 1 +/* This is really a WGL extension, but defines some associated GL enums. + * ATI does not export "GL_ATI_pixel_format_float" in the GL_EXTENSIONS string. + */ +#endif + +#ifndef GL_ATI_texture_env_combine3 +#define GL_ATI_texture_env_combine3 1 +#endif + +#ifndef GL_ATI_texture_float +#define GL_ATI_texture_float 1 +#endif + +#ifndef GL_NV_float_buffer +#define GL_NV_float_buffer 1 +#endif + +#ifndef GL_NV_fragment_program +#define GL_NV_fragment_program 1 +/* Some NV_fragment_program entry points are shared with ARB_vertex_program. */ +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramNamedParameter4fNV (GLuint, GLsizei, const GLubyte *, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glProgramNamedParameter4dNV (GLuint, GLsizei, const GLubyte *, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glProgramNamedParameter4fvNV (GLuint, GLsizei, const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glProgramNamedParameter4dvNV (GLuint, GLsizei, const GLubyte *, const GLdouble *); +GLAPI void APIENTRY glGetProgramNamedParameterfvNV (GLuint, GLsizei, const GLubyte *, GLfloat *); +GLAPI void APIENTRY glGetProgramNamedParameterdvNV (GLuint, GLsizei, const GLubyte *, GLdouble *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v); +typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v); +typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params); +#endif + +#ifndef GL_NV_half_float +#define GL_NV_half_float 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertex2hNV (GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertex2hvNV (const GLhalfNV *); +GLAPI void APIENTRY glVertex3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertex3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glVertex4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertex4hvNV (const GLhalfNV *); +GLAPI void APIENTRY glNormal3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glNormal3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glColor3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glColor3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glColor4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glColor4hvNV (const GLhalfNV *); +GLAPI void APIENTRY glTexCoord1hNV (GLhalfNV); +GLAPI void APIENTRY glTexCoord1hvNV (const GLhalfNV *); +GLAPI void APIENTRY glTexCoord2hNV (GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glTexCoord2hvNV (const GLhalfNV *); +GLAPI void APIENTRY glTexCoord3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glTexCoord3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glTexCoord4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glTexCoord4hvNV (const GLhalfNV *); +GLAPI void APIENTRY glMultiTexCoord1hNV (GLenum, GLhalfNV); +GLAPI void APIENTRY glMultiTexCoord1hvNV (GLenum, const GLhalfNV *); +GLAPI void APIENTRY glMultiTexCoord2hNV (GLenum, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glMultiTexCoord2hvNV (GLenum, const GLhalfNV *); +GLAPI void APIENTRY glMultiTexCoord3hNV (GLenum, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glMultiTexCoord3hvNV (GLenum, const GLhalfNV *); +GLAPI void APIENTRY glMultiTexCoord4hNV (GLenum, GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glMultiTexCoord4hvNV (GLenum, const GLhalfNV *); +GLAPI void APIENTRY glFogCoordhNV (GLhalfNV); +GLAPI void APIENTRY glFogCoordhvNV (const GLhalfNV *); +GLAPI void APIENTRY glSecondaryColor3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glSecondaryColor3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glVertexWeighthNV (GLhalfNV); +GLAPI void APIENTRY glVertexWeighthvNV (const GLhalfNV *); +GLAPI void APIENTRY glVertexAttrib1hNV (GLuint, GLhalfNV); +GLAPI void APIENTRY glVertexAttrib1hvNV (GLuint, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttrib2hNV (GLuint, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertexAttrib2hvNV (GLuint, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttrib3hNV (GLuint, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertexAttrib3hvNV (GLuint, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttrib4hNV (GLuint, GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertexAttrib4hvNV (GLuint, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttribs1hvNV (GLuint, GLsizei, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttribs2hvNV (GLuint, GLsizei, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttribs3hvNV (GLuint, GLsizei, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttribs4hvNV (GLuint, GLsizei, const GLhalfNV *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y); +typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z); +typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); +typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); +typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); +typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); +typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s); +typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t); +typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r); +typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); +typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog); +typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight); +typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); +#endif + +#ifndef GL_NV_pixel_data_range +#define GL_NV_pixel_data_range 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPixelDataRangeNV (GLenum, GLsizei, GLvoid *); +GLAPI void APIENTRY glFlushPixelDataRangeNV (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, GLvoid *pointer); +typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); +#endif + +#ifndef GL_NV_primitive_restart +#define GL_NV_primitive_restart 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPrimitiveRestartNV (void); +GLAPI void APIENTRY glPrimitiveRestartIndexNV (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void); +typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); +#endif + +#ifndef GL_NV_texture_expand_normal +#define GL_NV_texture_expand_normal 1 +#endif + +#ifndef GL_NV_vertex_program2 +#define GL_NV_vertex_program2 1 +#endif + +#ifndef GL_ATI_map_object_buffer +#define GL_ATI_map_object_buffer 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLvoid* APIENTRY glMapObjectBufferATI (GLuint); +GLAPI void APIENTRY glUnmapObjectBufferATI (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLvoid* (APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); +#endif + +#ifndef GL_ATI_separate_stencil +#define GL_ATI_separate_stencil 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glStencilOpSeparateATI (GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glStencilFuncSeparateATI (GLenum, GLenum, GLint, GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +#endif + +#ifndef GL_ATI_vertex_attrib_array_object +#define GL_ATI_vertex_attrib_array_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttribArrayObjectATI (GLuint, GLint, GLenum, GLboolean, GLsizei, GLuint, GLuint); +GLAPI void APIENTRY glGetVertexAttribArrayObjectfvATI (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVertexAttribArrayObjectivATI (GLuint, GLenum, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params); +#endif + +#ifndef GL_OES_read_format +#define GL_OES_read_format 1 +#endif + +#ifndef GL_EXT_depth_bounds_test +#define GL_EXT_depth_bounds_test 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDepthBoundsEXT (GLclampd, GLclampd); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); +#endif + +#ifndef GL_EXT_texture_mirror_clamp +#define GL_EXT_texture_mirror_clamp 1 +#endif + +#ifndef GL_EXT_blend_equation_separate +#define GL_EXT_blend_equation_separate 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationSeparateEXT (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); +#endif + +#ifndef GL_MESA_pack_invert +#define GL_MESA_pack_invert 1 +#endif + +#ifndef GL_MESA_ycbcr_texture +#define GL_MESA_ycbcr_texture 1 +#endif + +#ifndef GL_EXT_pixel_buffer_object +#define GL_EXT_pixel_buffer_object 1 +#endif + +#ifndef GL_NV_fragment_program_option +#define GL_NV_fragment_program_option 1 +#endif + +#ifndef GL_NV_fragment_program2 +#define GL_NV_fragment_program2 1 +#endif + +#ifndef GL_NV_vertex_program2_option +#define GL_NV_vertex_program2_option 1 +#endif + +#ifndef GL_NV_vertex_program3 +#define GL_NV_vertex_program3 1 +#endif + +#ifndef GL_EXT_framebuffer_object +#define GL_EXT_framebuffer_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLboolean APIENTRY glIsRenderbufferEXT (GLuint); +GLAPI void APIENTRY glBindRenderbufferEXT (GLenum, GLuint); +GLAPI void APIENTRY glDeleteRenderbuffersEXT (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenRenderbuffersEXT (GLsizei, GLuint *); +GLAPI void APIENTRY glRenderbufferStorageEXT (GLenum, GLenum, GLsizei, GLsizei); +GLAPI void APIENTRY glGetRenderbufferParameterivEXT (GLenum, GLenum, GLint *); +GLAPI GLboolean APIENTRY glIsFramebufferEXT (GLuint); +GLAPI void APIENTRY glBindFramebufferEXT (GLenum, GLuint); +GLAPI void APIENTRY glDeleteFramebuffersEXT (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenFramebuffersEXT (GLsizei, GLuint *); +GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT (GLenum); +GLAPI void APIENTRY glFramebufferTexture1DEXT (GLenum, GLenum, GLenum, GLuint, GLint); +GLAPI void APIENTRY glFramebufferTexture2DEXT (GLenum, GLenum, GLenum, GLuint, GLint); +GLAPI void APIENTRY glFramebufferTexture3DEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLint); +GLAPI void APIENTRY glFramebufferRenderbufferEXT (GLenum, GLenum, GLenum, GLuint); +GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT (GLenum, GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGenerateMipmapEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer); +typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer); +typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer); +typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers); +typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers); +typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target); +#endif + +#ifndef GL_GREMEDY_string_marker +#define GL_GREMEDY_string_marker 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glStringMarkerGREMEDY (GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid *string); +#endif + +#ifndef GL_EXT_packed_depth_stencil +#define GL_EXT_packed_depth_stencil 1 +#endif + +#ifndef GL_EXT_stencil_clear_tag +#define GL_EXT_stencil_clear_tag 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glStencilClearTagEXT (GLsizei, GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag); +#endif + +#ifndef GL_EXT_texture_sRGB +#define GL_EXT_texture_sRGB 1 +#endif + +#ifndef GL_EXT_framebuffer_blit +#define GL_EXT_framebuffer_blit 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlitFramebufferEXT (GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +#endif + +#ifndef GL_EXT_framebuffer_multisample +#define GL_EXT_framebuffer_multisample 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glRenderbufferStorageMultisampleEXT (GLenum, GLsizei, GLenum, GLsizei, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +#endif + +#ifndef GL_MESAX_texture_stack +#define GL_MESAX_texture_stack 1 +#endif + +#ifndef GL_EXT_timer_query +#define GL_EXT_timer_query 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetQueryObjecti64vEXT (GLuint, GLenum, GLint64EXT *); +GLAPI void APIENTRY glGetQueryObjectui64vEXT (GLuint, GLenum, GLuint64EXT *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params); +#endif + +#ifndef GL_EXT_gpu_program_parameters +#define GL_EXT_gpu_program_parameters 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramEnvParameters4fvEXT (GLenum, GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glProgramLocalParameters4fvEXT (GLenum, GLuint, GLsizei, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params); +#endif + +#ifndef GL_APPLE_flush_buffer_range +#define GL_APPLE_flush_buffer_range 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferParameteriAPPLE (GLenum, GLenum, GLint); +GLAPI void APIENTRY glFlushMappedBufferRangeAPPLE (GLenum, GLintptr, GLsizeiptr); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size); +#endif + +#ifndef GL_NV_gpu_program4 +#define GL_NV_gpu_program4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramLocalParameterI4iNV (GLenum, GLuint, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glProgramLocalParameterI4ivNV (GLenum, GLuint, const GLint *); +GLAPI void APIENTRY glProgramLocalParametersI4ivNV (GLenum, GLuint, GLsizei, const GLint *); +GLAPI void APIENTRY glProgramLocalParameterI4uiNV (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glProgramLocalParameterI4uivNV (GLenum, GLuint, const GLuint *); +GLAPI void APIENTRY glProgramLocalParametersI4uivNV (GLenum, GLuint, GLsizei, const GLuint *); +GLAPI void APIENTRY glProgramEnvParameterI4iNV (GLenum, GLuint, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glProgramEnvParameterI4ivNV (GLenum, GLuint, const GLint *); +GLAPI void APIENTRY glProgramEnvParametersI4ivNV (GLenum, GLuint, GLsizei, const GLint *); +GLAPI void APIENTRY glProgramEnvParameterI4uiNV (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glProgramEnvParameterI4uivNV (GLenum, GLuint, const GLuint *); +GLAPI void APIENTRY glProgramEnvParametersI4uivNV (GLenum, GLuint, GLsizei, const GLuint *); +GLAPI void APIENTRY glGetProgramLocalParameterIivNV (GLenum, GLuint, GLint *); +GLAPI void APIENTRY glGetProgramLocalParameterIuivNV (GLenum, GLuint, GLuint *); +GLAPI void APIENTRY glGetProgramEnvParameterIivNV (GLenum, GLuint, GLint *); +GLAPI void APIENTRY glGetProgramEnvParameterIuivNV (GLenum, GLuint, GLuint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params); +#endif + +#ifndef GL_NV_geometry_program4 +#define GL_NV_geometry_program4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramVertexLimitNV (GLenum, GLint); +GLAPI void APIENTRY glFramebufferTextureEXT (GLenum, GLenum, GLuint, GLint); +GLAPI void APIENTRY glFramebufferTextureLayerEXT (GLenum, GLenum, GLuint, GLint, GLint); +GLAPI void APIENTRY glFramebufferTextureFaceEXT (GLenum, GLenum, GLuint, GLint, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#endif + +#ifndef GL_EXT_geometry_shader4 +#define GL_EXT_geometry_shader4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramParameteriEXT (GLuint, GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value); +#endif + +#ifndef GL_NV_vertex_program4 +#define GL_NV_vertex_program4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttribI1iEXT (GLuint, GLint); +GLAPI void APIENTRY glVertexAttribI2iEXT (GLuint, GLint, GLint); +GLAPI void APIENTRY glVertexAttribI3iEXT (GLuint, GLint, GLint, GLint); +GLAPI void APIENTRY glVertexAttribI4iEXT (GLuint, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glVertexAttribI1uiEXT (GLuint, GLuint); +GLAPI void APIENTRY glVertexAttribI2uiEXT (GLuint, GLuint, GLuint); +GLAPI void APIENTRY glVertexAttribI3uiEXT (GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glVertexAttribI4uiEXT (GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glVertexAttribI1ivEXT (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttribI2ivEXT (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttribI3ivEXT (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttribI4ivEXT (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttribI1uivEXT (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttribI2uivEXT (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttribI3uivEXT (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttribI4uivEXT (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttribI4bvEXT (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttribI4svEXT (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttribI4ubvEXT (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttribI4usvEXT (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttribIPointerEXT (GLuint, GLint, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glGetVertexAttribIivEXT (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribIuivEXT (GLuint, GLenum, GLuint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params); +#endif + +#ifndef GL_EXT_gpu_shader4 +#define GL_EXT_gpu_shader4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetUniformuivEXT (GLuint, GLint, GLuint *); +GLAPI void APIENTRY glBindFragDataLocationEXT (GLuint, GLuint, const GLchar *); +GLAPI GLint APIENTRY glGetFragDataLocationEXT (GLuint, const GLchar *); +GLAPI void APIENTRY glUniform1uiEXT (GLint, GLuint); +GLAPI void APIENTRY glUniform2uiEXT (GLint, GLuint, GLuint); +GLAPI void APIENTRY glUniform3uiEXT (GLint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glUniform4uiEXT (GLint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glUniform1uivEXT (GLint, GLsizei, const GLuint *); +GLAPI void APIENTRY glUniform2uivEXT (GLint, GLsizei, const GLuint *); +GLAPI void APIENTRY glUniform3uivEXT (GLint, GLsizei, const GLuint *); +GLAPI void APIENTRY glUniform4uivEXT (GLint, GLsizei, const GLuint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params); +typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name); +typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0); +typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1); +typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); +#endif + +#ifndef GL_EXT_draw_instanced +#define GL_EXT_draw_instanced 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum, GLint, GLsizei, GLsizei); +GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum, GLsizei, GLenum, const GLvoid *, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount); +#endif + +#ifndef GL_EXT_packed_float +#define GL_EXT_packed_float 1 +#endif + +#ifndef GL_EXT_texture_array +#define GL_EXT_texture_array 1 +#endif + +#ifndef GL_EXT_texture_buffer_object +#define GL_EXT_texture_buffer_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexBufferEXT (GLenum, GLenum, GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); +#endif + +#ifndef GL_EXT_texture_compression_latc +#define GL_EXT_texture_compression_latc 1 +#endif + +#ifndef GL_EXT_texture_compression_rgtc +#define GL_EXT_texture_compression_rgtc 1 +#endif + +#ifndef GL_EXT_texture_shared_exponent +#define GL_EXT_texture_shared_exponent 1 +#endif + +#ifndef GL_NV_depth_buffer_float +#define GL_NV_depth_buffer_float 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDepthRangedNV (GLdouble, GLdouble); +GLAPI void APIENTRY glClearDepthdNV (GLdouble); +GLAPI void APIENTRY glDepthBoundsdNV (GLdouble, GLdouble); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); +typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); +typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); +#endif + +#ifndef GL_NV_fragment_program4 +#define GL_NV_fragment_program4 1 +#endif + +#ifndef GL_NV_framebuffer_multisample_coverage +#define GL_NV_framebuffer_multisample_coverage 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum, GLsizei, GLsizei, GLenum, GLsizei, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +#endif + +#ifndef GL_EXT_framebuffer_sRGB +#define GL_EXT_framebuffer_sRGB 1 +#endif + +#ifndef GL_NV_geometry_shader4 +#define GL_NV_geometry_shader4 1 +#endif + +#ifndef GL_NV_parameter_buffer_object +#define GL_NV_parameter_buffer_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramBufferParametersfvNV (GLenum, GLuint, GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glProgramBufferParametersIivNV (GLenum, GLuint, GLuint, GLsizei, const GLint *); +GLAPI void APIENTRY glProgramBufferParametersIuivNV (GLenum, GLuint, GLuint, GLsizei, const GLuint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params); +typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params); +#endif + +#ifndef GL_EXT_draw_buffers2 +#define GL_EXT_draw_buffers2 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorMaskIndexedEXT (GLuint, GLboolean, GLboolean, GLboolean, GLboolean); +GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum, GLuint, GLboolean *); +GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum, GLuint, GLint *); +GLAPI void APIENTRY glEnableIndexedEXT (GLenum, GLuint); +GLAPI void APIENTRY glDisableIndexedEXT (GLenum, GLuint); +GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum, GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data); +typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data); +typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); +#endif + +#ifndef GL_NV_transform_feedback +#define GL_NV_transform_feedback 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBeginTransformFeedbackNV (GLenum); +GLAPI void APIENTRY glEndTransformFeedbackNV (void); +GLAPI void APIENTRY glTransformFeedbackAttribsNV (GLuint, const GLint *, GLenum); +GLAPI void APIENTRY glBindBufferRangeNV (GLenum, GLuint, GLuint, GLintptr, GLsizeiptr); +GLAPI void APIENTRY glBindBufferOffsetNV (GLenum, GLuint, GLuint, GLintptr); +GLAPI void APIENTRY glBindBufferBaseNV (GLenum, GLuint, GLuint); +GLAPI void APIENTRY glTransformFeedbackVaryingsNV (GLuint, GLsizei, const GLint *, GLenum); +GLAPI void APIENTRY glActiveVaryingNV (GLuint, const GLchar *); +GLAPI GLint APIENTRY glGetVaryingLocationNV (GLuint, const GLchar *); +GLAPI void APIENTRY glGetActiveVaryingNV (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *); +GLAPI void APIENTRY glGetTransformFeedbackVaryingNV (GLuint, GLuint, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode); +typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC) (void); +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode); +typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); +typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer); +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); +typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name); +typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location); +#endif + +#ifndef GL_EXT_bindable_uniform +#define GL_EXT_bindable_uniform 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUniformBufferEXT (GLuint, GLint, GLuint); +GLAPI GLint APIENTRY glGetUniformBufferSizeEXT (GLuint, GLint); +GLAPI GLintptr APIENTRY glGetUniformOffsetEXT (GLuint, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer); +typedef GLint (APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location); +typedef GLintptr (APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location); +#endif + +#ifndef GL_EXT_texture_integer +#define GL_EXT_texture_integer 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexParameterIivEXT (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glTexParameterIuivEXT (GLenum, GLenum, const GLuint *); +GLAPI void APIENTRY glGetTexParameterIivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetTexParameterIuivEXT (GLenum, GLenum, GLuint *); +GLAPI void APIENTRY glClearColorIiEXT (GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glClearColorIuiEXT (GLuint, GLuint, GLuint, GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha); +typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); +#endif + +#ifndef GL_GREMEDY_frame_terminator +#define GL_GREMEDY_frame_terminator 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFrameTerminatorGREMEDY (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void); +#endif + +#ifndef GL_NV_conditional_render +#define GL_NV_conditional_render 1 +#endif + +#ifndef GL_NV_present_video +#define GL_NV_present_video 1 +#endif + +#ifndef GL_EXT_transform_feedback +#define GL_EXT_transform_feedback 1 +#endif + + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/src/VBox/GuestHost/OpenGL/include/chromium.h b/src/VBox/GuestHost/OpenGL/include/chromium.h new file mode 100644 index 00000000..8de678e4 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/chromium.h @@ -0,0 +1,864 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +/** + * Public Chromium exports. + * Parallel Chromium applications will include this header. + */ + + +#ifndef __CHROMIUM_H__ +#define __CHROMIUM_H__ + + +/**********************************************************************/ +/***** System includes and other cruft *****/ +/**********************************************************************/ + +#include "cr_compiler.h" + +#ifdef IN_RING0 + +# ifndef GA_INCLUDED_SRC_WINNT_Graphics_Video_common_VBoxVideoLog_h +# undef WARN /* VBoxMpUtils.h includes common/VBoxVideoLog.h which */ +# undef LOG /* uncondtionally redefines these three macros. */ +# undef LOGREL +# endif +# include <common/VBoxMPUtils.h> + +# define WINGDIAPI /* gl/gl.h is using this (wingdi.h defines it a __declspec(dllimport) normaly). */ + +#endif + +/* + * We effectively wrap gl.h, glu.h, etc, just like GLUT + */ + +#ifndef GL_GLEXT_PROTOTYPES +# define GL_GLEXT_PROTOTYPES +#endif + +#if defined(WINDOWS) +# ifdef IN_RING0 +# error "should not happen!" /* bird: This is certifiably insane, in my opinion. */ +# endif +# define WIN32_LEAN_AND_MEAN +# define WGL_APIENTRY __stdcall +# ifdef VBOX +# include <iprt/win/windows.h> +# else +# include <windows.h> +# endif +#elif defined(DARWIN) +/* nothing */ +#else +# ifndef IN_RING0 +# define GLX +# endif +#endif + +#include <GL/gl.h> +/* Quick fix so as not to update the version of glext.h we provide. */ +#ifdef GL_GLEXT_PROTOTYPES +# if defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) +GLAPI void APIENTRY glBindFramebuffer (GLenum, GLuint); +GLAPI void APIENTRY glBlitFramebuffer (GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum); +GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum); +GLAPI void APIENTRY glDeleteFramebuffers (GLsizei, const GLuint *); +GLAPI void APIENTRY glFramebufferTexture2D (GLenum, GLenum, GLenum, GLuint, GLint); +GLAPI void APIENTRY glGenFramebuffers (GLsizei, GLuint *); +# endif +#endif + +#ifndef WINDOWS +# ifndef RT_OS_WINDOWS /* If we don't need it in ring-3, we probably not need it in ring-0 either (triggers warnings). */ +# include <iprt/cdefs.h> +# if RT_GNUC_PREREQ(4, 6) +# pragma GCC diagnostic push +# endif +# if RT_GNUC_PREREQ(4, 2) +# ifndef __cplusplus +# pragma GCC diagnostic ignored "-Wstrict-prototypes" +# endif +# endif +# include <GL/glu.h> +# if RT_GNUC_PREREQ(4, 6) +# pragma GCC diagnostic pop +# endif +# endif /* !RT_OS_WINDOWS */ +#endif + + +#ifdef GLX +# ifndef GLX_GLXEXT_PROTOTYPES +# define GLX_GLXEXT_PROTOTYPES +# endif +# include <GL/glx.h> +#endif + +#ifdef USE_OSMESA +# include <GL/osmesa.h> +#endif + +#ifdef DARWIN +# include <stddef.h> +#elif !defined(FreeBSD) +# include <malloc.h> /* to get ptrdiff_t used below */ +#endif + +#include "cr_glext.h" + +#ifdef IN_RING0 +# undef WINGDIAPI /* don't want it clashing with wingdi.h should it be included. */ +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* to shut up gcc warning for struct VBOXUHGSMI * parameters */ +struct VBOXUHGSMI; +struct VBOXVR_SCR_COMPOSITOR; +struct VBOXVR_SCR_COMPOSITOR_ENTRY; + +#define CR_RENDER_DEFAULT_CONTEXT_ID (INT32_MAX-1) +#define CR_RENDER_DEFAULT_WINDOW_ID (INT32_MAX-1) + +#if defined(IN_GUEST) && defined(RT_OS_WINDOWS) && defined(VBOX_WITH_WDDM) +# ifdef VBOX_WDDM_WOW64 +# define VBOX_MODNAME_DISPD3D "VBoxDispD3D-x86" +# else +# define VBOX_MODNAME_DISPD3D "VBoxDispD3D" +# endif +#endif + +#ifndef APIENTRY +#define APIENTRY +#endif + + +/**********************************************************************/ +/***** Define things that might have been missing in gl.h *****/ +/**********************************************************************/ + +/* + * Define missing GLX tokens: + */ + +#ifndef GLX_SAMPLE_BUFFERS_SGIS +#define GLX_SAMPLE_BUFFERS_SGIS 0x186a0 /*100000*/ +#endif +#ifndef GLX_SAMPLES_SGIS +#define GLX_SAMPLES_SGIS 0x186a1 /*100001*/ +#endif +#ifndef GLX_VISUAL_CAVEAT_EXT +#define GLX_VISUAL_CAVEAT_EXT 0x20 /* visual_rating extension type */ +#endif + +/* + * Define missing WGL tokens: + */ +#ifndef WGL_COLOR_BITS_EXT +#define WGL_COLOR_BITS_EXT 0x2014 +#endif +#ifndef WGL_DRAW_TO_WINDOW_EXT +#define WGL_DRAW_TO_WINDOW_EXT 0x2001 +#endif +#ifndef WGL_FULL_ACCELERATION_EXT +#define WGL_FULL_ACCELERATION_EXT 0x2027 +#endif +#ifndef WGL_ACCELERATION_EXT +#define WGL_ACCELERATION_EXT 0x2003 +#endif +#ifndef WGL_TYPE_RGBA_EXT +#define WGL_TYPE_RGBA_EXT 0x202B +#endif +#ifndef WGL_RED_BITS_EXT +#define WGL_RED_BITS_EXT 0x2015 +#endif +#ifndef WGL_GREEN_BITS_EXT +#define WGL_GREEN_BITS_EXT 0x2017 +#endif +#ifndef WGL_BLUE_BITS_EXT +#define WGL_BLUE_BITS_EXT 0x2019 +#endif +#ifndef WGL_ALPHA_BITS_EXT +#define WGL_ALPHA_BITS_EXT 0x201B +#endif +#ifndef WGL_DOUBLE_BUFFER_EXT +#define WGL_DOUBLE_BUFFER_EXT 0x2011 +#endif +#ifndef WGL_STEREO_EXT +#define WGL_STEREO_EXT 0x2012 +#endif +#ifndef WGL_ACCUM_RED_BITS_EXT +#define WGL_ACCUM_RED_BITS_EXT 0x201E +#endif +#ifndef WGL_ACCUM_GREEN_BITS_EXT +#define WGL_ACCUM_GREEN_BITS_EXT 0x201F +#endif +#ifndef WGL_ACCUM_BLUE_BITS_EXT +#define WGL_ACCUM_BLUE_BITS_EXT 0x2020 +#endif +#ifndef WGL_ACCUM_ALPHA_BITS_EXT +#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 +#endif +#ifndef WGL_DEPTH_BITS_EXT +#define WGL_DEPTH_BITS_EXT 0x2022 +#endif +#ifndef WGL_STENCIL_BITS_EXT +#define WGL_STENCIL_BITS_EXT 0x2023 +#endif +#ifndef WGL_SAMPLE_BUFFERS_EXT +#define WGL_SAMPLE_BUFFERS_EXT 0x2041 +#endif +#ifndef WGL_SAMPLES_EXT +#define WGL_SAMPLES_EXT 0x2042 +#endif +#ifndef WGL_SUPPORT_OPENGL_ARB +#define WGL_SUPPORT_OPENGL_ARB 0x2010 +#endif +#ifndef WGL_NUMBER_PIXEL_FORMATS_ARB +#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 +#endif +#ifndef WGL_FULL_ACCELERATION_ARB +#define WGL_FULL_ACCELERATION_ARB 0x2027 +#endif +#ifndef WGL_SWAP_UNDEFINED_ARB +#define WGL_SWAP_UNDEFINED_ARB 0x202A +#endif +#ifndef WGL_TYPE_RGBA_ARB +#define WGL_TYPE_RGBA_ARB 0x202B +#endif +#ifndef WGL_DRAW_TO_WINDOW_ARB +#define WGL_DRAW_TO_WINDOW_ARB 0x2001 +#endif +#ifndef WGL_DRAW_TO_BITMAP_ARB +#define WGL_DRAW_TO_BITMAP_ARB 0x2002 +#endif +#ifndef WGL_DOUBLE_BUFFER_ARB +#define WGL_DOUBLE_BUFFER_ARB 0x2011 +#endif +#ifndef WGL_NEED_PALETTE_ARB +#define WGL_NEED_PALETTE_ARB 0x2004 +#endif +#ifndef WGL_NEED_SYSTEM_PALETTE_ARB +#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 +#endif +#ifndef WGL_SWAP_LAYER_BUFFERS_ARB +#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 +#endif +#ifndef WGL_NUMBER_OVERLAYS_ARB +#define WGL_NUMBER_OVERLAYS_ARB 0x2008 +#endif +#ifndef WGL_NUMBER_UNDERLAYS_ARB +#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 +#endif +#ifndef WGL_TRANSPARENT_ARB +#define WGL_TRANSPARENT_ARB 0x200A +#endif +#ifndef WGL_TRANSPARENT_RED_VALUE_ARB +#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 +#endif +#ifndef WGL_TRANSPARENT_GREEN_VALUE_ARB +#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 +#endif +#ifndef WGL_TRANSPARENT_BLUE_VALUE_ARB +#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 +#endif +#ifndef WGL_TRANSPARENT_ALPHA_VALUE_ARB +#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A +#endif +#ifndef WGL_TRANSPARENT_INDEX_VALUE_ARB +#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B +#endif +#ifndef WGL_SHARE_STENCIL_ARB +#define WGL_SHARE_STENCIL_ARB 0x200D +#endif +#ifndef WGL_SHARE_ACCUM_ARB +#define WGL_SHARE_ACCUM_ARB 0x200E +#endif +#ifndef WGL_SUPPORT_GDI_ARB +#define WGL_SUPPORT_GDI_ARB 0x200F +#endif +#ifndef WGL_RED_BITS_ARB +#define WGL_RED_BITS_ARB 0x2015 +#endif +#ifndef WGL_RED_SHIFT_ARB +#define WGL_RED_SHIFT_ARB 0x2016 +#endif +#ifndef WGL_GREEN_BITS_ARB +#define WGL_GREEN_BITS_ARB 0x2017 +#endif +#ifndef WGL_GREEN_SHIFT_ARB +#define WGL_GREEN_SHIFT_ARB 0x2018 +#endif +#ifndef WGL_BLUE_BITS_ARB +#define WGL_BLUE_BITS_ARB 0x2019 +#endif +#ifndef WGL_BLUE_SHIFT_ARB +#define WGL_BLUE_SHIFT_ARB 0x201A +#endif +#ifndef WGL_ALPHA_BITS_ARB +#define WGL_ALPHA_BITS_ARB 0x201B +#endif +#ifndef WGL_ALPHA_SHIFT_ARB +#define WGL_ALPHA_SHIFT_ARB 0x201C +#endif +#ifndef WGL_ACCUM_BITS_ARB +#define WGL_ACCUM_BITS_ARB 0x201D +#endif +#ifndef WGL_ACCUM_RED_BITS_ARB +#define WGL_ACCUM_RED_BITS_ARB 0x201E +#endif +#ifndef WGL_ACCUM_GREEN_BITS_ARB +#define WGL_ACCUM_GREEN_BITS_ARB 0x201F +#endif +#ifndef WGL_ACCUM_BLUE_BITS_ARB +#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 +#endif +#ifndef WGL_ACCUM_ALPHA_BITS_ARB +#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 +#endif +#ifndef WGL_DEPTH_BITS_ARB +#define WGL_DEPTH_BITS_ARB 0x2022 +#endif +#ifndef WGL_STENCIL_BITS_ARB +#define WGL_STENCIL_BITS_ARB 0x2023 +#endif +#ifndef WGL_AUX_BUFFERS_ARB +#define WGL_AUX_BUFFERS_ARB 0x2024 +#endif +#ifndef WGL_STEREO_ARB +#define WGL_STEREO_ARB 0x2012 +#endif +#ifndef WGL_ACCELERATION_ARB +#define WGL_ACCELERATION_ARB 0x2003 +#endif +#ifndef WGL_SHARE_DEPTH_ARB +#define WGL_SHARE_DEPTH_ARB 0x200C +#endif +#ifndef WGL_PIXEL_TYPE_ARB +#define WGL_PIXEL_TYPE_ARB 0x2013 +#endif +#ifndef WGL_COLOR_BITS_ARB +#define WGL_COLOR_BITS_ARB 0x2014 +#endif +#ifndef WGL_SWAP_METHOD_ARB +#define WGL_SWAP_METHOD_ARB 0x2007 +#endif + +/* + * Define missing 1.2 tokens: + */ +#ifndef GL_SMOOTH_POINT_SIZE_RANGE +#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 +#endif + +#ifndef GL_SMOOTH_POINT_SIZE_GRANULARITY +#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 +#endif + +#ifndef GL_SMOOTH_LINE_WIDTH_RANGE +#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 +#endif + +#ifndef GL_SMOOTH_LINE_WIDTH_GRANULARITY +#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 +#endif + +#ifndef GL_ALIASED_POINT_SIZE_RANGE +#define GL_ALIASED_POINT_SIZE_RANGE 0x846D +#endif + +#ifndef GL_ALIASED_LINE_WIDTH_RANGE +#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E +#endif + +#ifndef GL_COLOR_MATRIX_STACK_DEPTH +#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 +#endif + +#ifndef GL_COLOR_MATRIX +#define GL_COLOR_MATRIX 0x80B1 +#endif + +#ifndef GL_TEXTURE_3D +#define GL_TEXTURE_3D 0x806F +#endif + +#ifndef GL_MAX_3D_TEXTURE_SIZE +#define GL_MAX_3D_TEXTURE_SIZE 0x8073 +#endif + +#ifndef GL_PACK_SKIP_IMAGES +#define GL_PACK_SKIP_IMAGES 0x806B +#endif + +#ifndef GL_PACK_IMAGE_HEIGHT +#define GL_PACK_IMAGE_HEIGHT 0x806C +#endif + +#ifndef GL_UNPACK_SKIP_IMAGES +#define GL_UNPACK_SKIP_IMAGES 0x806D +#endif + +#ifndef GL_UNPACK_IMAGE_HEIGHT +#define GL_UNPACK_IMAGE_HEIGHT 0x806E +#endif + +#ifndef GL_PROXY_TEXTURE_3D +#define GL_PROXY_TEXTURE_3D 0x8070 +#endif + +#ifndef GL_TEXTURE_DEPTH +#define GL_TEXTURE_DEPTH 0x8071 +#endif + +#ifndef GL_TEXTURE_WRAP_R +#define GL_TEXTURE_WRAP_R 0x8072 +#endif + +#ifndef GL_TEXTURE_BINDING_3D +#define GL_TEXTURE_BINDING_3D 0x806A +#endif + +#ifndef GL_MAX_ELEMENTS_VERTICES +#define GL_MAX_ELEMENTS_VERTICES 0x80E8 +#endif + +#ifndef GL_MAX_ELEMENTS_INDICES +#define GL_MAX_ELEMENTS_INDICES 0x80E9 +#endif + + +/* + * Define missing ARB_imaging tokens + */ + +#ifndef GL_BLEND_EQUATION +#define GL_BLEND_EQUATION 0x8009 +#endif + +#ifndef GL_MIN +#define GL_MIN 0x8007 +#endif + +#ifndef GL_MAX +#define GL_MAX 0x8008 +#endif + +#ifndef GL_FUNC_ADD +#define GL_FUNC_ADD 0x8006 +#endif + +#ifndef GL_FUNC_SUBTRACT +#define GL_FUNC_SUBTRACT 0x800A +#endif + +#ifndef GL_FUNC_REVERSE_SUBTRACT +#define GL_FUNC_REVERSE_SUBTRACT 0x800B +#endif + +#ifndef GL_BLEND_COLOR +#define GL_BLEND_COLOR 0x8005 +#endif + +#ifndef GL_PER_STAGE_CONSTANTS_NV +#define GL_PER_STAGE_CONSTANTS_NV 0x8535 +#endif + +#ifndef GL_FOG_COORDINATE_ARRAY_POINTER_EXT +#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456 +#endif + +typedef void (*CR_GLXFuncPtr)(void); +#ifndef GLX_ARB_get_proc_address +#define GLX_ARB_get_proc_address 1 +CR_GLXFuncPtr glXGetProcAddressARB( const GLubyte *name ); +#endif /* GLX_ARB_get_proc_address */ + +#ifndef GLX_VERSION_1_4 +CR_GLXFuncPtr glXGetProcAddress( const GLubyte *name ); +#endif /* GLX_ARB_get_proc_address */ + +#ifndef GL_RASTER_POSITION_UNCLIPPED_IBM +#define GL_RASTER_POSITION_UNCLIPPED_IBM 0x19262 +#endif + +#ifdef WINDOWS +/* XXX how about this prototype for wglGetProcAddress()? +PROC WINAPI wglGetProcAddress_prox( LPCSTR name ) +*/ +#endif + + +#ifndef GL_VERSION_1_5 + +typedef ptrdiff_t GLintptr; +typedef ptrdiff_t GLsizeiptr; + +/* prototype these functions for opengl_stub/getprocaddress.c */ +extern void APIENTRY glGenQueries(GLsizei n, GLuint *ids); +extern void APIENTRY glDeleteQueries(GLsizei n, const GLuint *ids); +extern GLboolean APIENTRY glIsQuery(GLuint id); +extern void APIENTRY glBeginQuery(GLenum target, GLuint id); +extern void APIENTRY glEndQuery(GLenum target); +extern void APIENTRY glGetQueryiv(GLenum target, GLenum pname, GLint *params); +extern void APIENTRY glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params); +extern void APIENTRY glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params); +extern void APIENTRY glBindBuffer(GLenum, GLuint); +extern void APIENTRY glDeleteBuffers(GLsizei, const GLuint *); +extern void APIENTRY glGenBuffers(GLsizei, GLuint *); +extern GLboolean APIENTRY glIsBuffer(GLuint); +extern void APIENTRY glBufferData(GLenum, GLsizeiptr, const GLvoid *, GLenum); +extern void APIENTRY glBufferSubData(GLenum, GLintptr, GLsizeiptr, const GLvoid *); +extern void APIENTRY glGetBufferSubData(GLenum, GLintptr, GLsizeiptr, GLvoid *); +extern GLvoid* APIENTRY glMapBuffer(GLenum, GLenum); +extern GLboolean APIENTRY glUnmapBuffer(GLenum); +extern void APIENTRY glGetBufferParameteriv(GLenum, GLenum, GLint *); +extern void APIENTRY glGetBufferPointerv(GLenum, GLenum, GLvoid* *); + +#endif + + +/**********************************************************************/ +/***** Chromium Extensions to OpenGL *****/ +/***** *****/ +/***** Chromium owns the OpenGL enum range 0x8AF0-0x8B2F *****/ +/**********************************************************************/ + +#ifndef GL_CR_synchronization +#define GL_CR_synchronization 1 + +typedef void (APIENTRY *glBarrierCreateCRProc) (GLuint name, GLuint count); +typedef void (APIENTRY *glBarrierDestroyCRProc) (GLuint name); +typedef void (APIENTRY *glBarrierExecCRProc) (GLuint name); +typedef void (APIENTRY *glSemaphoreCreateCRProc) (GLuint name, GLuint count); +typedef void (APIENTRY *glSemaphoreDestroyCRProc) (GLuint name); +typedef void (APIENTRY *glSemaphorePCRProc) (GLuint name); +typedef void (APIENTRY *glSemaphoreVCRProc) (GLuint name); + +extern void APIENTRY glBarrierCreateCR(GLuint name, GLuint count); +extern void APIENTRY glBarrierDestroyCR(GLuint name); +extern void APIENTRY glBarrierExecCR(GLuint name); +extern void APIENTRY glSemaphoreCreateCR(GLuint name, GLuint count); +extern void APIENTRY glSemaphoreDestroyCR(GLuint name); +extern void APIENTRY glSemaphorePCR(GLuint name); +extern void APIENTRY glSemaphoreVCR(GLuint name); + +#endif /* GL_CR_synchronization */ + + +#ifndef GL_CR_bounds_info +#define GL_CR_bounds_info 1 +/* Private, internal Chromium function */ +/* +typedef void (APIENTRY *glBoundsInfoCRProc)(const CRrecti *, const GLbyte *, GLint, GLint); +*/ +#endif /* GL_CR_bounds_info */ + + +#ifndef GL_CR_state_parameter +#define GL_CR_state_parameter 1 + +typedef void (APIENTRY *glChromiumParameteriCRProc) (GLenum target, GLint value); +typedef void (APIENTRY *glChromiumParameterfCRProc) (GLenum target, GLfloat value); +typedef void (APIENTRY *glChromiumParametervCRProc) (GLenum target, GLenum type, GLsizei count, const GLvoid *values); +typedef void (APIENTRY *glGetChromiumParametervCRProc) (GLenum target, GLuint index, GLenum type, GLsizei count, GLvoid *values); + +extern void APIENTRY glChromiumParameteriCR(GLenum target, GLint value); +extern void APIENTRY glChromiumParameterfCR(GLenum target, GLfloat value); +extern void APIENTRY glChromiumParametervCR(GLenum target, GLenum type, GLsizei count, const GLvoid *values); +extern void APIENTRY glGetChromiumParametervCR(GLenum target, GLuint index, GLenum type, GLsizei count, GLvoid *values); + + +#endif /* GL_CR_state_parameter */ + + +#ifndef GL_CR_cursor_position +#define GL_CR_cursor_position 1 +/* For virtual cursor feature (show_cursor) */ + +#define GL_CURSOR_POSITION_CR 0x8AF0 + +#endif /* GL_CR_cursor_position */ + + +#ifndef GL_CR_bounding_box +#define GL_CR_bounding_box 1 +/* To set bounding box from client app */ + +#define GL_DEFAULT_BBOX_CR 0x8AF1 +#define GL_SCREEN_BBOX_CR 0x8AF2 +#define GL_OBJECT_BBOX_CR 0x8AF3 + +#endif /* GL_CR_bounding_box */ + + +#ifndef GL_CR_print_string +#define GL_CR_print_string 1 +/* To print a string to stdout */ +#define GL_PRINT_STRING_CR 0x8AF4 + +#endif /* GL_CR_print_string */ + + +#ifndef GL_CR_tilesort_info +#define GL_CR_tilesort_info 1 +/* To query tilesort information */ + +#define GL_MURAL_SIZE_CR 0x8AF5 +#define GL_NUM_SERVERS_CR 0x8AF6 +#define GL_NUM_TILES_CR 0x8AF7 +#define GL_TILE_BOUNDS_CR 0x8AF8 +#define GL_VERTEX_COUNTS_CR 0x8AF9 +#define GL_RESET_VERTEX_COUNTERS_CR 0x8AFA +#define GL_SET_MAX_VIEWPORT_CR 0x8AFB + +#endif /* GL_CR_tilesort_info */ + + +#ifndef GL_CR_head_spu_name +#define GL_CR_head_spu_name 1 +/* To fetch name of first SPU on a node */ + +#define GL_HEAD_SPU_NAME_CR 0x8AFC + +#endif /* GL_CR_head_spu_name */ + + +#ifndef GL_CR_performance_info +#define GL_CR_performance_info 1 +/* For gathering performance metrics */ + +#define GL_PERF_GET_FRAME_DATA_CR 0x8AFD +#define GL_PERF_GET_TIMER_DATA_CR 0x8AFE +#define GL_PERF_DUMP_COUNTERS_CR 0x8AFF +#define GL_PERF_SET_TOKEN_CR 0x8B00 +#define GL_PERF_SET_DUMP_ON_SWAP_CR 0x8B01 +#define GL_PERF_SET_DUMP_ON_FINISH_CR 0x8B02 +#define GL_PERF_SET_DUMP_ON_FLUSH_CR 0x8B03 +#define GL_PERF_START_TIMER_CR 0x8B04 +#define GL_PERF_STOP_TIMER_CR 0x8B05 + +#endif /* GL_CR_performance_info */ + + +#ifndef GL_CR_window_size +#define GL_CR_window_size 1 +/* To communicate window size changes */ + +#define GL_WINDOW_SIZE_CR 0x8B06 +#define GL_MAX_WINDOW_SIZE_CR 0x8B24 /* new */ +#define GL_WINDOW_VISIBILITY_CR 0x8B25 /* new */ + +#endif /* GL_CR_window_size */ + + +#ifndef GL_CR_tile_info +#define GL_CR_tile_info 1 +/* To send new tile information to a server */ + +#define GL_TILE_INFO_CR 0x8B07 + +#endif /* GL_CR_tile_info */ + + +#ifndef GL_CR_gather +#define GL_CR_gather 1 +/* For aggregate transfers */ + +#define GL_GATHER_DRAWPIXELS_CR 0x8B08 +#define GL_GATHER_PACK_CR 0x8B09 +#define GL_GATHER_CONNECT_CR 0x8B0A +#define GL_GATHER_POST_SWAPBUFFERS_CR 0x8B0B + +#endif /* GL_CR_gather */ + + +#ifndef GL_CR_saveframe +#define GL_CR_saveframe 1 + +#define GL_SAVEFRAME_ENABLED_CR 0x8B0C +#define GL_SAVEFRAME_FRAMENUM_CR 0x8B0D +#define GL_SAVEFRAME_STRIDE_CR 0x8B0E +#define GL_SAVEFRAME_SINGLE_CR 0x8B0F +#define GL_SAVEFRAME_FILESPEC_CR 0x8B10 + +#endif /* GL_CR_saveframe */ + + +#ifndef GL_CR_readback_barrier_size +#define GL_CR_readback_barrier_size 1 + +#define GL_READBACK_BARRIER_SIZE_CR 0x8B11 + +#endif /* GL_CR_readback_barrier_size */ + + +#ifndef GL_CR_server_id_sharing +#define GL_CR_server_id_sharing 1 + +#define GL_SHARED_DISPLAY_LISTS_CR 0x8B12 +#define GL_SHARED_TEXTURE_OBJECTS_CR 0x8B13 +#define GL_SHARED_PROGRAMS_CR 0x8B14 + +#endif /* GL_CR_server_id_sharing */ + + +#ifndef GL_CR_server_matrix +#define GL_CR_server_matrix 1 + +#define GL_SERVER_VIEW_MATRIX_CR 0x8B15 +#define GL_SERVER_PROJECTION_MATRIX_CR 0x8B16 +#define GL_SERVER_FRUSTUM_CR 0x8B17 +#define GL_SERVER_CURRENT_EYE_CR 0x8B18 + +#endif /* GL_CR_server_matrix */ + + +#ifndef GL_CR_window_position +#define GL_CR_window_position 1 + +#define GL_WINDOW_POSITION_CR 0x8B19 + +#endif /* GL_CR_window_position */ + + +#ifndef GL_CR_zpix +#define GL_CR_zpix 1 + +#define GL_ZLIB_COMPRESSION_CR 0x8B20 +#define GL_RLE_COMPRESSION_CR 0x8B21 +#define GL_PLE_COMPRESSION_CR 0x8B22 + +/* XXX A better name would be glCompressedDrawPixelsCR() */ +extern void APIENTRY glZPixCR(GLsizei width, GLsizei height, GLenum format, + GLenum type, GLenum compressionType, + GLint client, GLint compressedSize, + const GLvoid *image); + +#endif /* GL_CR_zpix */ + +/*Allow to use glGetString to query real host GPU info*/ +#ifndef GL_CR_real_vendor_strings +#define GL_CR_real_vendor_strings 1 +#define GL_REAL_VENDOR 0x8B23 +#define GL_REAL_VERSION 0x8B24 +#define GL_REAL_RENDERER 0x8B25 +#define GL_REAL_EXTENSIONS 0x8B26 +#endif + +/*Global resource ids sharing*/ +#define GL_SHARE_CONTEXT_RESOURCES_CR 0x8B27 +/*do flush for the command buffer of a thread the context was previusly current for*/ +#define GL_FLUSH_ON_THREAD_SWITCH_CR 0x8B28 +/*report that the shared resource is used by this context, the parameter value is a texture name*/ +#define GL_RCUSAGE_TEXTURE_SET_CR 0x8B29 +/*report that the shared resource is no longer used by this context, the parameter value is a texture name*/ +#define GL_RCUSAGE_TEXTURE_CLEAR_CR 0x8B2A +/*configures host to create windows initially hidden*/ +#define GL_HOST_WND_CREATED_HIDDEN_CR 0x8B2B +/* guest requests host whether e debug break is needed*/ +#define GL_DBG_CHECK_BREAK_CR 0x8B2C +/* Tells renderspu the default context id being used by the crserver */ +#define GL_HH_SET_DEFAULT_SHARED_CTX 0x8B2D + +#define GL_HH_SET_TMPCTX_MAKE_CURRENT 0x8B2E +/* inform renderspu about the current render thread */ +#define GL_HH_RENDERTHREAD_INFORM 0x8B2F + +/* enable zero vertex attribute generation to work around wine bug */ +#define GL_CHECK_ZERO_VERT_ARRT 0x8B30 + +/* share lists */ +#define GL_SHARE_LISTS_CR 0x8B31 + +#define GL_HH_SET_CLIENT_CALLOUT 0x8B32 + +/* ensure the resource is */ +#define GL_PIN_TEXTURE_SET_CR 0x8B32 +#define GL_PIN_TEXTURE_CLEAR_CR 0x8B33 + +/**********************************************************************/ +/***** Chromium-specific API *****/ +/**********************************************************************/ + + +/* + * Accepted by crCreateContext() and crCreateWindow() visBits parameter. + * Used to communicate visual attributes throughout Chromium. + */ +#define CR_RGB_BIT 0x1 +#define CR_ALPHA_BIT 0x2 +#define CR_DEPTH_BIT 0x4 +#define CR_STENCIL_BIT 0x8 +#define CR_ACCUM_BIT 0x10 +#define CR_DOUBLE_BIT 0x20 +#define CR_STEREO_BIT 0x40 +#define CR_MULTISAMPLE_BIT 0x80 +#define CR_OVERLAY_BIT 0x100 +#define CR_PBUFFER_BIT 0x200 +#define CR_ALL_BITS 0x3ff + + +/* Accepted by crSwapBuffers() flag parameter */ +#define CR_SUPPRESS_SWAP_BIT 0x1 + + +typedef GLint (APIENTRY *crCreateContextProc)(const char *dpyName, GLint visBits); +typedef void (APIENTRY *crDestroyContextProc)(GLint context); +typedef void (APIENTRY *crMakeCurrentProc)(GLint window, GLint context); +typedef GLint (APIENTRY *crGetCurrentContextProc)(void); +typedef GLint (APIENTRY *crGetCurrentWindowProc)(void); +typedef void (APIENTRY *crSwapBuffersProc)(GLint window, GLint flags); + +typedef GLint (APIENTRY *crWindowCreateProc)(const char *dpyName, GLint visBits); +typedef void (APIENTRY *crWindowDestroyProc)(GLint window); +typedef void (APIENTRY *crWindowSizeProc)(GLint window, GLint w, GLint h); +typedef void (APIENTRY *crWindowPositionProc)(GLint window, GLint x, GLint y); +typedef void (APIENTRY *crWindowShowProc)( GLint window, GLint flag ); + +extern GLint APIENTRY crCreateContext(char *dpyName, GLint visBits); +extern void APIENTRY crDestroyContext(GLint context); +extern void APIENTRY crMakeCurrent(GLint window, GLint context); +extern GLint APIENTRY crGetCurrentContext(void); +extern GLint APIENTRY crGetCurrentWindow(void); +extern void APIENTRY crSwapBuffers(GLint window, GLint flags); +extern GLint APIENTRY crWindowCreate(const char *dpyName, GLint visBits); +extern void APIENTRY crWindowDestroy(GLint window); +extern void APIENTRY crWindowSize(GLint window, GLint w, GLint h); +extern void APIENTRY crWindowPosition(GLint window, GLint x, GLint y); +extern void APIENTRY crWindowVisibleRegion( GLint window, GLint cRects, const void *pRects ); +extern void APIENTRY crWindowShow( GLint window, GLint flag ); +extern void APIENTRY crVBoxTexPresent(GLuint texture, GLuint cfg, GLint xPos, GLint yPos, GLint cRects, const GLint *pRects); + +typedef int (CR_APIENTRY *CR_PROC)(void); +CR_PROC APIENTRY crGetProcAddress( const char *name ); + + + +/**********************************************************************/ +/***** Other useful stuff *****/ +/**********************************************************************/ + +#ifdef WINDOWS +#define GET_PROC(NAME) wglGetProcAddress((const GLbyte *) (NAME)) +#elif defined(DARWIN) +#define GET_PROC(NAME) NULL +#elif defined(GLX_ARB_get_proc_address) +#define GET_PROC(NAME) glXGetProcAddressARB((const GLubyte *) (NAME)) +#else +/* For SGI, etc that don't have glXGetProcAddress(). */ +#define GET_PROC(NAME) NULL +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* __CHROMIUM_H__ */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_bbox.h b/src/VBox/GuestHost/OpenGL/include/cr_bbox.h new file mode 100644 index 00000000..494ae404 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_bbox.h @@ -0,0 +1,39 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_BBOX_H +#define CR_BBOX_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern DECLEXPORT(void) +crTransformBBox(float xmin, float ymin, float zmin, + float xmax, float ymax, float zmax, + const CRmatrix *m, + float *out_xmin, float *out_ymin, float *out_zmin, + float *out_xmax, float *out_ymax, float *out_zmax); + +extern DECLEXPORT(void) +crProjectBBox(const GLfloat modl[16], const GLfloat proj[16], + GLfloat *x1, GLfloat *y1, GLfloat *z1, + GLfloat *x2, GLfloat *y2, GLfloat *z2); + + +extern DECLEXPORT(void) +crRectiUnion(CRrecti *result, const CRrecti *a, const CRrecti *b); + + +#ifdef __cplusplus +} +#endif + +#endif /* CR_BBOX_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_bits.h b/src/VBox/GuestHost/OpenGL/include/cr_bits.h new file mode 100644 index 00000000..b641a9cb --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_bits.h @@ -0,0 +1,72 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +/* Bit vector functions */ + +#ifndef CR_BITS_H +#define CR_BITS_H + + +#include "cr_compiler.h" + + +#define CR_MAX_CONTEXTS 512 +#define CR_MAX_BITARRAY (CR_MAX_CONTEXTS / 32) /* 32 contexts per uint */ + +#ifdef __cplusplus +extern "C" { +#endif + +static INLINE void RESET( unsigned int *b, const unsigned int *d ) +{ + int j; + for (j=0;j<CR_MAX_BITARRAY;j++) + b[j] |= d[j]; +} +static INLINE void DIRTY( unsigned int *b, const unsigned int *d ) +{ + int j; + for (j=0;j<CR_MAX_BITARRAY;j++) + b[j] = d[j]; +} +static INLINE void FILLDIRTY( unsigned int *b ) +{ + int j; + for (j=0;j<CR_MAX_BITARRAY;j++) + b[j] = 0xffffffff; +} +static INLINE void CLEARDIRTY( unsigned int *b, const unsigned int *d ) +{ + int j; + for (j=0;j<CR_MAX_BITARRAY;j++) + b[j] &= d[j]; +} + +/* As above, but complement the bits here instead of in the calling code */ +static INLINE void CLEARDIRTY2( unsigned int *b, const unsigned int *d ) +{ + int j; + for (j=0;j<CR_MAX_BITARRAY;j++) + b[j] &= ~d[j]; +} + +static INLINE int CHECKDIRTY( const unsigned int *b, const unsigned int *d ) +{ + int j; + + for (j=0;j<CR_MAX_BITARRAY;j++) + if (b[j] & d[j]) + return 1; + + return 0; +} + +#ifdef __cplusplus +} +#endif + + +#endif /* CR_BITS_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_blitter.h b/src/VBox/GuestHost/OpenGL/include/cr_blitter.h new file mode 100644 index 00000000..86332992 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_blitter.h @@ -0,0 +1,377 @@ +/* $Id: cr_blitter.h $ */ +/** @file + * Blitter API. + */ + +/* + * Copyright (C) 2013-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ + +#ifndef ___cr_blitter_h +#define ___cr_blitter_h + +#include <iprt/asm.h> +#include <iprt/err.h> +#include <iprt/string.h> +#include "cr_vreg.h" +#ifdef IN_VMSVGA3D +# include <iprt/assert.h> +typedef struct TODO_VMSVGA3D_DISPATCH_TABLE SPUDispatchTable; +# include <OpenGL/OpenGL.h> +#else +# include "cr_spu.h" +#endif + +/** @todo r=bird: VBOXBLITTERDECL makes no sense. */ +#ifndef IN_RING0 +# define VBOXBLITTERDECL(_type) DECLEXPORT(_type) +#else +# define VBOXBLITTERDECL(_type) RTDECL(_type) +#endif + +RT_C_DECLS_BEGIN +typedef struct CR_BLITTER_IMG +{ + void *pvData; + GLuint cbData; + GLenum enmFormat; + GLuint width, height; + GLuint bpp; + GLuint pitch; +} CR_BLITTER_IMG; +typedef CR_BLITTER_IMG *PCR_BLITTER_IMG; +typedef CR_BLITTER_IMG const *PCCR_BLITTER_IMG; + +VBOXBLITTERDECL(void) CrMClrFillImgRect(PCR_BLITTER_IMG pDst, PCRTRECT pCopyRect, uint32_t u32Color); +VBOXBLITTERDECL(void) CrMClrFillImg(PCR_BLITTER_IMG pImg, uint32_t cRects, PCRTRECT pRects, uint32_t u32Color); +VBOXBLITTERDECL(void) CrMBltImgRect(PCCR_BLITTER_IMG pSrc, PCRTPOINT pSrcDataPoint, bool fSrcInvert, PCRTRECT pCopyRect, + PCR_BLITTER_IMG pDst); +VBOXBLITTERDECL(void) CrMBltImg(PCCR_BLITTER_IMG pSrc, PCRTPOINT pPos, uint32_t cRects, PCRTRECT pRects, PCR_BLITTER_IMG pDst); +VBOXBLITTERDECL(void) CrMBltImgRectScaled(PCCR_BLITTER_IMG pSrc, PCRTPOINT pPos, bool fSrcInvert, PCRTRECT pCopyRect, + float strX, float strY, PCR_BLITTER_IMG pDst); +VBOXBLITTERDECL(void) CrMBltImgScaled(PCCR_BLITTER_IMG pSrc, PCRTRECTSIZE pSrcRectSize, PCRTRECT pDstRect, uint32_t cRects, + PCRTRECT pRects, PCR_BLITTER_IMG pDst); + +/* + * GLSL Cache + */ +typedef struct CR_GLSL_CACHE +{ + int iGlVersion; + GLuint uNoAlpha2DProg; + GLuint uNoAlpha2DRectProg; + SPUDispatchTable *pDispatch; +} CR_GLSL_CACHE; +typedef CR_GLSL_CACHE *PCR_GLSL_CACHE; +typedef CR_GLSL_CACHE const *PCCR_GLSL_CACHE; + +DECLINLINE(void) CrGlslInit(PCR_GLSL_CACHE pCache, SPUDispatchTable *pDispatch) +{ + RT_ZERO(*pCache); + pCache->pDispatch = pDispatch; +} + +DECLINLINE(bool) CrGlslIsInited(PCCR_GLSL_CACHE pCache) +{ + return !!pCache->pDispatch; +} + +/* clients should set proper context before calling these funcs */ +VBOXBLITTERDECL(bool) CrGlslIsSupported(PCR_GLSL_CACHE pCache); +VBOXBLITTERDECL(int) CrGlslProgGenAllNoAlpha(PCR_GLSL_CACHE pCache); +VBOXBLITTERDECL(int) CrGlslProgGenNoAlpha(PCR_GLSL_CACHE pCache, GLenum enmTexTarget); +VBOXBLITTERDECL(int) CrGlslProgUseGenNoAlpha(PCR_GLSL_CACHE pCache, GLenum enmTexTarget); +VBOXBLITTERDECL(int) CrGlslProgUseNoAlpha(PCCR_GLSL_CACHE pCache, GLenum enmTexTarget); +VBOXBLITTERDECL(void) CrGlslProgClear(PCCR_GLSL_CACHE pCache); +VBOXBLITTERDECL(bool) CrGlslNeedsCleanup(PCCR_GLSL_CACHE pCache); +VBOXBLITTERDECL(void) CrGlslCleanup(PCR_GLSL_CACHE pCache); +VBOXBLITTERDECL(void) CrGlslTerm(PCR_GLSL_CACHE pCache); + +/* + * BLITTER + */ +typedef struct CR_BLITTER_BUFFER +{ + GLuint cbBuffer; + GLvoid *pvBuffer; +} CR_BLITTER_BUFFER; +typedef CR_BLITTER_BUFFER *PCR_BLITTER_BUFFER; +typedef CR_BLITTER_BUFFER const *PCCR_BLITTER_BUFFER; + +typedef union CR_BLITTER_FLAGS +{ + struct + { + uint32_t Initialized : 1; + uint32_t CtxCreated : 1; + uint32_t SupportsFBO : 1; + uint32_t SupportsPBO : 1; + uint32_t CurrentMuralChanged : 1; + uint32_t LastWasFBODraw : 1; + uint32_t ForceDrawBlit : 1; + uint32_t ShadersGloal : 1; + uint32_t Reserved : 24; + }; + uint32_t Value; +} CR_BLITTER_FLAGS; + +struct CR_BLITTER; + +typedef DECLCALLBACK(int) FNCRBLT_BLITTER(struct CR_BLITTER *pBlitter, PCVBOXVR_TEXTURE pSrc, PCRTRECT paSrcRect, + PCRTRECTSIZE pDstSize, PCRTRECT paDstRect, uint32_t cRects, uint32_t fFlags); +typedef FNCRBLT_BLITTER *PFNCRBLT_BLITTER; + +typedef struct CR_BLITTER_SPUITEM +{ + int id; + GLint visualBits; +} CR_BLITTER_SPUITEM, *PCR_BLITTER_SPUITEM; + +typedef struct CR_BLITTER_CONTEXT +{ + CR_BLITTER_SPUITEM Base; +} CR_BLITTER_CONTEXT; +typedef CR_BLITTER_CONTEXT *PCR_BLITTER_CONTEXT; +typedef CR_BLITTER_CONTEXT const *PCCR_BLITTER_CONTEXT; + +typedef struct CR_BLITTER_WINDOW +{ + CR_BLITTER_SPUITEM Base; + GLuint width, height; +} CR_BLITTER_WINDOW; +typedef CR_BLITTER_WINDOW *PCR_BLITTER_WINDOW; +typedef CR_BLITTER_WINDOW const *PCCR_BLITTER_WINDOW; + +typedef struct CR_BLITTER +{ + GLuint idFBO; + CR_BLITTER_FLAGS Flags; + uint32_t cEnters; + PFNCRBLT_BLITTER pfnBlt; + CR_BLITTER_BUFFER Verticies; + CR_BLITTER_BUFFER Indicies; + RTRECTSIZE CurrentSetSize; + CR_BLITTER_WINDOW CurrentMural; + CR_BLITTER_CONTEXT CtxInfo; + int32_t i32MakeCurrentUserData; + SPUDispatchTable *pDispatch; + PCCR_GLSL_CACHE pGlslCache; + CR_GLSL_CACHE LocalGlslCache; +} CR_BLITTER; +typedef CR_BLITTER *PCR_BLITTER; +typedef CR_BLITTER const *PCCR_BLITTER; + +DECLINLINE(GLboolean) CrBltIsInitialized(PCR_BLITTER pBlitter) +{ + return !!pBlitter->pDispatch; +} + +VBOXBLITTERDECL(int) CrBltInit(PCR_BLITTER pBlitter, PCCR_BLITTER_CONTEXT pCtxBase, bool fCreateNewCtx, + bool fForceDrawBlt, PCCR_GLSL_CACHE pShaders, SPUDispatchTable *pDispatch); + +VBOXBLITTERDECL(void) CrBltTerm(PCR_BLITTER pBlitter); + +VBOXBLITTERDECL(int) CrBltCleanup(PCR_BLITTER pBlitter); + +DECLINLINE(GLboolean) CrBltSupportsTexTex(PCR_BLITTER pBlitter) +{ + return pBlitter->Flags.SupportsFBO; +} + +DECLINLINE(GLboolean) CrBltIsEntered(PCR_BLITTER pBlitter) +{ + return !!pBlitter->cEnters; +} + +DECLINLINE(GLint) CrBltGetVisBits(PCR_BLITTER pBlitter) +{ + return pBlitter->CtxInfo.Base.visualBits; +} + + +DECLINLINE(GLboolean) CrBltIsEverEntered(PCR_BLITTER pBlitter) +{ + return !!pBlitter->Flags.Initialized; +} + +DECLINLINE(void) CrBltSetMakeCurrentUserData(PCR_BLITTER pBlitter, int32_t i32MakeCurrentUserData) +{ + pBlitter->i32MakeCurrentUserData = i32MakeCurrentUserData; +} + +VBOXBLITTERDECL(int) CrBltMuralSetCurrentInfo(PCR_BLITTER pBlitter, PCCR_BLITTER_WINDOW pMural); + +DECLINLINE(PCCR_BLITTER_WINDOW) CrBltMuralGetCurrentInfo(PCR_BLITTER pBlitter) +{ + return &pBlitter->CurrentMural; +} + +VBOXBLITTERDECL(void) CrBltCheckUpdateViewport(PCR_BLITTER pBlitter); + +VBOXBLITTERDECL(void) CrBltLeave(PCR_BLITTER pBlitter); +VBOXBLITTERDECL(int) CrBltEnter(PCR_BLITTER pBlitter); +VBOXBLITTERDECL(void) CrBltBlitTexMural(PCR_BLITTER pBlitter, bool fBb, PCVBOXVR_TEXTURE pSrc, PCRTRECT paSrcRects, + PCRTRECT paDstRects, uint32_t cRects, uint32_t fFlags); +VBOXBLITTERDECL(void) CrBltBlitTexTex(PCR_BLITTER pBlitter, PCVBOXVR_TEXTURE pSrc, PCRTRECT pSrcRect, PCVBOXVR_TEXTURE pDst, + PCRTRECT pDstRect, uint32_t cRects, uint32_t fFlags); +VBOXBLITTERDECL(int) CrBltImgGetTex(PCR_BLITTER pBlitter, PCVBOXVR_TEXTURE pSrc, GLenum enmFormat, PCR_BLITTER_IMG pDst); + +VBOXBLITTERDECL(int) CrBltImgGetMural(PCR_BLITTER pBlitter, bool fBb, PCR_BLITTER_IMG pDst); +VBOXBLITTERDECL(void) CrBltImgFree(PCR_BLITTER pBlitter, PCR_BLITTER_IMG pDst); +VBOXBLITTERDECL(void) CrBltPresent(PCR_BLITTER pBlitter); +/* */ +struct CR_TEXDATA; + +typedef DECLCALLBACK(void) FNCRTEXDATA_RELEASED(struct CR_TEXDATA *pTexture); +typedef FNCRTEXDATA_RELEASED *PFNCRTEXDATA_RELEASED; + +typedef union CR_TEXDATA_FLAGS +{ + struct + { + uint32_t DataValid : 1; + uint32_t DataAcquired : 1; + uint32_t DataInverted : 1; + uint32_t Entered : 1; + uint32_t Reserved : 28; + }; + uint32_t Value; +} CR_TEXDATA_FLAGS; + + +typedef struct CR_TEXDATA +{ + VBOXVR_TEXTURE Tex; + volatile uint32_t cRefs; + /* fields specific to texture data download */ + uint32_t idInvertTex; + uint32_t idPBO; + CR_TEXDATA_FLAGS Flags; + PCR_BLITTER pBlitter; + CR_BLITTER_IMG Img; + /*dtor*/ + PFNCRTEXDATA_RELEASED pfnTextureReleased; + struct CR_TEXDATA *pScaledCache; +} CR_TEXDATA; +typedef CR_TEXDATA *PCR_TEXDATA; +typedef CR_TEXDATA const *PCCR_TEXDATA; + +DECLINLINE(void) CrTdInit(PCR_TEXDATA pTex, PCVBOXVR_TEXTURE pVrTex, PCR_BLITTER pBlitter, PFNCRTEXDATA_RELEASED pfnTextureReleased) +{ + memset(pTex, 0, sizeof (*pTex)); + pTex->Tex = *pVrTex; + pTex->cRefs = 1; + pTex->pBlitter = pBlitter; + pTex->pfnTextureReleased = pfnTextureReleased; +} + +DECLINLINE(PCVBOXVR_TEXTURE) CrTdTexGet(PCCR_TEXDATA pTex) +{ + return &pTex->Tex; +} + +DECLINLINE(PCR_BLITTER) CrTdBlitterGet(PCR_TEXDATA pTex) +{ + return pTex->pBlitter; +} + +DECLINLINE(int) CrTdBltEnter(PCR_TEXDATA pTex) +{ + int rc; + if (pTex->Flags.Entered) + return VERR_INVALID_STATE; + rc = CrBltEnter(pTex->pBlitter); +#ifdef IN_VMSVGA3D + AssertRCReturn(rc, rc); +#else + if (!RT_SUCCESS(rc)) + { + WARN(("CrBltEnter failed rc %d", rc)); + return rc; + } +#endif + pTex->Flags.Entered = 1; + return VINF_SUCCESS; +} + +DECLINLINE(bool) CrTdBltIsEntered(PCR_TEXDATA pTex) +{ + return pTex->Flags.Entered; +} + +DECLINLINE(void) CrTdBltLeave(PCR_TEXDATA pTex) +{ +#ifdef IN_VMSVGA3D + AssertReturnVoid(pTex->Flags.Entered); +#else + if (!pTex->Flags.Entered) + { + WARN(("invalid Blt Leave")); + return; + } +#endif + + CrBltLeave(pTex->pBlitter); + + pTex->Flags.Entered = 0; +} + +/* the CrTdBltXxx calls are done with the entered blitter */ +/** Acquire the texture data, returns the cached data in case it is cached. + * The data remains cached in the CR_TEXDATA object until it is discarded with + * CrTdBltDataFree or CrTdBltDataCleanup. */ +VBOXBLITTERDECL(int) CrTdBltDataAcquire(PCR_TEXDATA pTex, GLenum enmFormat, bool fInverted, PCCR_BLITTER_IMG *ppImg); + +VBOXBLITTERDECL(int) CrTdBltDataAcquireScaled(PCR_TEXDATA pTex, GLenum enmFormat, bool fInverted, + uint32_t width, uint32_t height, PCCR_BLITTER_IMG *ppImg); + +VBOXBLITTERDECL(int) CrTdBltDataReleaseScaled(PCR_TEXDATA pTex, PCCR_BLITTER_IMG pImg); + +VBOXBLITTERDECL(void) CrTdBltScaleCacheMoveTo(PCR_TEXDATA pTex, PCR_TEXDATA pDstTex); + +/** Release the texture data, the data remains cached in the CR_TEXDATA object + * until it is discarded with CrTdBltDataFree or CrTdBltDataCleanup. */ +VBOXBLITTERDECL(int) CrTdBltDataRelease(PCR_TEXDATA pTex); +/** Discard the texture data cached with previous CrTdBltDataAcquire. + * Must be called wit data released (CrTdBltDataRelease). */ +VBOXBLITTERDECL(int) CrTdBltDataFree(PCR_TEXDATA pTex); +VBOXBLITTERDECL(int) CrTdBltDataFreeNe(PCR_TEXDATA pTex); +VBOXBLITTERDECL(void) CrTdBltDataInvalidateNe(PCR_TEXDATA pTex); +/** Does same as CrTdBltDataFree, and in addition cleans up. + * This is kind of a texture destructor, which clients should call on texture object destruction, + * e.g. from the PFNCRTEXDATA_RELEASED callback. */ +VBOXBLITTERDECL(int) CrTdBltDataCleanup(PCR_TEXDATA pTex); + +VBOXBLITTERDECL(int) CrTdBltDataCleanupNe(PCR_TEXDATA pTex); + +DECLINLINE(uint32_t) CrTdAddRef(PCR_TEXDATA pTex) +{ + return ASMAtomicIncU32(&pTex->cRefs); +} + +DECLINLINE(uint32_t) CrTdRelease(PCR_TEXDATA pTex) +{ + uint32_t cRefs = ASMAtomicDecU32(&pTex->cRefs); + if (!cRefs) + { + if (pTex->pfnTextureReleased) + pTex->pfnTextureReleased(pTex); + else + CrTdBltDataCleanupNe(pTex); + } + + return cRefs; +} + +RT_C_DECLS_END + +#endif + diff --git a/src/VBox/GuestHost/OpenGL/include/cr_bmpscale.h b/src/VBox/GuestHost/OpenGL/include/cr_bmpscale.h new file mode 100644 index 00000000..fda56bac --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_bmpscale.h @@ -0,0 +1,25 @@ +#ifndef ___cr_bmpscale_h__ +#define ___cr_bmpscale_h__ + +#include <iprt/types.h> +#include <iprt/cdefs.h> + + +RT_C_DECLS_BEGIN + +#ifndef IN_RING0 +# define VBOXBMPSCALEDECL(_type) DECLEXPORT(_type) +#else +# define VBOXBLITTERDECL(_type) RTDECL(_type) +#endif + +VBOXBMPSCALEDECL(void) CrBmpScale32 (uint8_t *dst, + int iDstDeltaLine, + int dstW, int dstH, + const uint8_t *src, + int iSrcDeltaLine, + int srcW, int srcH); + +RT_C_DECLS_END + +#endif /* #ifndef ___cr_bmpscale_h__ */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_bufpool.h b/src/VBox/GuestHost/OpenGL/include/cr_bufpool.h new file mode 100644 index 00000000..60ec216c --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_bufpool.h @@ -0,0 +1,33 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_BUFPOOL_H +#define CR_BUFPOOL_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct CRBufferPool_t CRBufferPool; +typedef void (*CRBufferPoolDeleteCallback)(void *data); + +DECLEXPORT(CRBufferPool *) crBufferPoolInit( unsigned int maxBuffers ); +DECLEXPORT(void) crBufferPoolFree( CRBufferPool *pool ); +DECLEXPORT(void) crBufferPoolCallbackFree(CRBufferPool *pool, CRBufferPoolDeleteCallback pfnDelete); + +DECLEXPORT(void) crBufferPoolPush( CRBufferPool *pool, void *buf, unsigned int bytes ); +DECLEXPORT(void *) crBufferPoolPop( CRBufferPool *pool, unsigned int bytes ); + +DECLEXPORT(int) crBufferPoolGetNumBuffers( CRBufferPool *pool ); +DECLEXPORT(int) crBufferPoolGetMaxBuffers( CRBufferPool *pool ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_BUFPOOL_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_calllists.h b/src/VBox/GuestHost/OpenGL/include/cr_calllists.h new file mode 100644 index 00000000..4d9d0670 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_calllists.h @@ -0,0 +1,28 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_CALLLISTS_H +#define CR_CALLLISTS_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern DECLEXPORT(int) +crExpandCallLists(GLsizei n, GLenum type, const GLvoid *lists, + GLuint base, void (*callListFunc)(GLuint list)); + +extern DECLEXPORT(int) +crExpandCallListsWithData(GLsizei n, GLenum type, const GLvoid *lists, + GLuint base, void (*callListFunc)(GLuint list, GLuint index, GLvoid *data), GLvoid *data); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_CALLLISTS_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_compiler.h b/src/VBox/GuestHost/OpenGL/include/cr_compiler.h new file mode 100644 index 00000000..15f73bd0 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_compiler.h @@ -0,0 +1,45 @@ +/** + * Compiler-related definitions, etc. + */ + +#ifndef CR_COMPILER_H +#define CR_COMPILER_H 1 + + +/** + * Function inlining + */ +#if defined(__GNUC__) +# define INLINE __inline__ +#elif defined(__MSC__) +# define INLINE __inline +#elif defined(_MSC_VER) +# define INLINE __inline +#elif defined(__ICL) +# define INLINE __inline +#else +# define INLINE +#endif + + +/** + * For global vars in shared libs + */ +#include <iprt/cdefs.h> + +#ifndef DLLDATA +#define DLLDATA(type) DECLIMPORT(type) +#endif + +/** + * For functions called via the public API. + * XXX CR_APIENTRY could probably replace all the other *_APIENTRY defines. + */ +#ifdef WINDOWS +#define CR_APIENTRY __stdcall +#else +#define CR_APIENTRY +#endif + + +#endif /* CR_COMPILER_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_compositor.h b/src/VBox/GuestHost/OpenGL/include/cr_compositor.h new file mode 100644 index 00000000..c97c9a81 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_compositor.h @@ -0,0 +1,265 @@ +/* $Id: cr_compositor.h $ */ +/** @file + * Compositor API. + */ + +/* + * Copyright (C) 2013-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ + +#ifndef ___cr_compositor_h +#define ___cr_compositor_h + +#include "cr_vreg.h" +#include "cr_blitter.h" + + +/* Compositor with Stretching & Cached Rectangles info */ + +RT_C_DECLS_BEGIN + +struct VBOXVR_SCR_COMPOSITOR_ENTRY; +struct VBOXVR_SCR_COMPOSITOR; + +typedef DECLCALLBACK(void) FNVBOXVRSCRCOMPOSITOR_ENTRY_RELEASED(const struct VBOXVR_SCR_COMPOSITOR *pCompositor, + struct VBOXVR_SCR_COMPOSITOR_ENTRY *pEntry, + struct VBOXVR_SCR_COMPOSITOR_ENTRY *pReplacingEntry); +typedef FNVBOXVRSCRCOMPOSITOR_ENTRY_RELEASED *PFNVBOXVRSCRCOMPOSITOR_ENTRY_RELEASED; + + +typedef struct VBOXVR_SCR_COMPOSITOR_ENTRY +{ + VBOXVR_COMPOSITOR_ENTRY Ce; + RTRECT Rect; + uint32_t fChanged; + uint32_t fFlags; + uint32_t cRects; + PRTRECT paSrcRects; + PRTRECT paDstRects; + PRTRECT paDstUnstretchedRects; + PFNVBOXVRSCRCOMPOSITOR_ENTRY_RELEASED pfnEntryReleased; + PCR_TEXDATA pTex; +} VBOXVR_SCR_COMPOSITOR_ENTRY; +typedef VBOXVR_SCR_COMPOSITOR_ENTRY *PVBOXVR_SCR_COMPOSITOR_ENTRY; +typedef VBOXVR_SCR_COMPOSITOR_ENTRY const *PCVBOXVR_SCR_COMPOSITOR_ENTRY; + +typedef struct VBOXVR_SCR_COMPOSITOR +{ + VBOXVR_COMPOSITOR Compositor; + RTRECT Rect; +#ifndef IN_RING0 + float StretchX; + float StretchY; +#endif + uint32_t fFlags; + uint32_t cRects; + uint32_t cRectsBuffer; + PRTRECT paSrcRects; + PRTRECT paDstRects; + PRTRECT paDstUnstretchedRects; +} VBOXVR_SCR_COMPOSITOR; +typedef VBOXVR_SCR_COMPOSITOR *PVBOXVR_SCR_COMPOSITOR; +typedef VBOXVR_SCR_COMPOSITOR const *PCVBOXVR_SCR_COMPOSITOR; + + +typedef DECLCALLBACK(bool) FNVBOXVRSCRCOMPOSITOR_VISITOR(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + void *pvVisitor); +typedef FNVBOXVRSCRCOMPOSITOR_VISITOR *PFNVBOXVRSCRCOMPOSITOR_VISITOR; + +DECLINLINE(void) CrVrScrCompositorEntryInit(PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, PCRTRECT pRect, CR_TEXDATA *pTex, + PFNVBOXVRSCRCOMPOSITOR_ENTRY_RELEASED pfnEntryReleased) +{ + memset(pEntry, 0, sizeof (*pEntry)); + VBoxVrCompositorEntryInit(&pEntry->Ce); + pEntry->Rect = *pRect; + pEntry->pfnEntryReleased = pfnEntryReleased; + if (pTex) + { + CrTdAddRef(pTex); + pEntry->pTex = pTex; + } +} + +DECLINLINE(void) CrVrScrCompositorEntryCleanup(PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry) +{ + if (pEntry->pTex) + { + CrTdRelease(pEntry->pTex); + pEntry->pTex = NULL; + } +} + +DECLINLINE(bool) CrVrScrCompositorEntryIsUsed(PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry) +{ + return VBoxVrCompositorEntryIsInList(&pEntry->Ce); +} + +DECLINLINE(void) CrVrScrCompositorEntrySetChanged(PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, bool fChanged) +{ + pEntry->fChanged = !!fChanged; +} + +DECLINLINE(void) CrVrScrCompositorEntryTexSet(PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, CR_TEXDATA *pTex) +{ + if (pEntry->pTex) + CrTdRelease(pEntry->pTex); + + if (pTex) + CrTdAddRef(pTex); + + pEntry->pTex = pTex; +} + +DECLINLINE(CR_TEXDATA *) CrVrScrCompositorEntryTexGet(PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry) +{ + return pEntry->pTex; +} + +DECLINLINE(bool) CrVrScrCompositorEntryIsChanged(PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry) +{ + return !!pEntry->fChanged; +} + +DECLINLINE(bool) CrVrScrCompositorIsEmpty(PCVBOXVR_SCR_COMPOSITOR pCompositor) +{ + return VBoxVrCompositorIsEmpty(&pCompositor->Compositor); +} + +VBOXVREGDECL(int) CrVrScrCompositorEntryRectSet(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + PCRTRECT pRect); +VBOXVREGDECL(int) CrVrScrCompositorEntryTexAssign(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + CR_TEXDATA *pTex); +VBOXVREGDECL(void) CrVrScrCompositorVisit(PVBOXVR_SCR_COMPOSITOR pCompositor, PFNVBOXVRSCRCOMPOSITOR_VISITOR pfnVisitor, + void *pvVisitor); +VBOXVREGDECL(void) CrVrScrCompositorEntrySetAllChanged(PVBOXVR_SCR_COMPOSITOR pCompositor, bool fChanged); +DECLINLINE(bool) CrVrScrCompositorEntryIsInList(PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry) +{ + return VBoxVrCompositorEntryIsInList(&pEntry->Ce); +} +VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsAdd(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + PCRTPOINT pPos, uint32_t cRegions, PCRTRECT paRegions, bool fPosRelated, + VBOXVR_SCR_COMPOSITOR_ENTRY **ppReplacedScrEntry, uint32_t *pfChangeFlags); +VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsSet(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + PCRTPOINT pPos, uint32_t cRegions, PCRTRECT paRegions, bool fPosRelated, + bool *pfChanged); +VBOXVREGDECL(int) CrVrScrCompositorEntryListIntersect(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + PCVBOXVR_LIST pList2, bool *pfChanged); +VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsIntersect(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + uint32_t cRegions, PCRTRECT paRegions, bool *pfChanged); +VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsIntersectAll(PVBOXVR_SCR_COMPOSITOR pCompositor, uint32_t cRegions, + PCRTRECT paRegions, bool *pfChanged); +VBOXVREGDECL(int) CrVrScrCompositorEntryListIntersectAll(PVBOXVR_SCR_COMPOSITOR pCompositor, PCVBOXVR_LIST pList2, + bool *pfChanged); +VBOXVREGDECL(int) CrVrScrCompositorEntryPosSet(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + PCRTPOINT pPos); +DECLINLINE(PCRTRECT) CrVrScrCompositorEntryRectGet(PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry) +{ + return &pEntry->Rect; +} + +/* regions are valid until the next CrVrScrCompositor call */ +VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsGet(PCVBOXVR_SCR_COMPOSITOR pCompositor, + PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, uint32_t *pcRegions, + PCRTRECT *ppaSrcRegions, PCRTRECT *ppaDstRegions, + PCRTRECT *ppaDstUnstretchedRects); +VBOXVREGDECL(int) CrVrScrCompositorEntryRemove(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry); +VBOXVREGDECL(bool) CrVrScrCompositorEntryReplace(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + PVBOXVR_SCR_COMPOSITOR_ENTRY pNewEntry); +VBOXVREGDECL(void) CrVrScrCompositorEntryFlagsSet(PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, uint32_t fFlags); +VBOXVREGDECL(uint32_t) CrVrScrCompositorEntryFlagsCombinedGet(PCVBOXVR_SCR_COMPOSITOR pCompositor, + PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry); +DECLINLINE(uint32_t) CrVrScrCompositorEntryFlagsGet(PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry) +{ + return pEntry->fFlags; +} + +VBOXVREGDECL(void) CrVrScrCompositorInit(PVBOXVR_SCR_COMPOSITOR pCompositor, PCRTRECT pRect); +VBOXVREGDECL(int) CrVrScrCompositorRectSet(PVBOXVR_SCR_COMPOSITOR pCompositor, PCRTRECT pRect, bool *pfChanged); +DECLINLINE(PCRTRECT) CrVrScrCompositorRectGet(PCVBOXVR_SCR_COMPOSITOR pCompositor) +{ + return &pCompositor->Rect; +} + +VBOXVREGDECL(void) CrVrScrCompositorClear(PVBOXVR_SCR_COMPOSITOR pCompositor); +VBOXVREGDECL(void) CrVrScrCompositorRegionsClear(PVBOXVR_SCR_COMPOSITOR pCompositor, bool *pfChanged); + +typedef DECLCALLBACK(VBOXVR_SCR_COMPOSITOR_ENTRY*) FNVBOXVR_SCR_COMPOSITOR_ENTRY_FOR(PCVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, + void *pvContext); +typedef FNVBOXVR_SCR_COMPOSITOR_ENTRY_FOR *PFNVBOXVR_SCR_COMPOSITOR_ENTRY_FOR; + +VBOXVREGDECL(int) CrVrScrCompositorClone(PCVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR pDstCompositor, + PFNVBOXVR_SCR_COMPOSITOR_ENTRY_FOR pfnEntryFor, void *pvEntryFor); +VBOXVREGDECL(int) CrVrScrCompositorIntersectList(PVBOXVR_SCR_COMPOSITOR pCompositor, PCVBOXVR_LIST pVr, bool *pfChanged); +VBOXVREGDECL(int) CrVrScrCompositorIntersectedList(PCVBOXVR_SCR_COMPOSITOR pCompositor, PCVBOXVR_LIST pVr, + PVBOXVR_SCR_COMPOSITOR pDstCompositor, + PFNVBOXVR_SCR_COMPOSITOR_ENTRY_FOR pfnEntryFor, void *pvEntryFor, bool *pfChanged); +#ifndef IN_RING0 +VBOXVREGDECL(void) CrVrScrCompositorSetStretching(PVBOXVR_SCR_COMPOSITOR pCompositor, float StretchX, float StretchY); +DECLINLINE(void) CrVrScrCompositorGetStretching(PCVBOXVR_SCR_COMPOSITOR pCompositor, float *pStretchX, float *pStretchY) +{ + if (pStretchX) + *pStretchX = pCompositor->StretchX; + + if (pStretchY) + *pStretchY = pCompositor->StretchY; +} +#endif +/* regions are valid until the next CrVrScrCompositor call */ +VBOXVREGDECL(int) CrVrScrCompositorRegionsGet(PCVBOXVR_SCR_COMPOSITOR pCompositor, uint32_t *pcRegions, + PCRTRECT *ppaSrcRegions, PCRTRECT *ppaDstRegions, PCRTRECT *ppaDstUnstretchedRects); + +#define VBOXVR_SCR_COMPOSITOR_ENTRY_FROM_ENTRY(_p) RT_FROM_MEMBER(_p, VBOXVR_SCR_COMPOSITOR_ENTRY, Ce) +#define VBOXVR_SCR_COMPOSITOR_CONST_ENTRY_FROM_ENTRY(_p) RT_FROM_MEMBER(_p, const VBOXVR_SCR_COMPOSITOR_ENTRY, Ce) +#define VBOXVR_SCR_COMPOSITOR_FROM_COMPOSITOR(_p) RT_FROM_MEMBER(_p, VBOXVR_SCR_COMPOSITOR, Compositor) + +typedef struct VBOXVR_SCR_COMPOSITOR_ITERATOR +{ + VBOXVR_COMPOSITOR_ITERATOR Base; +} VBOXVR_SCR_COMPOSITOR_ITERATOR; +typedef VBOXVR_SCR_COMPOSITOR_ITERATOR *PVBOXVR_SCR_COMPOSITOR_ITERATOR; + +typedef struct VBOXVR_SCR_COMPOSITOR_CONST_ITERATOR +{ + VBOXVR_COMPOSITOR_CONST_ITERATOR Base; +} VBOXVR_SCR_COMPOSITOR_CONST_ITERATOR; +typedef VBOXVR_SCR_COMPOSITOR_CONST_ITERATOR *PVBOXVR_SCR_COMPOSITOR_CONST_ITERATOR; + +DECLINLINE(void) CrVrScrCompositorIterInit(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ITERATOR pIter) +{ + VBoxVrCompositorIterInit(&pCompositor->Compositor, &pIter->Base); +} + +DECLINLINE(void) CrVrScrCompositorConstIterInit(PCVBOXVR_SCR_COMPOSITOR pCompositor, + PVBOXVR_SCR_COMPOSITOR_CONST_ITERATOR pIter) +{ + VBoxVrCompositorConstIterInit(&pCompositor->Compositor, &pIter->Base); +} + +DECLINLINE(PVBOXVR_SCR_COMPOSITOR_ENTRY) CrVrScrCompositorIterNext(PVBOXVR_SCR_COMPOSITOR_ITERATOR pIter) +{ + PVBOXVR_COMPOSITOR_ENTRY pCe = VBoxVrCompositorIterNext(&pIter->Base); + if (pCe) + return VBOXVR_SCR_COMPOSITOR_ENTRY_FROM_ENTRY(pCe); + return NULL; +} + +DECLINLINE(PCVBOXVR_SCR_COMPOSITOR_ENTRY) CrVrScrCompositorConstIterNext(PVBOXVR_SCR_COMPOSITOR_CONST_ITERATOR pIter) +{ + PCVBOXVR_COMPOSITOR_ENTRY pCe = VBoxVrCompositorConstIterNext(&pIter->Base); + if (pCe) + return VBOXVR_SCR_COMPOSITOR_CONST_ENTRY_FROM_ENTRY(pCe); + return NULL; +} + +RT_C_DECLS_END + +#endif + diff --git a/src/VBox/GuestHost/OpenGL/include/cr_debugopcodes.h b/src/VBox/GuestHost/OpenGL/include/cr_debugopcodes.h new file mode 100644 index 00000000..9368e25a --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_debugopcodes.h @@ -0,0 +1,23 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_DEBUG_OPCODES_H +#define CR_DEBUG_OPCODES_H + +#include "cr_opcodes.h" +#include <stdio.h> + +#ifdef __cplusplus +extern "C" { +#endif + +void crDebugOpcodes( FILE *fp, unsigned char *ptr, unsigned int num_opcodes ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_DEBUG_OPCODES_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_dispatch.h b/src/VBox/GuestHost/OpenGL/include/cr_dispatch.h new file mode 100644 index 00000000..9f6180b5 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_dispatch.h @@ -0,0 +1,66 @@ +#ifndef CR_DISPATCH_H +#define CR_DISPATCH_H + +#include "spu_dispatch_table.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * This structure offers a set of layers for controlling the + * dispatch table. The top layer is always the active layer, + * and controls the dispatch table. Utilities may push new + * layers onto the stack, or pop layers off, to control how + * dispatches are made. A utility may keep track of the + * layer it created, and change it as needed, if dynamic + * control of dispatch tables is needed. + */ + +typedef struct crDispatchLayer { + SPUDispatchTable *dispatchTable; + void (*changedCallback)(SPUDispatchTable *changedTable, void *callbackParm); + void *callbackParm; + struct crDispatchLayer *next, *prev; +} crDispatchLayer; + +/** This has to be saved and restored for each graphics context */ +typedef struct { + crDispatchLayer *topLayer; + crDispatchLayer *bottomLayer; +} crCurrentDispatchInfo; + +/** + * These are already called from appropriate opengl_stub + * routines, so SPUs or utilities shouldn't have to + * worry about them, as long as they let their + * parent routines for NewContext and MakeCurrent + * execute before they try to use any of the + * dispatch utilities. + */ +DECLEXPORT(void) crDispatchInit(SPUDispatchTable *defaultTable); +DECLEXPORT(void) crInitDispatchInfo(crCurrentDispatchInfo *info); +DECLEXPORT(void) crSetCurrentDispatchInfo(crCurrentDispatchInfo *info); + +/** + * SPUs and utilities are expected to use these routines + * to modify dispatch tables. They should only be called + * once the current dispatch info is set (i.e., after + * the opengl_stub routine for MakeCurrent has a chance + * to run). + */ +DECLEXPORT(crDispatchLayer) *crNewDispatchLayer(SPUDispatchTable *newTable, + void (*changedCallback)(SPUDispatchTable *changedTable, void *callbackParm), + void *callbackParm); +DECLEXPORT(void) crChangeDispatchLayer(crDispatchLayer *layer, + SPUDispatchTable *changedTable); +DECLEXPORT(void) crFreeDispatchLayer(crDispatchLayer *layer); + + +#ifdef __cplusplus +} +#endif + +#endif /* CR_DISPATCH_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_dll.h b/src/VBox/GuestHost/OpenGL/include/cr_dll.h new file mode 100644 index 00000000..81c1b687 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_dll.h @@ -0,0 +1,49 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_DLL_H +#define CR_DLL_H + +#if defined(WINDOWS) +#define WIN32_LEAN_AND_MEAN +# ifdef VBOX +# include <iprt/win/windows.h> +# else +#include <windows.h> +# endif +#endif + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + char *name; +#if defined(WINDOWS) + HINSTANCE hinstLib; +#elif defined(IRIX) || defined(IRIX64) || defined(Linux) || defined(FreeBSD) || defined(AIX) || defined(SunOS) || defined(OSF1) + void *hinstLib; +#elif defined(DARWIN) + void *hinstLib; /* void to avoid including the headers */ + int type; /* to avoid calling crStrstr all the time */ +#else +#error ARCHITECTURE DLL NOT IMPLEMENTED +#endif +} CRDLL; + +typedef void (*CRDLLFunc)(void); +DECLEXPORT(CRDLL *) crDLLOpen( const char *dllname, int resolveGlobal ); +DECLEXPORT(CRDLLFunc) crDLLGetNoError( CRDLL *dll, const char *symname ); +DECLEXPORT(CRDLLFunc) crDLLGet( CRDLL *dll, const char *symname ); +DECLEXPORT(void) crDLLClose( CRDLL *dll ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_DLL_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_dmx.h b/src/VBox/GuestHost/OpenGL/include/cr_dmx.h new file mode 100644 index 00000000..4ae6456d --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_dmx.h @@ -0,0 +1,55 @@ +/** + * DMX utility functions. + */ + +#ifndef CR_DMX_H +#define CR_DMX_H + +#include <X11/Xlib.h> +#include <X11/extensions/dmxext.h> + +#include "cr_spu.h" +#include "state/cr_statetypes.h" + + +typedef struct { + GLXDrawable xwin; /**< backend server's X window */ + GLXDrawable xsubwin; /**< child of xwin, clipped to screen bounds */ + Display *dpy; /**< DMX back-end server display */ + CRrecti visrect; /**< visible rect, in front-end screen coords */ +} CRDMXBackendWindowInfo; + + +#ifdef __cplusplus +extern "C" { +#endif + + +extern int +crDMXSupported(Display *dpy); + +extern CRDMXBackendWindowInfo * +crDMXAllocBackendWindowInfo(unsigned int numBackendWindows); + +extern void +crDMXFreeBackendWindowInfo(unsigned int numBackendWindows, + CRDMXBackendWindowInfo *backendWindows); + +/* Given the DMX front-end display "dpy" and window "xwin", update the + * backend window information in "backendWindows". If new subwindows are + * needed, and an OpenGL interface pointer is provided, use that interface + * and the subwindowVisBits to create new subwindows. + */ +extern GLboolean +crDMXGetBackendWindowInfo(Display *dpy, GLXDrawable xwin, + unsigned int numBackendWindows, + CRDMXBackendWindowInfo *backendWindows, + const crOpenGLInterface *openGlInterface, + GLint subwindowVisBits); + + +#ifdef __cplusplus +} +#endif + +#endif /* CR_DLM_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_dump.h b/src/VBox/GuestHost/OpenGL/include/cr_dump.h new file mode 100644 index 00000000..d156b169 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_dump.h @@ -0,0 +1,177 @@ +/* $Id: cr_dump.h $ */ + +/** @file + * Debugging: Dump API + */ +/* + * Copyright (C) 2013-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ +#ifndef ___cr_dump_h__ +#define ___cr_dump_h__ + +/* dump stuff */ +//#define VBOX_WITH_CRDUMPER +#ifdef VBOX_WITH_CRDUMPER + +#include <iprt/cdefs.h> +#include <iprt/string.h> +#include <cr_spu.h> +#include <cr_glstate.h> +#include <cr_blitter.h> + +# define VBOXDUMPDECL(_type) _type RTCALL + +RT_C_DECLS_BEGIN + +#ifdef RT_OS_WINDOWS +DECLEXPORT(void) crDmpDumpImgDmlBreak(struct CR_DUMPER * pDumper, CR_BLITTER_IMG *pImg, const char*pszEntryDesc); + +DECLEXPORT(void) crDmpDumpStrDbgPrint(struct CR_DUMPER * pDumper, const char*pszStr); +#endif + +struct CR_DUMPER; + +typedef DECLCALLBACKPTR(void, PFNCRDUMPIMG)(struct CR_DUMPER * pDumper, CR_BLITTER_IMG *pImg, const char*pszEntryDesc); +typedef DECLCALLBACKPTR(void, PFNCRDUMPSTR)(struct CR_DUMPER * pDumper, const char*pszStr); + +typedef struct CR_DUMPER +{ + PFNCRDUMPIMG pfnDumpImg; + PFNCRDUMPSTR pfnDumpStr; +} CR_DUMPER; + +#define crDmpImg(_pDumper, _pImg, _pDesc) do { \ + (_pDumper)->pfnDumpImg((_pDumper), (_pImg), (_pDesc)); \ + } while (0) + +#define crDmpStr(_pDumper, _pDesc) do { \ + (_pDumper)->pfnDumpStr((_pDumper), (_pDesc)); \ + } while (0) + +#ifndef RT_OS_WINDOWS +# define vsprintf_s vsnprintf +# define sprintf_s snprintf +#endif + +DECLINLINE(void) crDmpStrV(CR_DUMPER *pDumper, const char *pszStr, va_list pArgList) +{ + char szBuffer[4096] = {0}; + vsprintf_s(szBuffer, sizeof (szBuffer), pszStr, pArgList); + crDmpStr(pDumper, szBuffer); +} + +DECLINLINE(void) crDmpStrF(CR_DUMPER *pDumper, const char *pszStr, ...) +{ + va_list pArgList; + va_start(pArgList, pszStr); + crDmpStrV(pDumper, pszStr, pArgList); + va_end(pArgList); +} + +DECLINLINE(void) crDmpImgV(CR_DUMPER *pDumper, CR_BLITTER_IMG *pImg, const char *pszStr, va_list pArgList) +{ + char szBuffer[4096] = {0}; + vsprintf_s(szBuffer, sizeof (szBuffer), pszStr, pArgList); + crDmpImg(pDumper, pImg, szBuffer); +} + +DECLINLINE(void) crDmpImgF(CR_DUMPER *pDumper, CR_BLITTER_IMG *pImg, const char *pszStr, ...) +{ + va_list pArgList; + va_start(pArgList, pszStr); + crDmpImgV(pDumper, pImg, pszStr, pArgList); + va_end(pArgList); +} + +VBOXDUMPDECL(size_t) crDmpFormatArray(char *pString, size_t cbString, const char *pszElFormat, uint32_t cbEl, const void *pVal, uint32_t cVal); +VBOXDUMPDECL(size_t) crDmpFormatRawArray(char *pString, size_t cbString, const char *pszElFormat, uint32_t cbEl, const void *pVal, uint32_t cVal); +VBOXDUMPDECL(size_t) crDmpFormatMatrixArray(char *pString, size_t cbString, const char *pszElFormat, uint32_t cbEl, const void *pVal, uint32_t cX, uint32_t cY); + +typedef struct CR_DBGPRINT_DUMPER +{ + CR_DUMPER Base; +} CR_DBGPRINT_DUMPER; + +typedef struct CR_HTML_DUMPER +{ + CR_DUMPER Base; + const char* pszFile; + const char* pszDir; + FILE *pFile; + uint32_t cImg; +} CR_HTML_DUMPER; + +DECLEXPORT(bool) crDmpHtmlIsInited(struct CR_HTML_DUMPER * pDumper); +DECLEXPORT(void) crDmpHtmlTerm(struct CR_HTML_DUMPER * pDumper); +DECLEXPORT(int) crDmpHtmlInit(struct CR_HTML_DUMPER * pDumper, const char *pszDir, const char *pszFile); +DECLEXPORT(int) crDmpHtmlInitV(struct CR_HTML_DUMPER * pDumper, const char *pszDir, const char *pszFile, va_list pArgList); +DECLEXPORT(int) crDmpHtmlInitF(struct CR_HTML_DUMPER * pDumper, const char *pszDir, const char *pszFile, ...); + +#ifdef RT_OS_WINDOWS +DECLINLINE(void) crDmpDbgPrintInit(CR_DBGPRINT_DUMPER *pDumper) +{ + pDumper->Base.pfnDumpImg = crDmpDumpImgDmlBreak; + pDumper->Base.pfnDumpStr = crDmpDumpStrDbgPrint; +} +#endif + +typedef struct CR_RECORDER +{ + CR_BLITTER *pBlitter; + SPUDispatchTable *pDispatch; + CR_DUMPER *pDumper; +} CR_RECORDER; + +DECLINLINE(void) crRecInit(CR_RECORDER *pRec, CR_BLITTER *pBlitter, SPUDispatchTable *pDispatch, CR_DUMPER *pDumper) +{ + pRec->pBlitter = pBlitter; + pRec->pDispatch = pDispatch; + pRec->pDumper = pDumper; +} + +VBOXDUMPDECL(void) crRecDumpBuffer(CR_RECORDER *pRec, CRContext *ctx, GLint idRedirFBO, VBOXVR_TEXTURE *pRedirTex); +VBOXDUMPDECL(void) crRecDumpTextures(CR_RECORDER *pRec, CRContext *ctx); +VBOXDUMPDECL(void) crRecDumpTextureV(CR_RECORDER *pRec, const VBOXVR_TEXTURE *pTex, CR_BLITTER_CONTEXT *pCurCtx, CR_BLITTER_WINDOW *pCurWin, const char *pszStr, va_list pArgList); +VBOXDUMPDECL(void) crRecDumpTextureF(CR_RECORDER *pRec, const VBOXVR_TEXTURE *pTex, const char *pszStr, ...); +VBOXDUMPDECL(void) crRecDumpTextureByIdV(CR_RECORDER *pRec, CRContext *ctx, GLint id, CR_BLITTER_CONTEXT *pCurCtx, CR_BLITTER_WINDOW *pCurWin, const char *pszStr, va_list pArgList); +VBOXDUMPDECL(void) crRecDumpTextureByIdF(CR_RECORDER *pRec, CRContext *ctx, GLint id, CR_BLITTER_CONTEXT *pCurCtx, CR_BLITTER_WINDOW *pCurWin, const char *pszStr, ...); +VBOXDUMPDECL(void) crRecDumpShader(CR_RECORDER *pRec, CRContext *ctx, GLint id, GLint hwid); +VBOXDUMPDECL(void) crRecDumpProgram(CR_RECORDER *pRec, CRContext *ctx, GLint id, GLint hwid); +VBOXDUMPDECL(void) crRecRecompileShader(CR_RECORDER *pRec, CRContext *ctx, GLint id, GLint hwid); +VBOXDUMPDECL(void) crRecRecompileProgram(CR_RECORDER *pRec, CRContext *ctx, GLint id, GLint hwid); +VBOXDUMPDECL(void) crRecDumpCurrentProgram(CR_RECORDER *pRec, CRContext *ctx); +VBOXDUMPDECL(void) crRecDumpProgramUniforms(CR_RECORDER *pRec, CRContext *ctx, GLint id, GLint hwid); +VBOXDUMPDECL(void) crRecDumpCurrentProgramUniforms(CR_RECORDER *pRec, CRContext *ctx); +VBOXDUMPDECL(void) crRecRecompileCurrentProgram(CR_RECORDER *pRec, CRContext *ctx); +VBOXDUMPDECL(void) crRecDumpProgramAttribs(CR_RECORDER *pRec, CRContext *ctx, GLint id, GLint hwid); +VBOXDUMPDECL(void) crRecDumpCurrentProgramAttribs(CR_RECORDER *pRec, CRContext *ctx); +VBOXDUMPDECL(void) crRecDumpGlGetState(CR_RECORDER *pRec, CRContext *ctx); +VBOXDUMPDECL(void) crRecDumpGlEnableState(CR_RECORDER *pRec, CRContext *ctx); +VBOXDUMPDECL(void) crRecDumpVertAttrv(CR_RECORDER *pRec, CRContext *ctx, GLuint idx, const char*pszElFormat, uint32_t cbEl, const void *pvVal, uint32_t cVal); +VBOXDUMPDECL(void) crRecDumpVertAttrF(CR_RECORDER *pRec, CRContext *ctx, const char*pszFormat, ...); +VBOXDUMPDECL(void) crRecDumpVertAttrV(CR_RECORDER *pRec, CRContext *ctx, const char*pszFormat, va_list pArgList); +VBOXDUMPDECL(void) crRecDumpTexParam(CR_RECORDER *pRec, CRContext *ctx, GLenum enmTarget); +VBOXDUMPDECL(void) crRecDumpTexEnv(CR_RECORDER *pRec, CRContext *ctx); +VBOXDUMPDECL(void) crRecDumpTexGen(CR_RECORDER *pRec, CRContext *ctx); + +VBOXDUMPDECL(int) crRecAlphaImgCreate(const CR_BLITTER_IMG *pImg, CR_BLITTER_IMG *pAlphaImg); +VBOXDUMPDECL(void) crRecAlphaImgDestroy(CR_BLITTER_IMG *pImg); + + +typedef DECLCALLBACKPTR(GLuint, PFNCRDUMPGETHWID)(void *pvObj); +void* crDmpHashtableSearchByHwid(CRHashTable *pHash, GLuint hwid, PFNCRDUMPGETHWID pfnGetHwid, unsigned long *pKey); + +RT_C_DECLS_END + +#endif /* VBOX_WITH_CRDUMPER */ +/* */ + +#endif /* #ifndef ___cr_dump_h__ */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_endian.h b/src/VBox/GuestHost/OpenGL/include/cr_endian.h new file mode 100644 index 00000000..29366e84 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_endian.h @@ -0,0 +1,90 @@ +#ifndef CR_ENDIAN_H +#define CR_ENDIAN_H + +#define CR_LITTLE_ENDIAN 0 +#define CR_BIG_ENDIAN 1 + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern DECLEXPORT(char) crDetermineEndianness( void ); + +#ifdef WINDOWS +typedef __int64 CR64BitType; +#else +#ifndef __STDC__ +typedef long long CR64BitType; +#else +typedef struct _CR64BitType +{ + unsigned int lo; + unsigned int hi; + +} CR64BitType; +#endif +#endif + +#define SWAP8(x) x +#define SWAP16(x) (short) ((((x) & 0x00FF) << 8) | (((x) & 0xFF00) >> 8)) +#define SWAP32(x) ((((x) & 0x000000FF) << 24) | \ + (((x) & 0x0000FF00) << 8) | \ + (((x) & 0x00FF0000) >> 8) | \ + (((x) & 0xFF000000) >> 24)) +#ifdef WINDOWS +#define SWAP64(x) \ + ((((x) & 0xFF00000000000000L) >> 56) | \ + (((x) & 0x00FF000000000000L) >> 40) | \ + (((x) & 0x0000FF0000000000L) >> 24) | \ + (((x) & 0x000000FF00000000L) >> 8) | \ + (((x) & 0x00000000FF000000L) << 8) | \ + (((x) & 0x0000000000FF0000L) << 24) | \ + (((x) & 0x000000000000FF00L) << 40) | \ + (((x) & 0x00000000000000FFL) << 56)) +#else +#ifndef __STDC__ +#define SWAP64(x) \ + x = ((((x) & 0xFF00000000000000LL) >> 56) | \ + (((x) & 0x00FF000000000000LL) >> 40) | \ + (((x) & 0x0000FF0000000000LL) >> 24) | \ + (((x) & 0x000000FF00000000LL) >> 8) | \ + (((x) & 0x00000000FF000000LL) << 8) | \ + (((x) & 0x0000000000FF0000LL) << 24) | \ + (((x) & 0x000000000000FF00LL) << 40) | \ + (((x) & 0x00000000000000FFLL) << 56)) +#else +#define SWAP64(x) \ + { \ + GLubyte *bytes = (GLubyte *) &(x); \ + GLubyte tmp = bytes[0]; \ + bytes[0] = bytes[7]; \ + bytes[7] = tmp; \ + tmp = bytes[1]; \ + bytes[1] = bytes[6]; \ + bytes[6] = tmp; \ + tmp = bytes[2]; \ + bytes[2] = bytes[5]; \ + bytes[5] = tmp; \ + tmp = bytes[4]; \ + bytes[4] = bytes[3]; \ + bytes[3] = tmp; \ + } +#endif +#endif + +DECLEXPORT(double) SWAPDOUBLE( double d ); + +#define SWAPFLOAT(x) ( ((*((int *) &(x)) & 0x000000FF) << 24) | \ + ((*((int *) &(x)) & 0x0000FF00) << 8) | \ + ((*((int *) &(x)) & 0x00FF0000) >> 8) | \ + ((*((int *) &(x)) & 0xFF000000) >> 24)) + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + + +#endif /* CR_ENDIAN_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_environment.h b/src/VBox/GuestHost/OpenGL/include/cr_environment.h new file mode 100644 index 00000000..7a8a6dcb --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_environment.h @@ -0,0 +1,23 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_ENVIRONMENT_H +#define CR_ENVIRONMENT_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern DECLEXPORT(void) crSetenv( const char *var, const char *value ); +extern DECLEXPORT(const char *) crGetenv( const char *var ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_ENVIRONMENT_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_error.h b/src/VBox/GuestHost/OpenGL/include/cr_error.h new file mode 100644 index 00000000..81572dc0 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_error.h @@ -0,0 +1,67 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_ERROR_H +#define CR_ERROR_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef WARN +# ifndef IN_RING0 +# define LOG(_m) do { crDebug _m ; } while (0) +# define LOGREL(_m) do { crDebug _m ; } while (0) +# define WARN(_m) do { crWarning _m ; AssertMsgFailed(_m); } while (0) +# else +# define LOG(_m) do { } while (0) +# define LOGREL(_m) do { } while (0) +# define WARN(_m) do { AssertMsgFailed(_m); } while (0) +# endif +#endif + +DECLEXPORT(void) crEnableWarnings(int onOff); + +DECLEXPORT(void) crDebug(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); +DECLEXPORT(void) crDbgCmdPrint(const char *description1, const char *description2, const char *cmd, ...); +DECLEXPORT(void) crDbgCmdSymLoadPrint(const char *modName, const void*pvAddress); +#if defined(DEBUG_misha) && defined(RT_OS_WINDOWS) +typedef void FNCRDEBUG(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); +typedef FNCRDEBUG *PFNCRDEBUG; +DECLINLINE(PFNCRDEBUG) crGetDebug() {return crDebug;} +# define crWarning (RT_BREAKPOINT(), crDebug) +#else +DECLEXPORT(void) crWarning(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); +#endif +DECLEXPORT(void) crInfo(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); + +DECLEXPORT(void) crError(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); + +/* Throw more info while opengl is not stable */ +#if defined(DEBUG) || 1 +# ifdef DEBUG_misha +# include <iprt/assert.h> +# define CRASSERT Assert +/*extern int g_VBoxFbgFBreakDdi;*/ +# define CR_DDI_PROLOGUE() do { /*if (g_VBoxFbgFBreakDdi) {Assert(0);}*/ } while (0) +# else +# define CRASSERT( PRED ) ((PRED)?(void)0:crWarning( "Assertion failed: %s=%d, file %s, line %d", #PRED, (int)(intptr_t)(PRED), __FILE__, __LINE__)) +# define CR_DDI_PROLOGUE() do {} while (0) +# endif +# define THREADASSERT( PRED ) ((PRED)?(void)0:crError( "Are you trying to run a threaded app ?\nBuild with 'make threadsafe'\nAssertion failed: %s, file %s, line %d", #PRED, __FILE__, __LINE__)) +#else +# define CRASSERT( PRED ) ((void)0) +# define THREADASSERT( PRED ) ((void)0) +# define CR_DDI_PROLOGUE() do {} while (0) +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* CR_ERROR_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_extstring.h b/src/VBox/GuestHost/OpenGL/include/cr_extstring.h new file mode 100644 index 00000000..b2fe4fe9 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_extstring.h @@ -0,0 +1,323 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_EXTSTRING_H +#define CR_EXTSTRING_H + +#include "cr_version.h" + +/* + * This string is the list of OpenGL extensions which Chromium can understand + * (in the packer, unpacker, state-tracker, etc). + * In practice, this string will get intersected with what's reported by the + * rendering SPUs to reflect what we can really offer to client apps. + * + * Yes, we want static declarations here to avoid linking problems. + */ +static const char *crExtensions = +#ifdef CR_EXT_texture_compression_s3tc + "GL_EXT_texture_compression_s3tc " +#endif +#ifdef CR_EXT_draw_range_elements + "GL_EXT_draw_range_elements " +#endif +#ifdef CR_EXT_framebuffer_object + "GL_EXT_framebuffer_object " +#endif +#ifdef CR_EXT_compiled_vertex_array + "GL_EXT_compiled_vertex_array " +#endif +#ifdef CR_ARB_depth_texture + "GL_ARB_depth_texture " +#endif +#ifdef CR_ARB_fragment_program + "GL_ARB_fragment_program " +#endif +#ifdef CR_ARB_imaging + "GL_ARB_imaging " +#endif +#ifdef CR_ARB_multisample + "GL_ARB_multisample " +#endif +#ifdef CR_ARB_multitexture + "GL_ARB_multitexture " +#endif +#ifdef CR_ARB_occlusion_query + "GL_ARB_occlusion_query " +#endif +#ifdef CR_ARB_point_parameters + "GL_ARB_point_parameters " +#endif +#ifdef CR_ARB_point_sprite + "GL_ARB_point_sprite " +#endif +#ifdef CR_ARB_shadow + "GL_ARB_shadow " +#endif +#ifdef CR_ARB_shadow_ambient + "GL_ARB_shadow_ambient " +#endif +#ifdef CR_ARB_texture_border_clamp + "GL_ARB_texture_border_clamp " +#endif +#ifdef CR_ARB_texture_compression + "GL_ARB_texture_compression " +#endif +#ifdef CR_ARB_texture_cube_map + "GL_ARB_texture_cube_map " +#endif +#ifdef CR_ARB_texture_env_add + "GL_ARB_texture_env_add " +#endif +#ifdef CR_ARB_texture_env_combine + "GL_ARB_texture_env_combine GL_EXT_texture_env_combine " +#endif +#ifdef CR_ARB_texture_env_crossbar + "GL_ARB_texture_env_crossbar " +#endif +#ifdef CR_ARB_texture_env_dot3 + "GL_ARB_texture_env_dot3 GL_EXT_texture_env_dot3 " +#endif +#ifdef CR_ARB_texture_mirrored_repeat + "GL_ARB_texture_mirrored_repeat GL_IBM_texture_mirrored_repeat " +#endif +#ifdef CR_ATI_texture_mirror_once + "GL_ATI_texture_mirror_once " +#endif +#ifdef CR_ARB_texture_non_power_of_two + "GL_ARB_texture_non_power_of_two " +#endif +#ifdef CR_ARB_transpose_matrix + "GL_ARB_transpose_matrix " +#endif +#ifdef CR_ARB_vertex_buffer_object + "GL_ARB_vertex_buffer_object " +#endif +#ifdef CR_ARB_pixel_buffer_object + "GL_ARB_pixel_buffer_object " +#endif +#ifdef CR_ARB_vertex_program + "GL_ARB_vertex_program " +#endif +#ifdef CR_ARB_window_pos + "GL_ARB_window_pos " +#endif +#ifdef CR_EXT_blend_color + "GL_EXT_blend_color " +#endif +#ifdef CR_EXT_blend_minmax + "GL_EXT_blend_minmax " +#endif +#ifdef CR_EXT_blend_func_separate + "GL_EXT_blend_func_separate " +#endif +#ifdef CR_EXT_clip_volume_hint + "GL_EXT_clip_volume_hint " +#endif +#ifdef CR_EXT_blend_logic_op + "GL_EXT_blend_logic_op " +#endif +#ifdef CR_EXT_blend_subtract + "GL_EXT_blend_subtract " +#endif +#ifdef CR_EXT_texture_env_add + "GL_EXT_texture_env_add " +#endif +#ifdef CR_EXT_fog_coord + "GL_EXT_fog_coord " +#endif +#ifdef CR_EXT_multi_draw_arrays + "GL_EXT_multi_draw_arrays " +#endif +#ifdef CR_EXT_secondary_color + "GL_EXT_secondary_color " +#endif +#ifdef CR_EXT_separate_specular_color + "GL_EXT_separate_specular_color " +#endif +#ifdef CR_EXT_shadow_funcs + "GL_EXT_shadow_funcs " +#endif +#ifdef CR_EXT_stencil_wrap + "GL_EXT_stencil_wrap " +#endif +#ifdef CR_EXT_texture_cube_map + "GL_EXT_texture_cube_map " +#endif +#ifdef CR_EXT_texture_edge_clamp + "GL_EXT_texture_edge_clamp " +#endif +#ifdef CR_EXT_texture_filter_anisotropic + "GL_EXT_texture_filter_anisotropic " +#endif +#ifdef CR_EXT_texture_lod_bias + "GL_EXT_texture_lod_bias " +#endif +#ifdef CR_EXT_texture_object + "GL_EXT_texture_object " +#endif +#ifdef CR_EXT_texture3D + "GL_EXT_texture3D " +#endif +#ifdef CR_IBM_rasterpos_clip + "GL_IBM_rasterpos_clip " +#endif +#ifdef CR_NV_fog_distance + "GL_NV_fog_distance " +#endif +#ifdef CR_NV_fragment_program + "GL_NV_fragment_program " +#endif +#ifdef CR_NV_fragment_program_option + "GL_NV_fragment_program_option " +#endif +#ifdef CR_NV_fragment_program2 + "GL_NV_fragment_program2 " +#endif +#ifdef CR_NV_register_combiners + "GL_NV_register_combiners " +#endif +#ifdef CR_NV_register_combiners2 + "GL_NV_register_combiners2 " +#endif +#ifdef CR_NV_texgen_reflection + "GL_NV_texgen_reflection " +#endif +#ifdef CR_NV_texture_rectangle + "GL_NV_texture_rectangle GL_EXT_texture_rectangle GL_ARB_texture_rectangle " +#endif +#ifdef CR_NV_vertex_program + "GL_NV_vertex_program " +#endif +#ifdef CR_NV_vertex_program1_1 + "GL_NV_vertex_program1_1 " +#endif +#ifdef CR_NV_vertex_program2 + "GL_NV_vertex_program2 " +#endif +#ifdef CR_NV_vertex_program2_option + "GL_NV_vertex_program2_option " +#endif +#ifdef CR_NV_vertex_program3 + "GL_NV_vertex_program3 " +#endif +#ifdef CR_SGIS_generate_mipmap + "GL_SGIS_generate_mipmap " +#endif +#ifdef CR_SGIS_texture_border_clamp + "GL_SGIS_texture_border_clamp " +#endif +#ifdef CR_SGIS_texture_edge_clamp + "GL_SGIS_texture_edge_clamp " +#endif +#ifdef CR_ARB_shading_language_100 + "GL_ARB_shading_language_100 " +#endif +#ifdef CR_ARB_shader_objects + "GL_ARB_shader_objects " +#endif +#ifdef CR_ARB_vertex_shader + "GL_ARB_vertex_shader " +#endif +#ifdef CR_ARB_fragment_shader + "GL_ARB_fragment_shader " +#endif +#ifdef CR_EXT_texture_sRGB + "GL_EXT_texture_sRGB " +#endif +#ifdef CR_EXT_framebuffer_blit + "GL_EXT_framebuffer_blit " +#endif +#ifdef CR_EXT_blend_equation_separate + "GL_EXT_blend_equation_separate " +#endif +#ifdef CR_EXT_stencil_two_side + "GL_EXT_stencil_two_side " +#endif +#ifdef CR_GREMEDY_string_marker + "GL_GREMEDY_string_marker " +#endif +#ifdef CR_ARB_texture_float + "GL_ARB_texture_float " +#endif +#ifdef CR_ARB_draw_buffers + "GL_ARB_draw_buffers " +#endif +#ifdef CR_ARB_shader_texture_lod + "GL_ARB_shader_texture_lod " +#endif + + ""; + +/* + * Extensions which are only supported if the render/readback SPU is + * on the app node (no packing/unpacking/state-tracking support). + */ +static const char *crAppOnlyExtensions = + "GL_NV_fence " \ + "GL_NV_texture_env_combine4 " \ + "GL_NV_texture_shader " \ + "GL_NV_vertex_array_range " +; + + +/* + * Special extensions which are unique to Chromium. + * We typically append this to the result of glGetString(GL_EXTENSIONS). + */ +static const char *crChromiumExtensions = +#ifdef GL_CR_state_parameter + "GL_CR_state_parameter " +#endif +#ifdef GL_CR_cursor_position + "GL_CR_cursor_position " +#endif +#ifdef GL_CR_bounding_box + "GL_CR_bounding_box " +#endif +#ifdef GL_CR_print_string + "GL_CR_print_string " +#endif +#ifdef GL_CR_tilesort_info + "GL_CR_tilesort_info " +#endif +#ifdef GL_CR_client_clear_control + "GL_CR_client_clear_control " +#endif +#ifdef GL_CR_synchronization + "GL_CR_synchronization " +#endif +#ifdef GL_CR_head_spu_name + "GL_CR_head_spu_name " +#endif +#ifdef GL_CR_performance_info + "GL_CR_performance_info " +#endif +#ifdef GL_CR_window_size + "GL_CR_window_size " +#endif +#ifdef GL_CR_tile_info + "GL_CR_tile_info " +#endif +#ifdef GL_CR_saveframe + "GL_CR_saveframe " +#endif +#ifdef GL_CR_readback_barrier_size + "GL_CR_readback_barrier_size " +#endif +#ifdef GL_CR_server_id_sharing + "GL_CR_server_id_sharing " +#endif +#ifdef GL_CR_server_matrix + "GL_CR_server_matrix " +#endif +#ifdef USE_DMX + "GL_CR_dmx " +#endif + ""; + +#endif /* CR_EXTSTRING_H */ + diff --git a/src/VBox/GuestHost/OpenGL/include/cr_glext.h b/src/VBox/GuestHost/OpenGL/include/cr_glext.h new file mode 100644 index 00000000..bfa505f4 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_glext.h @@ -0,0 +1,34 @@ +/* $Id: cr_glext.h $ */ + +/** @file + * GL chromium platform specifics + */ +/* + * Copyright (C) 2014-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ +#ifndef ___cr_glext_h__ +#define ___cr_glext_h__ + +#include <iprt/assert.h> + +#ifndef __glext_h_ +/* glext NOT included yet */ +# include "GL/glext.h" +#else +/* glext IS included yet */ +# ifndef RT_OS_DARWIN +typedef unsigned int VBoxGLhandleARB; /* shader object handle */ +AssertCompile(sizeof (VBoxGLhandleARB) == sizeof (GLhandleARB)); +# else +# error "patched glext is required for OSX!" +# endif +#endif +#endif /*___cr_glext_h__*/ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_glstate.h b/src/VBox/GuestHost/OpenGL/include/cr_glstate.h new file mode 100644 index 00000000..442e4d81 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_glstate.h @@ -0,0 +1,335 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_GLSTATE_H +#define CR_GLSTATE_H + +/* Forward declaration since some of the state/cr_*.h files need the CRContext type */ +struct CRContext; +typedef struct CRContext CRContext; + +#include "cr_version.h" + +#include "state/cr_buffer.h" +#include "state/cr_bufferobject.h" +#include "state/cr_client.h" +#include "state/cr_current.h" +#include "state/cr_evaluators.h" +#include "state/cr_feedback.h" +#include "state/cr_fog.h" +#include "state/cr_hint.h" +#include "state/cr_lighting.h" +#include "state/cr_limits.h" +#include "state/cr_line.h" +#include "state/cr_lists.h" +#include "state/cr_multisample.h" +#include "state/cr_occlude.h" +#include "state/cr_pixel.h" +#include "state/cr_point.h" +#include "state/cr_polygon.h" +#include "state/cr_program.h" +#include "state/cr_regcombiner.h" +#include "state/cr_stencil.h" +#include "state/cr_texture.h" +#include "state/cr_transform.h" +#include "state/cr_viewport.h" +#include "state/cr_attrib.h" +#include "state/cr_framebuffer.h" +#include "state/cr_glsl.h" + +#include "state/cr_statefuncs.h" +#include "state/cr_stateerror.h" + +#include "spu_dispatch_table.h" + +#ifdef CHROMIUM_THREADSAFE +# include <cr_threads.h> +#endif + +#include <iprt/cdefs.h> + +# include <VBox/vmm/ssm.h> +# include <iprt/asm.h> + +# define CR_STATE_SHAREDOBJ_USAGE_INIT(_pObj) (crMemset((_pObj)->ctxUsage, 0, sizeof ((_pObj)->ctxUsage))) +# define CR_STATE_SHAREDOBJ_USAGE_SET(_pObj, _pCtx) (ASMBitSet((_pObj)->ctxUsage, (_pCtx)->id)) +# define CR_STATE_SHAREDOBJ_USAGE_IS_SET(_pObj, _pCtx) (ASMBitTest((_pObj)->ctxUsage, (_pCtx)->id)) +# define CR_STATE_SHAREDOBJ_USAGE_CLEAR_IDX(_pObj, _i) (ASMBitClear((_pObj)->ctxUsage, (_i))) +# define CR_STATE_SHAREDOBJ_USAGE_CLEAR(_pObj, _pCtx) (CR_STATE_SHAREDOBJ_USAGE_CLEAR_IDX((_pObj), (_pCtx)->id)) +# define CR_STATE_SHAREDOBJ_USAGE_IS_USED(_pObj) (ASMBitFirstSet((_pObj)->ctxUsage, sizeof ((_pObj)->ctxUsage)<<3) >= 0) +# define CR_STATE_SHAREDOBJ_USAGE_GET_FIRST_USED_IDX(_pObj) (ASMBitFirstSet((_pObj)->ctxUsage, sizeof ((_pObj)->ctxUsage)<<3)) +# define CR_STATE_SHAREDOBJ_USAGE_GET_NEXT_USED_IDX(_pObj, _i) (ASMBitNextSet((_pObj)->ctxUsage, sizeof ((_pObj)->ctxUsage)<<3, (_i))) + +# define CR_STATE_SHAREDOBJ_USAGE_FOREACH_USED_IDX(_pObj, _i) for ((_i) = CR_STATE_SHAREDOBJ_USAGE_GET_FIRST_USED_IDX(_pObj); ((int)(_i)) >= 0; (_i) = CR_STATE_SHAREDOBJ_USAGE_GET_NEXT_USED_IDX((_pObj), ((int)(_i)))) + +#define CR_MAX_EXTENTS 256 + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Bit vectors describing GL state + */ +typedef struct { + CRAttribBits attrib; + CRBufferBits buffer; +#ifdef CR_ARB_vertex_buffer_object + CRBufferObjectBits bufferobject; +#endif + CRClientBits client; + CRCurrentBits current; + CREvaluatorBits eval; + CRFeedbackBits feedback; + CRFogBits fog; + CRHintBits hint; + CRLightingBits lighting; + CRLineBits line; + CRListsBits lists; + CRMultisampleBits multisample; +#if CR_ARB_occlusion_query + CROcclusionBits occlusion; +#endif + CRPixelBits pixel; + CRPointBits point; + CRPolygonBits polygon; + CRProgramBits program; + CRRegCombinerBits regcombiner; + CRSelectionBits selection; + CRStencilBits stencil; + CRTextureBits texture; + CRTransformBits transform; + CRViewportBits viewport; +} CRStateBits; + +typedef void (*CRStateFlushFunc)( void *arg ); + + +typedef struct _CRSharedState { + CRHashTable *textureTable; /* all texture objects */ + CRHashTable *dlistTable; /* all display lists */ + CRHashTable *buffersTable; /* vbo/pbo */ + CRHashTable *fbTable; /* frame buffers */ + CRHashTable *rbTable; /* render buffers */ + + volatile int32_t refCount; + GLint id; /*unique shared state id, it's not always matching some existing context id!*/ + GLint saveCount; + + /* Indicates that we have to resend data to GPU on first glMakeCurrent call with owning context */ + GLboolean bTexResyncNeeded; + GLboolean bVBOResyncNeeded; + GLboolean bFBOResyncNeeded; +} CRSharedState; + +/** + * Chromium version of the state variables in OpenGL + */ +struct CRContext { + int id; + +#ifdef CHROMIUM_THREADSAFE + /* we keep reference counting of context's makeCurrent for different threads + * this is primarily needed to avoid having an invalid memory reference in the TLS + * when the context is assigned to more than one threads and then destroyed from + * one of those, i.e. + * 1. Thread1 -> MakeCurrent(ctx1); + * 2. Thread2 -> MakeCurrent(ctx1); + * 3. Thread1 -> Destroy(ctx1); + * => Thread2 still refers to destroyed ctx1 + * */ + VBOXTLSREFDATA +#endif + + CRbitvalue bitid[CR_MAX_BITARRAY]; + CRbitvalue neg_bitid[CR_MAX_BITARRAY]; + + CRSharedState *shared; + + GLenum renderMode; + + GLenum error; + + CRStateFlushFunc flush_func; + void *flush_arg; + + CRAttribState attrib; + CRBufferState buffer; +#ifdef CR_ARB_vertex_buffer_object + CRBufferObjectState bufferobject; +#endif + CRClientState client; + CRCurrentState current; + CREvaluatorState eval; + CRExtensionState extensions; + CRFeedbackState feedback; + CRFogState fog; + CRHintState hint; + CRLightingState lighting; + CRLimitsState limits; + CRLineState line; + CRListsState lists; + CRMultisampleState multisample; +#if CR_ARB_occlusion_query + CROcclusionState occlusion; +#endif + CRPixelState pixel; + CRPointState point; + CRPolygonState polygon; + CRProgramState program; + CRRegCombinerState regcombiner; + CRSelectionState selection; + CRStencilState stencil; + CRTextureState texture; + CRTransformState transform; + CRViewportState viewport; + +#ifdef CR_EXT_framebuffer_object + CRFramebufferObjectState framebufferobject; +#endif + +#ifdef CR_OPENGL_VERSION_2_0 + CRGLSLState glsl; +#endif + + /** For buffering vertices for selection/feedback */ + /*@{*/ + GLuint vCount; + CRVertex vBuffer[4]; + GLboolean lineReset; + GLboolean lineLoop; + /*@}*/ +}; + + +DECLEXPORT(void) crStateInit(void); +DECLEXPORT(void) crStateDestroy(void); +DECLEXPORT(void) crStateVBoxDetachThread(void); +DECLEXPORT(void) crStateVBoxAttachThread(void); +DECLEXPORT(CRContext *) crStateCreateContext(const CRLimitsState *limits, GLint visBits, CRContext *share); +DECLEXPORT(CRContext *) crStateCreateContextEx(const CRLimitsState *limits, GLint visBits, CRContext *share, GLint presetID); +DECLEXPORT(void) crStateMakeCurrent(CRContext *ctx); +DECLEXPORT(void) crStateSetCurrent(CRContext *ctx); +DECLEXPORT(void) crStateCleanupCurrent(void); +DECLEXPORT(CRContext *) crStateGetCurrent(void); +DECLEXPORT(void) crStateDestroyContext(CRContext *ctx); +DECLEXPORT(GLboolean) crStateEnableDiffOnMakeCurrent(GLboolean fEnable); + +void crStateSwitchPrepare(CRContext *toCtx, CRContext *fromCtx, GLuint idDrawFBO, GLuint idReadFBO); +void crStateSwitchPostprocess(CRContext *toCtx, CRContext *fromCtx, GLuint idDrawFBO, GLuint idReadFBO); + +void crStateSyncHWErrorState(CRContext *ctx); +GLenum crStateCleanHWErrorState(void); + +#define CR_STATE_CLEAN_HW_ERR_WARN(_s) do {\ + GLenum _err = crStateCleanHWErrorState(); \ + if (_err != GL_NO_ERROR) { \ + static int _cErrPrints = 0; \ + if (_cErrPrints < 5) { \ + ++_cErrPrints; \ + WARN(("%s %#x, ignoring.. (%d out of 5)", _s, _err, _cErrPrints)); \ + } \ + } \ + } while (0) + +DECLEXPORT(void) crStateFlushFunc( CRStateFlushFunc ff ); +DECLEXPORT(void) crStateFlushArg( void *arg ); +DECLEXPORT(void) crStateDiffAPI( SPUDispatchTable *api ); +DECLEXPORT(void) crStateUpdateColorBits( void ); + +DECLEXPORT(void) crStateSetCurrentPointers( CRContext *ctx, CRCurrentStatePointers *current ); +DECLEXPORT(void) crStateResetCurrentPointers( CRCurrentStatePointers *current ); + +DECLEXPORT(void) crStateSetExtensionString( CRContext *ctx, const GLubyte *extensions ); + +DECLEXPORT(void) crStateDiffContext( CRContext *from, CRContext *to ); +DECLEXPORT(void) crStateSwitchContext( CRContext *from, CRContext *to ); + +DECLEXPORT(unsigned int) crStateHlpComponentsCount( GLenum pname ); + +typedef struct CRFBDataElement +{ + /* FBO, can be NULL */ + GLint idFBO; + /* to be used for glDraw/ReadBuffer, i.e. GL_FRONT, GL_BACK, GL_COLOR_ATTACHMENTX */ + GLenum enmBuffer; + GLint posX; + GLint posY; + GLint width; + GLint height; + GLenum enmFormat; + GLenum enmType; + GLuint cbData; + GLvoid *pvData; +} CRFBDataElement; + +typedef struct CRFBData +{ + /* override default draw and read buffers to be used for offscreen rendering */ + GLint idOverrrideFBO; + uint32_t u32Version; + uint32_t cElements; + CRFBDataElement aElements[1]; +} CRFBData; + +DECLEXPORT(void) crStateApplyFBImage(CRContext *to, CRFBData *data); +DECLEXPORT(int) crStateAcquireFBImage(CRContext *to, CRFBData *data); +DECLEXPORT(void) crStateFreeFBImageLegacy(CRContext *to); + +DECLEXPORT(void) crStateGetTextureObjectAndImage(CRContext *g, GLenum texTarget, GLint level, + CRTextureObj **obj, CRTextureLevel **img); + + +DECLEXPORT(void) crStateReleaseTexture(CRContext *pCtx, CRTextureObj *pObj); + +#ifndef IN_GUEST +DECLEXPORT(int32_t) crStateSaveContext(CRContext *pContext, PSSMHANDLE pSSM); +typedef DECLCALLBACK(CRContext*) FNCRSTATE_CONTEXT_GET(void*); +typedef FNCRSTATE_CONTEXT_GET *PFNCRSTATE_CONTEXT_GET; +DECLEXPORT(int32_t) crStateLoadContext(CRContext *pContext, CRHashTable * pCtxTable, PFNCRSTATE_CONTEXT_GET pfnCtxGet, PSSMHANDLE pSSM, uint32_t u32Version); +DECLEXPORT(void) crStateFreeShared(CRContext *pContext, CRSharedState *s); + +DECLEXPORT(int32_t) crStateLoadGlobals(PSSMHANDLE pSSM, uint32_t u32Version); +DECLEXPORT(int32_t) crStateSaveGlobals(PSSMHANDLE pSSM); + +DECLEXPORT(CRSharedState *) crStateGlobalSharedAcquire(void); +DECLEXPORT(void) crStateGlobalSharedRelease(void); +#endif + +DECLEXPORT(void) crStateSetTextureUsed(GLuint texture, GLboolean used); +DECLEXPORT(void) crStatePinTexture(GLuint texture, GLboolean pin); +DECLEXPORT(void) crStateDeleteTextureCallback(void *texObj); + + /* XXX move these! */ + +DECLEXPORT(void) STATE_APIENTRY +crStateChromiumParameteriCR( GLenum target, GLint value ); + +DECLEXPORT(void) STATE_APIENTRY +crStateChromiumParameterfCR( GLenum target, GLfloat value ); + +DECLEXPORT(void) STATE_APIENTRY +crStateChromiumParametervCR( GLenum target, GLenum type, GLsizei count, const GLvoid *values ); + +DECLEXPORT(void) STATE_APIENTRY +crStateGetChromiumParametervCR( GLenum target, GLuint index, GLenum type, + GLsizei count, GLvoid *values ); + +DECLEXPORT(void) STATE_APIENTRY +crStateReadPixels( GLint x, GLint y, GLsizei width, GLsizei height, + GLenum format, GLenum type, GLvoid *pixels ); + +DECLEXPORT(void) STATE_APIENTRY crStateShareContext(GLboolean value); +DECLEXPORT(void) STATE_APIENTRY crStateShareLists(CRContext *pContext1, CRContext *pContext2); +DECLEXPORT(void) STATE_APIENTRY crStateSetSharedContext(CRContext *pCtx); +DECLEXPORT(GLboolean) STATE_APIENTRY crStateContextIsShared(CRContext *pCtx); + +DECLEXPORT(void) STATE_APIENTRY crStateQueryHWState(GLuint fbFbo, GLuint bbFbo); +#ifdef __cplusplus +} +#endif + +#endif /* CR_GLSTATE_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_hash.h b/src/VBox/GuestHost/OpenGL/include/cr_hash.h new file mode 100644 index 00000000..51302617 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_hash.h @@ -0,0 +1,70 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_HASH_H +#define CR_HASH_H + +#include "chromium.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct CRHashIdPool CRHashIdPool; +typedef struct CRHashTable CRHashTable; + +/* Callback function used for freeing/deleting table entries */ +typedef void (*CRHashtableCallback)(void *data); +typedef void (*CRHashtableCallbackEx)(void *data1, void *data2); +/* Callback function used for walking through table entries */ +typedef void (*CRHashtableWalkCallback)(unsigned long key, void *data1, void *data2); +/* Callback function used for walking through allocated keys */ +typedef void (*CRHashIdWalkKeys)(unsigned long firstKey, unsigned long count, void *data); + +DECLEXPORT(CRHashIdPool *) crAllocHashIdPool( void ); +DECLEXPORT(CRHashIdPool *) crAllocHashIdPoolEx( GLuint min, GLuint max ); +DECLEXPORT(void) crFreeHashIdPool( CRHashIdPool *pool ); +DECLEXPORT(GLboolean) crHashIdPoolIsIdFree( const CRHashIdPool *pool, GLuint id ); +DECLEXPORT(GLuint) crHashIdPoolAllocBlock( CRHashIdPool *pool, GLuint count ); +DECLEXPORT(void) crHashIdPoolFreeBlock( CRHashIdPool *pool, GLuint first, GLuint count ); +/* @return GL_TRUE if the id is allocated, and GL_FALSE if the id was already allocated */ +DECLEXPORT(GLboolean) crHashIdPoolAllocId( CRHashIdPool *pool, GLuint id ); +DECLEXPORT(void) crHashIdWalkKeys( CRHashIdPool *pool, CRHashIdWalkKeys walkFunc , void *data); + +DECLEXPORT(CRHashTable *) crAllocHashtable( void ); +DECLEXPORT(CRHashTable *) crAllocHashtableEx( GLuint min, GLuint max ); +DECLEXPORT(void) crFreeHashtable( CRHashTable *hash, CRHashtableCallback deleteCallback ); +DECLEXPORT(void) crFreeHashtableEx( CRHashTable *hash, CRHashtableCallbackEx deleteCallback, void *pData ); +DECLEXPORT(void) crHashtableAdd( CRHashTable *h, unsigned long key, void *data ); +/* to ensure hash table pool id consistency, there is no crHashTableFreeKeys/UnregisterKey, + * one should call crHashtableDelete to free unneeded keys, + * which will also ensure there is no entry with the specified key left in the table */ +DECLEXPORT(GLuint) crHashtableAllocKeys( CRHashTable *h, GLsizei range ); +/* @return GL_TRUE if the id is allocated, and GL_FALSE if the id was already allocated */ +DECLEXPORT(GLboolean) crHashtableAllocRegisterKey( CRHashTable *h, GLuint key); +DECLEXPORT(void) crHashtableDelete( CRHashTable *h, unsigned long key, CRHashtableCallback deleteCallback ); +DECLEXPORT(void) crHashtableDeleteEx( CRHashTable *h, unsigned long key, CRHashtableCallbackEx deleteCallback, void *pData ); +DECLEXPORT(void) crHashtableDeleteBlock( CRHashTable *h, unsigned long key, GLsizei range, CRHashtableCallback deleteFunc ); +DECLEXPORT(void *) crHashtableSearch( const CRHashTable *h, unsigned long key ); +DECLEXPORT(void) crHashtableReplace( CRHashTable *h, unsigned long key, void *data, CRHashtableCallback deleteFunc); +DECLEXPORT(unsigned int) crHashtableNumElements( const CRHashTable *h) ; +DECLEXPORT(GLboolean) crHashtableIsKeyUsed( const CRHashTable *h, GLuint id ); +DECLEXPORT(void) crHashtableWalk( CRHashTable *hash, CRHashtableWalkCallback walkFunc , void *data); +/* walk the hashtable w/o holding the table lock */ +DECLEXPORT(void) crHashtableWalkUnlocked( CRHashTable *hash, CRHashtableWalkCallback walkFunc , void *data); +/*Returns GL_TRUE if given hashtable hold the data, pKey is updated with key value for data in this case*/ +DECLEXPORT(GLboolean) crHashtableGetDataKey(CRHashTable *pHash, void *pData, unsigned long *pKey); +DECLEXPORT(void) crHashtableLock(CRHashTable *h); +DECLEXPORT(void) crHashtableUnlock(CRHashTable *h); +DECLEXPORT(void) crHashtableWalkKeys(CRHashTable *hash, CRHashIdWalkKeys walkFunc , void *data); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* CR_HASH_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_htable.h b/src/VBox/GuestHost/OpenGL/include/cr_htable.h new file mode 100644 index 00000000..5c12829a --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_htable.h @@ -0,0 +1,120 @@ +/* $Id: cr_htable.h $ */ + +/** @file + * uint32_t handle to void simple table API + */ + +/* + * Copyright (C) 2013-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ +#ifndef ___cr_htable_h_ +#define ___cr_htable_h_ + +#include <iprt/types.h> +#include <iprt/cdefs.h> + +#include <cr_error.h> + +#ifndef IN_RING0 +# define VBOXHTABLEDECL(_type) DECLEXPORT(_type) +#else +# define VBOXHTABLEDECL(_type) RTDECL(_type) +#endif + + + +RT_C_DECLS_BEGIN + +typedef uint32_t CRHTABLE_HANDLE; +#define CRHTABLE_HANDLE_INVALID 0UL + +typedef struct CRHTABLE +{ + uint32_t cData; + uint32_t iNext2Search; + uint32_t cSize; + void **paData; +} CRHTABLE, *PCRHTABLE; + +typedef struct CRHTABLE_ITERATOR +{ + PCRHTABLE pTbl; + uint32_t iCur; + uint32_t cLeft; +} VCRHTABLE_ITERATOR, *PCRHTABLE_ITERATOR; + +/*private stuff, not to be used directly */ +DECLINLINE(CRHTABLE_HANDLE) crHTableIndex2Handle(uint32_t iIndex) +{ + return iIndex+1; +} + +DECLINLINE(uint32_t) crHTableHandle2Index(CRHTABLE_HANDLE hHandle) +{ + return hHandle-1; +} + +/* public API */ +DECLINLINE(void) CrHTableIterInit(PCRHTABLE pTbl, PCRHTABLE_ITERATOR pIter) +{ + pIter->pTbl = pTbl; + pIter->iCur = 0; + pIter->cLeft = pTbl->cData; +} + +DECLINLINE(void*) CrHTableIterNext(PCRHTABLE_ITERATOR pIter, CRHTABLE_HANDLE *phHandle) +{ + PCRHTABLE pTbl; + uint32_t i; + if (!pIter->cLeft) + { + if (phHandle) + *phHandle = 0; + return NULL; + } + + pTbl = pIter->pTbl; + + for (i = pIter->iCur; i < pTbl->cSize; ++i) + { + if (pTbl->paData[i]) + { + pIter->iCur = i+1; + --(pIter->cLeft); + if (phHandle) + *phHandle = crHTableIndex2Handle(i); + return pTbl->paData[i]; + } + } + + crWarning("interator concurent modification!"); + return NULL; +} + +VBOXHTABLEDECL(int) CrHTableCreate(PCRHTABLE pTbl, uint32_t cSize); +DECLINLINE(void) CrHTableMoveTo(PCRHTABLE pSrcTbl, PCRHTABLE pDstTbl) +{ + *pDstTbl = *pSrcTbl; + CrHTableCreate(pSrcTbl, 0); +} +VBOXHTABLEDECL(void) CrHTableEmpty(PCRHTABLE pTbl); +VBOXHTABLEDECL(void) CrHTableDestroy(PCRHTABLE pTbl); +VBOXHTABLEDECL(int) CrHTableRealloc(PCRHTABLE pTbl, uint32_t cNewSize); +VBOXHTABLEDECL(CRHTABLE_HANDLE) CrHTablePut(PCRHTABLE pTbl, void *pvData); +VBOXHTABLEDECL(int) CrHTablePutToSlot(PCRHTABLE pTbl, CRHTABLE_HANDLE hHandle, void* pvData); + +/* note: can be called for the element returned with CrHTableIterNext w/o corrupting the iterator */ +VBOXHTABLEDECL(void*) CrHTableRemove(PCRHTABLE pTbl, CRHTABLE_HANDLE hHandle); +VBOXHTABLEDECL(void*) CrHTableGet(PCRHTABLE pTbl, CRHTABLE_HANDLE hHandle); + +RT_C_DECLS_END + +#endif /* #ifndef ___cr_htable_h_*/ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_hull.h b/src/VBox/GuestHost/OpenGL/include/cr_hull.h new file mode 100644 index 00000000..9fa6ea10 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_hull.h @@ -0,0 +1,24 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_HULL_H +#define CR_HULL_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +DECLEXPORT(void) crHullInteriorBox(const double *pnts, int npnts, double *bbox); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_BBOX_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_list.h b/src/VBox/GuestHost/OpenGL/include/cr_list.h new file mode 100644 index 00000000..8290df38 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_list.h @@ -0,0 +1,48 @@ +#ifndef CR_LIST_H +#define CR_LIST_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct CRList CRList; +typedef struct CRListIterator CRListIterator; +typedef int ( *CRListCompareFunc ) ( const void *element1, const void *element2 ); +typedef void ( *CRListApplyFunc ) ( void *element, void *arg ); + +DECLEXPORT(CRList *) crAllocList( void ); +DECLEXPORT(void) crFreeList( CRList *l ); + +DECLEXPORT(unsigned) crListSize( const CRList *l ); +DECLEXPORT(int) crListIsEmpty( const CRList *l ); + +DECLEXPORT(void) crListInsert( CRList *l, CRListIterator *iter, void *elem ); +DECLEXPORT(void) crListErase( CRList *l, CRListIterator *iter ); +DECLEXPORT(void) crListClear( CRList *l ); + +DECLEXPORT(void) crListPushBack( CRList *l, void *elem ); +DECLEXPORT(void) crListPushFront( CRList *l, void *elem ); + +DECLEXPORT(void) crListPopBack( CRList *l ); +DECLEXPORT(void) crListPopFront( CRList *l ); + +DECLEXPORT(void *) crListFront( CRList *l ); +DECLEXPORT(void *) crListBack( CRList *l ); + +DECLEXPORT(CRListIterator *) crListBegin( CRList *l ); +DECLEXPORT(CRListIterator *) crListEnd( CRList *l ); + +DECLEXPORT(CRListIterator *) crListNext( CRListIterator *iter ); +DECLEXPORT(CRListIterator *) crListPrev( CRListIterator *iter ); +DECLEXPORT(void *) crListElement( CRListIterator *iter ); + +DECLEXPORT(CRListIterator *) crListFind( CRList *l, void *element, CRListCompareFunc compare ); +DECLEXPORT(void) crListApply( CRList *l, CRListApplyFunc apply, void *arg ); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* CR_LIST_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_logo.h b/src/VBox/GuestHost/OpenGL/include/cr_logo.h new file mode 100644 index 00000000..8987db7d --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_logo.h @@ -0,0 +1,2746 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_LOGO_H +#define CR_LOGO_H + +#define CR_LOGO_H_WIDTH 128 +#define CR_LOGO_H_HEIGHT 64 + +static unsigned char raw_bytes[] = { +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x03, 0x03, 0x03, 0x00, 0x11, 0x11, 0x11, 0x00, 0x14, 0x14, 0x14, 0x00, +0x13, 0x13, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x06, 0x00, 0x2f, 0x2f, 0x2f, 0x00, +0x1d, 0x1d, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x0e, 0x0e, 0x0e, 0x00, 0x03, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, +0x09, 0x09, 0x09, 0x00, 0x0b, 0x0b, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, +0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x00, 0x04, 0x04, 0x04, 0x00, +0x11, 0x11, 0x11, 0x00, 0x14, 0x14, 0x14, 0x00, 0x14, 0x14, 0x14, 0x00, +0x14, 0x14, 0x14, 0x00, 0x06, 0x06, 0x06, 0x00, 0x09, 0x09, 0x09, 0x00, +0x13, 0x13, 0x13, 0x00, 0x14, 0x14, 0x14, 0x00, 0x0e, 0x0e, 0x0e, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x00, +0x13, 0x13, 0x13, 0x00, 0x14, 0x14, 0x14, 0x00, 0x14, 0x14, 0x14, 0x00, +0x0e, 0x0e, 0x0e, 0x00, 0x03, 0x03, 0x03, 0x00, 0x11, 0x11, 0x11, 0x00, +0x14, 0x14, 0x14, 0x00, 0x0c, 0x0c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x03, 0x03, 0x03, 0x00, 0x11, 0x11, 0x11, 0x00, 0x14, 0x14, 0x14, 0x00, +0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x0b, 0x0b, 0x0b, 0x00, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x15, 0x15, 0x00, +0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x59, 0x59, 0x38, +0xed, 0xed, 0xed, 0x80, 0xe0, 0xe0, 0xe0, 0x83, 0xe6, 0xe6, 0xe6, 0x82, +0xa4, 0xa4, 0xa4, 0x58, 0x00, 0x00, 0x00, 0x00, 0x32, 0x32, 0x32, 0x03, +0xcd, 0xcd, 0xcd, 0x6e, 0xd3, 0xd3, 0xd3, 0xb1, 0xe8, 0xe8, 0xe8, 0x9a, +0x74, 0x74, 0x74, 0x38, 0x0b, 0x0b, 0x0b, 0x05, 0xdc, 0xdc, 0xdc, 0x78, +0x29, 0x29, 0x29, 0x2a, 0x08, 0x08, 0x08, 0x00, 0xdc, 0xdc, 0xdc, 0x76, +0x99, 0x99, 0x99, 0x62, 0x00, 0x00, 0x00, 0x00, 0x85, 0x85, 0x85, 0x3f, +0xa8, 0xa8, 0xa8, 0x74, 0x57, 0x57, 0x57, 0x45, 0xec, 0xec, 0xec, 0x80, +0xdf, 0xdf, 0xdf, 0x83, 0xdf, 0xdf, 0xdf, 0x83, 0xd7, 0xd7, 0xd7, 0x83, +0x2b, 0x2b, 0x2b, 0x39, 0xbd, 0xbd, 0xbd, 0x6b, 0xe5, 0xe5, 0xe5, 0x82, +0xe0, 0xe0, 0xe0, 0x83, 0xde, 0xde, 0xde, 0x81, 0x5c, 0x5c, 0x5c, 0x2f, +0x00, 0x00, 0x00, 0x01, 0xc3, 0xc3, 0xc3, 0x70, 0xe4, 0xe4, 0xe4, 0x82, +0xdf, 0xdf, 0xdf, 0x83, 0xdf, 0xdf, 0xdf, 0x83, 0x7d, 0x7d, 0x7d, 0x61, +0x51, 0x51, 0x51, 0x40, 0xed, 0xed, 0xed, 0x80, 0xe0, 0xe0, 0xe0, 0x83, +0xda, 0xda, 0xda, 0x7c, 0x55, 0x55, 0x55, 0x26, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x59, 0x59, 0x38, +0xed, 0xed, 0xed, 0x80, 0xe0, 0xe0, 0xe0, 0x83, 0xdf, 0xdf, 0xdf, 0x81, +0x88, 0x88, 0x88, 0x47, 0x01, 0x01, 0x01, 0x00, 0x4b, 0x4b, 0x4b, 0x40, +0xd5, 0xd5, 0xd5, 0x7a, 0x0e, 0x0e, 0x0e, 0x0c, 0x00, 0x00, 0x00, 0x00, +0xa4, 0xa4, 0xa4, 0x4b, 0xaf, 0xaf, 0xaf, 0x7e, 0x00, 0x00, 0x00, 0x15, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x9f, 0x9f, 0x9f, 0x8f, 0xa4, 0xa4, 0xa4, 0xff, +0x09, 0x09, 0x09, 0xfb, 0x2f, 0x2f, 0x2f, 0xff, 0xf9, 0xf9, 0xf9, 0xff, +0x3e, 0x3e, 0x3e, 0x5b, 0xd8, 0xd8, 0xd8, 0xa4, 0x8d, 0x8d, 0x8d, 0xff, +0x0d, 0x0d, 0x0d, 0xf2, 0x44, 0x44, 0x44, 0xff, 0xec, 0xec, 0xec, 0xeb, +0x3a, 0x3a, 0x3a, 0x5d, 0xd6, 0xd6, 0xd6, 0xff, 0x27, 0x27, 0x27, 0x8d, +0x71, 0x71, 0x71, 0x61, 0xff, 0xff, 0xff, 0xff, 0x9a, 0x9a, 0x9a, 0xeb, +0x0a, 0x0a, 0x0a, 0x48, 0xe8, 0xe8, 0xe8, 0xda, 0x42, 0x42, 0x42, 0xe2, +0x93, 0x93, 0x93, 0xc2, 0xa7, 0xa7, 0xa7, 0xff, 0x0b, 0x0b, 0x0b, 0xf9, +0x0c, 0x0c, 0x0c, 0xf8, 0x0e, 0x0e, 0x0e, 0xf3, 0x24, 0x24, 0x24, 0x98, +0xeb, 0xeb, 0xeb, 0xfd, 0x28, 0x28, 0x28, 0xff, 0x04, 0x04, 0x04, 0xf9, +0x92, 0x92, 0x92, 0xff, 0xc3, 0xc3, 0xc3, 0xd0, 0x1f, 0x1f, 0x1f, 0x42, +0xeb, 0xeb, 0xeb, 0xfc, 0x2f, 0x2f, 0x2f, 0xff, 0x0c, 0x0c, 0x0c, 0xf8, +0x0c, 0x0c, 0x0c, 0xf8, 0x07, 0x07, 0x07, 0xc1, 0x9e, 0x9e, 0x9e, 0xb9, +0xac, 0xac, 0xac, 0xff, 0x14, 0x14, 0x14, 0xfd, 0x61, 0x61, 0x61, 0xff, +0xe7, 0xe7, 0xe7, 0xd9, 0x15, 0x15, 0x15, 0x2b, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x9f, 0x9f, 0x9f, 0x8f, 0xa1, 0xa1, 0xa1, 0xff, +0x02, 0x02, 0x02, 0xfa, 0x50, 0x50, 0x50, 0xff, 0xfb, 0xfb, 0xfb, 0xf7, +0x0e, 0x0e, 0x0e, 0x3b, 0x06, 0x06, 0x06, 0x5a, 0xdd, 0xdd, 0xdd, 0xff, +0x6c, 0x6c, 0x6c, 0x7a, 0x69, 0x69, 0x69, 0x40, 0xea, 0xea, 0xea, 0xf9, +0x20, 0x20, 0x20, 0xe2, 0x41, 0x41, 0x41, 0x56, 0x44, 0x44, 0x44, 0x0f, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x06, +0xc6, 0xc6, 0xc6, 0xca, 0xa2, 0xa2, 0xa2, 0xfc, 0x4b, 0x4b, 0x4b, 0xc5, +0xa1, 0xa1, 0xa1, 0xcd, 0xbf, 0xbf, 0xbf, 0xff, 0x69, 0x69, 0x69, 0xdc, +0xd1, 0xd1, 0xd1, 0xff, 0x01, 0x01, 0x01, 0xe2, 0x00, 0x00, 0x00, 0xba, +0x00, 0x00, 0x00, 0xb7, 0xd2, 0xd2, 0xd2, 0xff, 0x59, 0x59, 0x59, 0xc9, +0xb7, 0xb7, 0xb7, 0xf2, 0x50, 0x50, 0x50, 0xc8, 0xd1, 0xd1, 0xd1, 0xe1, +0xaf, 0xaf, 0xaf, 0xff, 0xa2, 0xa2, 0xa2, 0xf2, 0x79, 0x79, 0x79, 0xb7, +0xc2, 0xc2, 0xc2, 0xfd, 0x00, 0x00, 0x00, 0xd5, 0xc1, 0xc1, 0xc1, 0xed, +0xd7, 0xd7, 0xd7, 0xf9, 0x9c, 0x9c, 0x9c, 0xdb, 0xa5, 0xa5, 0xa5, 0xcd, +0x5a, 0x5a, 0x5a, 0xb7, 0x4a, 0x4a, 0x4a, 0xaf, 0xf0, 0xf0, 0xf0, 0xfd, +0x72, 0x72, 0x72, 0xe0, 0x6b, 0x6b, 0x6b, 0xbb, 0xd2, 0xd2, 0xd2, 0xec, +0x70, 0x70, 0x70, 0xf7, 0x44, 0x44, 0x44, 0xb7, 0xfa, 0xfa, 0xfa, 0xfc, +0xa8, 0xa8, 0xa8, 0xe9, 0xa1, 0xa1, 0xa1, 0xd1, 0x9c, 0x9c, 0x9c, 0xcb, +0x20, 0x20, 0x20, 0xa1, 0xc1, 0xc1, 0xc1, 0xe0, 0x6c, 0x6c, 0x6c, 0xf8, +0x00, 0x00, 0x00, 0xc6, 0x09, 0x09, 0x09, 0xc3, 0xed, 0xed, 0xed, 0xff, +0x34, 0x34, 0x34, 0x94, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x03, +0xc5, 0xc5, 0xc5, 0xca, 0xcb, 0xcb, 0xcb, 0xfc, 0x8d, 0x8d, 0x8d, 0xca, +0xc4, 0xc4, 0xc4, 0xdf, 0x8f, 0x8f, 0x8f, 0xff, 0x02, 0x02, 0x02, 0x94, +0x00, 0x00, 0x00, 0x34, 0x68, 0x68, 0x68, 0xdd, 0xee, 0xee, 0xee, 0xe9, +0xf2, 0xf2, 0xf2, 0xe3, 0x41, 0x41, 0x41, 0xf9, 0x00, 0x00, 0x00, 0xbe, +0x85, 0x85, 0x85, 0xdb, 0x67, 0x67, 0x67, 0xa1, 0x00, 0x00, 0x00, 0x0e, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x14, 0xe8, 0xe8, 0xe8, 0xed, +0xc1, 0xc1, 0xc1, 0xff, 0xb3, 0xb3, 0xb3, 0xef, 0xa8, 0xa8, 0xa8, 0xf8, +0x20, 0x20, 0x20, 0xf2, 0x8a, 0x8a, 0x8a, 0xf1, 0xab, 0xab, 0xab, 0xfd, +0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x43, 0x25, 0x25, 0x25, 0x3c, +0xed, 0xed, 0xed, 0xf8, 0x33, 0x33, 0x33, 0xe3, 0xb9, 0xb9, 0xb9, 0xf4, +0xc0, 0xc0, 0xc0, 0xed, 0xa4, 0xa4, 0xa4, 0xfb, 0x57, 0x57, 0x57, 0xf5, +0xcc, 0xcc, 0xcc, 0xf9, 0xe2, 0xe2, 0xe2, 0xf6, 0x46, 0x46, 0x46, 0xf2, +0x08, 0x08, 0x08, 0xb9, 0xe4, 0xe4, 0xe4, 0xf2, 0x83, 0x83, 0x83, 0xff, +0x6b, 0x6b, 0x6b, 0xfc, 0x70, 0x70, 0x70, 0xfb, 0x35, 0x35, 0x35, 0xbe, +0x7d, 0x7d, 0x7d, 0xa7, 0xd5, 0xd5, 0xd5, 0xff, 0x98, 0x98, 0x98, 0xfb, +0xff, 0xff, 0xff, 0xf5, 0x6f, 0x6f, 0x6f, 0xf6, 0x00, 0x00, 0x00, 0xdc, +0x83, 0x83, 0x83, 0xd3, 0xd0, 0xd0, 0xd0, 0xff, 0x69, 0x69, 0x69, 0xfe, +0x6c, 0x6c, 0x6c, 0xfa, 0x65, 0x65, 0x65, 0xf4, 0x21, 0x21, 0x21, 0x8e, +0xe3, 0xe3, 0xe3, 0xed, 0x37, 0x37, 0x37, 0xeb, 0x00, 0x00, 0x00, 0x67, +0x3a, 0x3a, 0x3a, 0x55, 0xec, 0xec, 0xec, 0xff, 0x18, 0x18, 0x18, 0xc4, +0x00, 0x00, 0x00, 0x1f, 0x12, 0x12, 0x12, 0x0f, 0xe5, 0xe5, 0xe5, 0xed, +0x9b, 0x9b, 0x9b, 0xff, 0x8d, 0x8d, 0x8d, 0xf8, 0xc0, 0xc0, 0xc0, 0xfc, +0x9e, 0x9e, 0x9e, 0xf5, 0x02, 0x02, 0x02, 0x94, 0x00, 0x00, 0x00, 0x15, +0x10, 0x10, 0x10, 0x8b, 0xf3, 0xf3, 0xf3, 0xff, 0x80, 0x80, 0x80, 0xff, +0x00, 0x00, 0x00, 0xdc, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x8e, +0x00, 0x00, 0x00, 0xab, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x3f, 0x3f, 0x3f, 0x3d, 0xe7, 0xe7, 0xe7, 0xfc, 0x10, 0x10, 0x10, 0xf9, +0x00, 0x00, 0x00, 0xec, 0x00, 0x00, 0x00, 0xe1, 0x00, 0x00, 0x00, 0xc2, +0x66, 0x66, 0x66, 0xd8, 0xe2, 0xe2, 0xe2, 0xff, 0x1d, 0x1d, 0x1d, 0x87, +0x16, 0x16, 0x16, 0x00, 0xc2, 0xc2, 0xc2, 0x73, 0xaa, 0xaa, 0xaa, 0xff, +0x03, 0x03, 0x03, 0xd5, 0xc4, 0xc4, 0xc4, 0xf5, 0xff, 0xff, 0xff, 0xff, +0x3a, 0x3a, 0x3a, 0xee, 0x37, 0x37, 0x37, 0xe5, 0xff, 0xff, 0xff, 0xff, +0xc0, 0xc0, 0xc0, 0xff, 0x00, 0x00, 0x00, 0xd5, 0x3d, 0x3d, 0x3d, 0x9b, +0xea, 0xea, 0xea, 0xf8, 0x18, 0x18, 0x18, 0xee, 0x06, 0x06, 0x06, 0xca, +0x05, 0x05, 0x05, 0xbb, 0x03, 0x03, 0x03, 0x9e, 0xbb, 0xbb, 0xbb, 0xd1, +0x7e, 0x7e, 0x7e, 0xfe, 0x00, 0x00, 0x00, 0xed, 0xa9, 0xa9, 0xa9, 0xff, +0x94, 0x94, 0x94, 0xed, 0x00, 0x00, 0x00, 0xa2, 0xbb, 0xbb, 0xbb, 0xcc, +0x8c, 0x8c, 0x8c, 0xfd, 0x06, 0x06, 0x06, 0xdc, 0x05, 0x05, 0x05, 0xbf, +0x05, 0x05, 0x05, 0xb1, 0x3e, 0x3e, 0x3e, 0xa5, 0xea, 0xea, 0xea, 0xfd, +0x1f, 0x1f, 0x1f, 0xcb, 0x30, 0x30, 0x30, 0x33, 0xd9, 0xd9, 0xd9, 0x8b, +0x9a, 0x9a, 0x9a, 0xff, 0x00, 0x00, 0x00, 0xbc, 0x00, 0x00, 0x00, 0x1d, +0x3f, 0x3f, 0x3f, 0x38, 0xea, 0xea, 0xea, 0xfc, 0x15, 0x15, 0x15, 0xf1, +0x02, 0x02, 0x02, 0xd2, 0x87, 0x87, 0x87, 0xec, 0xd2, 0xd2, 0xd2, 0xff, +0x04, 0x04, 0x04, 0x7c, 0x00, 0x00, 0x00, 0x01, 0x21, 0x21, 0x21, 0x41, +0xec, 0xec, 0xec, 0xfc, 0x21, 0x21, 0x21, 0xfa, 0x00, 0x00, 0x00, 0xa0, +0x0f, 0x0f, 0x0f, 0x1d, 0x26, 0x26, 0x26, 0x26, 0x00, 0x00, 0x00, 0x59, +0x00, 0x00, 0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6a, 0x6a, 0x6a, 0x7c, +0xb6, 0xb6, 0xb6, 0xff, 0x00, 0x00, 0x00, 0xd7, 0x00, 0x00, 0x00, 0x94, +0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x4b, 0x0a, 0x0a, 0x0a, 0x84, +0xac, 0xac, 0xac, 0xff, 0xe0, 0xe0, 0xe0, 0xc7, 0xda, 0xda, 0xda, 0x95, +0xaf, 0xaf, 0xaf, 0xf8, 0x11, 0x11, 0x11, 0xed, 0x00, 0x00, 0x00, 0xb3, +0xb1, 0xb1, 0xb1, 0xef, 0xbb, 0xbb, 0xbb, 0xff, 0x00, 0x00, 0x00, 0xdb, +0x3f, 0x3f, 0x3f, 0xc7, 0xed, 0xed, 0xed, 0xff, 0x47, 0x47, 0x47, 0xff, +0x00, 0x00, 0x00, 0xa5, 0x60, 0x60, 0x60, 0x9c, 0xec, 0xec, 0xec, 0xff, +0xe0, 0xe0, 0xe0, 0xed, 0xe0, 0xe0, 0xe0, 0xcb, 0xe0, 0xe0, 0xe0, 0xc0, +0x5f, 0x5f, 0x5f, 0x90, 0xbd, 0xbd, 0xbd, 0xea, 0x4a, 0x4a, 0x4a, 0xf4, +0x00, 0x00, 0x00, 0xa4, 0x3a, 0x3a, 0x3a, 0xd1, 0xdc, 0xdc, 0xdc, 0xff, +0x26, 0x26, 0x26, 0x81, 0xc3, 0xc3, 0xc3, 0xe6, 0xe5, 0xe5, 0xe5, 0xfd, +0xe0, 0xe0, 0xe0, 0xdb, 0xe0, 0xe0, 0xe0, 0xc2, 0xac, 0xac, 0xac, 0xad, +0x66, 0x66, 0x66, 0xa8, 0xec, 0xec, 0xec, 0xff, 0xdf, 0xdf, 0xdf, 0xdc, +0xde, 0xde, 0xde, 0xc3, 0x9a, 0x9a, 0x9a, 0xfe, 0x0f, 0x0f, 0x0f, 0xf0, +0x00, 0x00, 0x00, 0x95, 0x00, 0x00, 0x00, 0x05, 0x60, 0x60, 0x60, 0x78, +0xec, 0xec, 0xec, 0xff, 0xe0, 0xe0, 0xe0, 0xef, 0xe0, 0xe0, 0xe0, 0xd5, +0xc9, 0xc9, 0xc9, 0xf5, 0x40, 0x40, 0x40, 0xfb, 0x00, 0x00, 0x00, 0x8b, +0x00, 0x00, 0x00, 0x00, 0x4e, 0x4e, 0x4e, 0x5f, 0xc9, 0xc9, 0xc9, 0xff, +0x07, 0x07, 0x07, 0xd7, 0x00, 0x00, 0x00, 0x3c, 0x66, 0x66, 0x66, 0x53, +0xae, 0xae, 0xae, 0xad, 0x01, 0x01, 0x01, 0x1d, 0x00, 0x00, 0x00, 0x01, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x05, 0x69, 0x05, 0x05, 0x05, 0xe4, +0x00, 0x00, 0x00, 0x9d, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x04, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0xc4, +0x27, 0x27, 0x27, 0xff, 0x25, 0x24, 0x24, 0xff, 0x00, 0x00, 0x00, 0xe7, +0x00, 0x00, 0x00, 0xbd, 0x00, 0x00, 0x00, 0x5e, 0x08, 0x08, 0x08, 0xb3, +0x02, 0x02, 0x02, 0xf9, 0x00, 0x00, 0x00, 0xae, 0x00, 0x00, 0x00, 0x78, +0x0a, 0x0a, 0x0a, 0xe6, 0x00, 0x00, 0x00, 0xed, 0x00, 0x00, 0x00, 0x61, +0x04, 0x04, 0x04, 0x6a, 0x0c, 0x0c, 0x0c, 0xec, 0x0f, 0x0f, 0x0f, 0xfd, +0x0f, 0x0f, 0x0f, 0xf5, 0x0f, 0x0f, 0x0f, 0xf3, 0x02, 0x02, 0x02, 0xb8, +0x0a, 0x0a, 0x0a, 0xd3, 0x00, 0x00, 0x00, 0xd4, 0x00, 0x00, 0x00, 0x4b, +0x00, 0x00, 0x00, 0x62, 0x0c, 0x0c, 0x0c, 0xe5, 0x03, 0x03, 0x03, 0xab, +0x0a, 0x0a, 0x0a, 0xca, 0x0d, 0x0d, 0x0d, 0xfa, 0x0f, 0x0f, 0x0f, 0xf8, +0x0f, 0x0f, 0x0f, 0xf5, 0x08, 0x08, 0x08, 0xdd, 0x04, 0x04, 0x04, 0xb0, +0x0c, 0x0c, 0x0c, 0xec, 0x10, 0x10, 0x0f, 0xfd, 0x0c, 0x0c, 0x0b, 0xf7, +0x00, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0xbd, 0x00, 0x00, 0x00, 0x47, +0x00, 0x00, 0x00, 0x00, 0x05, 0x04, 0x04, 0x65, 0x0c, 0x0c, 0x0c, 0xeb, +0x10, 0x0f, 0x0f, 0xfb, 0x10, 0x10, 0x10, 0xf2, 0x01, 0x01, 0x01, 0xee, +0x00, 0x00, 0x00, 0xd7, 0x00, 0x00, 0x00, 0x6b, 0x00, 0x00, 0x00, 0x00, +0x03, 0x03, 0x03, 0x56, 0x06, 0x06, 0x06, 0xe0, 0x00, 0x00, 0x00, 0xac, +0x00, 0x00, 0x00, 0x11, 0x06, 0x06, 0x06, 0x61, 0x09, 0x09, 0x08, 0xd2, +0x00, 0x00, 0x00, 0x56, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x10, 0x0f, 0x10, 0x00, 0x10, 0x10, 0x0f, 0x00, +0x10, 0x10, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00, +0x0e, 0x0e, 0x0e, 0x21, 0x0e, 0x0d, 0x0d, 0x73, 0x11, 0x10, 0x10, 0x4a, +0x11, 0x10, 0x10, 0x00, 0x11, 0x10, 0x10, 0x00, 0x12, 0x11, 0x10, 0x00, +0x12, 0x11, 0x10, 0x03, 0x10, 0x0f, 0x0e, 0x49, 0x0b, 0x09, 0x08, 0x9d, +0x0b, 0x09, 0x09, 0xb0, 0x10, 0x0f, 0x0e, 0x97, 0x12, 0x11, 0x10, 0x4d, +0x12, 0x10, 0x10, 0x0b, 0x0e, 0x0d, 0x0d, 0x45, 0x0e, 0x0e, 0x0d, 0x8f, +0x11, 0x10, 0x10, 0x4b, 0x10, 0x0f, 0x0f, 0x1a, 0x0c, 0x0c, 0x0c, 0x76, +0x10, 0x0f, 0x0f, 0x7c, 0x10, 0x10, 0x10, 0x1a, 0x0e, 0x0e, 0x0e, 0x1f, +0x0b, 0x0b, 0x0b, 0x8b, 0x0b, 0x0b, 0x0b, 0xb1, 0x0b, 0x0b, 0x0b, 0xaa, +0x0b, 0x0b, 0x0b, 0xa7, 0x0e, 0x0e, 0x0e, 0x87, 0x0c, 0x0c, 0x0c, 0x76, +0x0e, 0x0e, 0x0e, 0x75, 0x0f, 0x0f, 0x0f, 0x1e, 0x0f, 0x0f, 0x0f, 0x18, +0x0b, 0x0b, 0x0b, 0x74, 0x0e, 0x0e, 0x0e, 0x73, 0x0c, 0x0c, 0x0c, 0x6a, +0x0b, 0x0b, 0x0b, 0xa9, 0x0b, 0x0b, 0x0b, 0xad, 0x0b, 0x0b, 0x0b, 0xa9, +0x0c, 0x0c, 0x0c, 0x99, 0x0e, 0x0e, 0x0e, 0x70, 0x0c, 0x0c, 0x0b, 0x8b, +0x0d, 0x0c, 0x0b, 0xaa, 0x0d, 0x0c, 0x0c, 0xa2, 0x10, 0x0f, 0x0f, 0x8a, +0x12, 0x11, 0x10, 0x45, 0x12, 0x11, 0x10, 0x05, 0x11, 0x10, 0x10, 0x00, +0x10, 0x0f, 0x0e, 0x22, 0x0d, 0x0c, 0x0c, 0x87, 0x0d, 0x0c, 0x0c, 0xab, +0x0d, 0x0c, 0x0b, 0xa3, 0x0e, 0x0d, 0x0d, 0x9a, 0x11, 0x10, 0x10, 0x69, +0x11, 0x10, 0x10, 0x17, 0x11, 0x10, 0x10, 0x00, 0x0f, 0x0f, 0x0e, 0x17, +0x0d, 0x0d, 0x0c, 0x6d, 0x11, 0x10, 0x10, 0x54, 0x11, 0x10, 0x10, 0x00, +0x0e, 0x0e, 0x0e, 0x1b, 0x0d, 0x0d, 0x0d, 0x68, 0x11, 0x10, 0x10, 0x44, +0x10, 0x10, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00, +0x10, 0x10, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00, +0x10, 0x10, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00, 0x10, 0x10, 0x0f, 0x00, +0x10, 0x10, 0x0f, 0x00, 0x10, 0x10, 0x0f, 0x00, 0x10, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf1, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x0b, 0xf0, 0xef, 0xf0, 0x1c, +0xef, 0xef, 0xef, 0x31, 0xee, 0xec, 0xef, 0x47, 0xed, 0xeb, 0xed, 0x61, +0xea, 0xe8, 0xec, 0x7b, 0xe5, 0xe5, 0xeb, 0x87, 0xe1, 0xe2, 0xe9, 0x8e, +0xdb, 0xdf, 0xe7, 0x98, 0xd6, 0xdd, 0xe6, 0xa0, 0xd0, 0xdb, 0xe5, 0xa4, +0xcc, 0xd9, 0xe4, 0xaa, 0xca, 0xd7, 0xe3, 0xb9, 0xca, 0xd6, 0xe3, 0xc2, +0xcc, 0xd9, 0xe4, 0xb7, 0xcf, 0xda, 0xe5, 0xa7, 0xd5, 0xdb, 0xe6, 0xa0, +0xd9, 0xde, 0xe6, 0xa1, 0xdf, 0xe1, 0xe7, 0x9b, 0xe4, 0xe5, 0xea, 0x85, +0xe9, 0xe8, 0xec, 0x71, 0xec, 0xeb, 0xed, 0x67, 0xed, 0xed, 0xee, 0x4f, +0xef, 0xee, 0xef, 0x2b, 0xf0, 0xf0, 0xf0, 0x1a, 0xf0, 0xf0, 0xf0, 0x18, +0xf1, 0xf0, 0xf0, 0x17, 0xf0, 0xf0, 0xf0, 0x16, 0xf0, 0xf0, 0xf0, 0x17, +0xf0, 0xf0, 0xf0, 0x12, 0xf0, 0xf0, 0xf0, 0x0f, 0xf0, 0xf0, 0xf0, 0x0c, +0xf0, 0xf0, 0xf0, 0x02, 0xf0, 0xf0, 0xf0, 0x01, 0xf0, 0xf0, 0xf0, 0x0c, +0xf0, 0xf0, 0xf0, 0x0f, 0xf0, 0xf0, 0xf0, 0x0f, 0xf0, 0xf0, 0xf0, 0x18, +0xf0, 0xf0, 0xf0, 0x1b, 0xf0, 0xf0, 0xf0, 0x1c, 0xef, 0xef, 0xf0, 0x23, +0xe9, 0xeb, 0xee, 0x5a, 0xe1, 0xe5, 0xea, 0x9b, 0xd7, 0xdd, 0xe6, 0xb2, +0xd5, 0xdc, 0xe6, 0xb2, 0xd5, 0xdc, 0xe6, 0xa9, 0xd6, 0xdd, 0xe6, 0x9f, +0xd7, 0xde, 0xe7, 0x9c, 0xd8, 0xde, 0xe7, 0x9c, 0xda, 0xdf, 0xe7, 0x9f, +0xdb, 0xe0, 0xe8, 0xa4, 0xdc, 0xe0, 0xe8, 0xa7, 0xde, 0xe2, 0xe9, 0xa6, +0xe1, 0xe3, 0xe9, 0x9e, 0xe2, 0xe4, 0xea, 0x8f, 0xe3, 0xe4, 0xea, 0x84, +0xe5, 0xe5, 0xea, 0x81, 0xe6, 0xe6, 0xea, 0x7f, 0xe8, 0xe8, 0xec, 0x7f, +0xe9, 0xe9, 0xec, 0x76, 0xea, 0xe9, 0xed, 0x69, 0xec, 0xea, 0xed, 0x67, +0xeb, 0xea, 0xed, 0x68, 0xed, 0xeb, 0xee, 0x5a, 0xee, 0xec, 0xef, 0x4a, +0xee, 0xee, 0xef, 0x41, 0xef, 0xee, 0xef, 0x39, 0xef, 0xee, 0xef, 0x30, +0xef, 0xef, 0xf0, 0x27, 0xf0, 0xef, 0xf0, 0x1f, 0xf0, 0xef, 0xf0, 0x17, +0xf0, 0xf0, 0xf0, 0x0f, 0xf1, 0xf0, 0xf0, 0x09, 0xf0, 0xf0, 0xf0, 0x04, +0xf1, 0xf0, 0xf0, 0x00, 0xf1, 0xf1, 0xf0, 0x00, 0xf1, 0xf0, 0xf0, 0x00, +0xf1, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, +0xf0, 0xf0, 0xf0, 0x00, 0xf0, 0xf0, 0xf0, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0c, +0xff, 0xff, 0xff, 0x29, 0xff, 0xff, 0xff, 0x4c, 0xfd, 0xfd, 0xff, 0x75, +0xf4, 0xf7, 0xfd, 0x9c, 0xe5, 0xee, 0xf9, 0xbd, 0xd0, 0xe7, 0xf5, 0xd6, +0xb7, 0xdc, 0xef, 0xe8, 0x9d, 0xd4, 0xeb, 0xf4, 0x85, 0xcf, 0xe9, 0xfa, +0x74, 0xcb, 0xe7, 0xff, 0x5e, 0xc6, 0xe5, 0xff, 0x53, 0xc3, 0xe2, 0xff, +0x4e, 0xc6, 0xe6, 0xff, 0x46, 0xc0, 0xde, 0xff, 0x3c, 0xbf, 0xde, 0xff, +0x39, 0xc2, 0xe1, 0xff, 0x38, 0xba, 0xd8, 0xff, 0x3a, 0xb8, 0xd6, 0xff, +0x40, 0xbe, 0xdd, 0xff, 0x4c, 0xc4, 0xe3, 0xff, 0x4f, 0xc5, 0xe6, 0xff, +0x59, 0xc4, 0xe4, 0xff, 0x72, 0xca, 0xe6, 0xff, 0x85, 0xce, 0xe7, 0xfc, +0xa0, 0xd5, 0xeb, 0xf1, 0xbb, 0xdd, 0xef, 0xe2, 0xd6, 0xe6, 0xf3, 0xcf, +0xeb, 0xf1, 0xf9, 0xb0, 0xf8, 0xf9, 0xfe, 0x86, 0xff, 0xfe, 0xff, 0x59, +0xff, 0xff, 0xff, 0x2f, 0xff, 0xff, 0xff, 0x0d, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x2b, 0xd3, 0xe5, 0xf2, 0xc1, +0x54, 0xb1, 0xd4, 0xff, 0x49, 0xc2, 0xe3, 0xff, 0x50, 0xc4, 0xe2, 0xff, +0x50, 0xc1, 0xde, 0xff, 0x4d, 0xc2, 0xdf, 0xff, 0x4f, 0xc0, 0xde, 0xff, +0x53, 0xc3, 0xe0, 0xff, 0x54, 0xc3, 0xe1, 0xff, 0x55, 0xc3, 0xe1, 0xff, +0x58, 0xc5, 0xe4, 0xff, 0x5c, 0xc4, 0xe0, 0xff, 0x61, 0xc6, 0xe3, 0xff, +0x62, 0xc5, 0xe1, 0xff, 0x69, 0xc8, 0xe3, 0xff, 0x74, 0xca, 0xe7, 0xff, +0x7a, 0xcb, 0xe6, 0xff, 0x81, 0xcc, 0xe6, 0xfc, 0x85, 0xcf, 0xe8, 0xfb, +0x8c, 0xd0, 0xe9, 0xfa, 0x92, 0xd1, 0xe8, 0xf6, 0xa1, 0xd4, 0xea, 0xf1, +0xa9, 0xd8, 0xed, 0xed, 0xb1, 0xdb, 0xef, 0xea, 0xba, 0xde, 0xf0, 0xe5, +0xc5, 0xe2, 0xf2, 0xde, 0xd0, 0xe5, 0xf4, 0xd5, 0xd7, 0xe7, 0xf3, 0xcd, +0xde, 0xeb, 0xf5, 0xc2, 0xe7, 0xf0, 0xf9, 0xb7, 0xee, 0xf4, 0xfc, 0xa9, +0xf3, 0xf6, 0xfd, 0x9a, 0xf7, 0xf8, 0xfd, 0x8a, 0xfc, 0xfb, 0xff, 0x7a, +0xff, 0xfe, 0xff, 0x68, 0xff, 0xff, 0xff, 0x56, 0xff, 0xff, 0xff, 0x46, +0xff, 0xff, 0xff, 0x34, 0xff, 0xff, 0xff, 0x24, 0xff, 0xff, 0xff, 0x18, +0xff, 0xff, 0xff, 0x0c, 0xff, 0xff, 0xff, 0x04, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0f, 0xfd, 0xfd, 0xff, 0x35, +0xfb, 0xfa, 0xfd, 0x67, 0xf0, 0xf2, 0xf8, 0x9e, 0xd7, 0xe6, 0xf2, 0xcb, +0xb2, 0xd8, 0xeb, 0xe9, 0x87, 0xcb, 0xe3, 0xfa, 0x60, 0xc4, 0xe0, 0xff, +0x45, 0xc3, 0xe2, 0xff, 0x30, 0xbc, 0xda, 0xff, 0x25, 0xbe, 0xdd, 0xff, +0x20, 0xc4, 0xe5, 0xff, 0x15, 0xbe, 0xdc, 0xff, 0x11, 0xba, 0xd7, 0xff, +0x10, 0xbf, 0xdf, 0xff, 0x09, 0xb9, 0xd8, 0xff, 0x0f, 0xba, 0xd7, 0xff, +0x11, 0xb8, 0xd7, 0xff, 0x11, 0xb9, 0xd9, 0xff, 0x0d, 0xb8, 0xd8, 0xff, +0x10, 0xb6, 0xd4, 0xff, 0x11, 0xb6, 0xd4, 0xff, 0x0e, 0xb5, 0xd3, 0xff, +0x09, 0xb5, 0xd4, 0xff, 0x01, 0xb5, 0xd7, 0xff, 0x03, 0xb8, 0xda, 0xff, +0x09, 0xb4, 0xd3, 0xff, 0x09, 0xb8, 0xd9, 0xff, 0x09, 0xb3, 0xd5, 0xff, +0x13, 0xb4, 0xd6, 0xff, 0x26, 0xb4, 0xd6, 0xff, 0x45, 0xb8, 0xd8, 0xff, +0x6e, 0xc0, 0xdb, 0xff, 0x9e, 0xce, 0xe4, 0xf3, 0xca, 0xdd, 0xec, 0xd7, +0xe9, 0xee, 0xf6, 0xa9, 0xf8, 0xf8, 0xfc, 0x6d, 0xfd, 0xfd, 0xfe, 0x34, +0xff, 0xff, 0xff, 0x0c, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfc, 0xfe, 0x4a, 0xab, 0xd3, 0xe6, 0xea, 0x00, 0xaf, 0xd8, 0xff, +0x0a, 0xbe, 0xdd, 0xff, 0x10, 0xb6, 0xd3, 0xff, 0x14, 0xba, 0xd7, 0xff, +0x13, 0xbe, 0xde, 0xff, 0x12, 0xb7, 0xd5, 0xff, 0x14, 0xba, 0xd8, 0xff, +0x10, 0xb6, 0xd6, 0xff, 0x0d, 0xb6, 0xd5, 0xff, 0x0f, 0xb7, 0xd5, 0xff, +0x0e, 0xb9, 0xd7, 0xff, 0x0b, 0xb6, 0xd5, 0xff, 0x09, 0xb7, 0xd4, 0xff, +0x0e, 0xbb, 0xdb, 0xff, 0x09, 0xb7, 0xd7, 0xff, 0x09, 0xb8, 0xd7, 0xff, +0x11, 0xb9, 0xd6, 0xff, 0x12, 0xb6, 0xd3, 0xff, 0x18, 0xbb, 0xd9, 0xff, +0x14, 0xbc, 0xdc, 0xff, 0x1b, 0xc3, 0xe7, 0xff, 0x15, 0xb9, 0xd8, 0xff, +0x17, 0xba, 0xdc, 0xff, 0x1a, 0xb6, 0xd7, 0xff, 0x20, 0xb9, 0xdb, 0xff, +0x26, 0xba, 0xdc, 0xff, 0x29, 0xb2, 0xd2, 0xff, 0x39, 0xbf, 0xe0, 0xff, +0x4e, 0xc2, 0xe0, 0xff, 0x54, 0xbe, 0xda, 0xff, 0x5d, 0xc3, 0xdf, 0xff, +0x72, 0xc7, 0xe3, 0xff, 0x7f, 0xc8, 0xe2, 0xfc, 0x8e, 0xcb, 0xe3, 0xf7, +0xa4, 0xd3, 0xe7, 0xf0, 0xb3, 0xd8, 0xea, 0xe6, 0xc5, 0xdf, 0xee, 0xda, +0xd4, 0xe5, 0xf1, 0xca, 0xe1, 0xeb, 0xf4, 0xb7, 0xec, 0xf0, 0xf7, 0xa0, +0xf4, 0xf4, 0xf9, 0x87, 0xfa, 0xf9, 0xfb, 0x6d, 0xfd, 0xfc, 0xfd, 0x52, +0xfe, 0xfd, 0xfe, 0x38, 0xff, 0xfe, 0xff, 0x22, 0xff, 0xff, 0xff, 0x10, +0xff, 0xff, 0xff, 0x04, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x04, 0xfd, 0xfe, 0xff, 0x27, 0xfb, 0xfb, 0xfd, 0x61, +0xef, 0xf2, 0xf8, 0xa2, 0xcd, 0xe3, 0xf1, 0xd6, 0x99, 0xd1, 0xe7, 0xf5, +0x62, 0xc4, 0xe1, 0xff, 0x3c, 0xc2, 0xe2, 0xff, 0x31, 0xc6, 0xe4, 0xff, +0x2d, 0xc8, 0xe6, 0xff, 0x30, 0xd0, 0xef, 0xff, 0x2d, 0xcc, 0xee, 0xff, +0x25, 0xc1, 0xe1, 0xff, 0x1d, 0xb6, 0xd5, 0xff, 0x16, 0xb3, 0xd4, 0xff, +0x09, 0xa6, 0xc8, 0xff, 0x03, 0x9e, 0xc1, 0xff, 0x01, 0x9d, 0xc5, 0xff, +0x00, 0x97, 0xbd, 0xff, 0x00, 0x90, 0xb4, 0xff, 0x00, 0x91, 0xb8, 0xff, +0x00, 0x8d, 0xb2, 0xff, 0x00, 0x93, 0xba, 0xff, 0x00, 0x8e, 0xb3, 0xff, +0x00, 0x90, 0xb5, 0xff, 0x00, 0x8d, 0xb1, 0xff, 0x00, 0x8c, 0xaf, 0xff, +0x00, 0x90, 0xb6, 0xff, 0x01, 0x93, 0xb8, 0xff, 0x01, 0x9a, 0xbf, 0xff, +0x02, 0xa3, 0xca, 0xff, 0x02, 0xa2, 0xc6, 0xff, 0x03, 0xaa, 0xce, 0xff, +0x02, 0xaf, 0xd4, 0xff, 0x02, 0xb5, 0xdc, 0xff, 0x00, 0xba, 0xe2, 0xff, +0x0a, 0xbb, 0xe5, 0xff, 0x25, 0xba, 0xe1, 0xff, 0x55, 0xbb, 0xdb, 0xff, +0x92, 0xc9, 0xe0, 0xf7, 0xcd, 0xe0, 0xed, 0xd5, 0xef, 0xf1, 0xf6, 0x99, +0xfb, 0xfb, 0xfc, 0x4f, 0xff, 0xff, 0xff, 0x16, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfc, 0xfa, 0xfc, 0x51, +0xa5, 0xd0, 0xe4, 0xed, 0x04, 0xaf, 0xd6, 0xff, 0x01, 0xa7, 0xd1, 0xff, +0x00, 0x95, 0xbb, 0xff, 0x00, 0x95, 0xb9, 0xff, 0x01, 0x9a, 0xc1, 0xff, +0x00, 0x96, 0xbb, 0xff, 0x01, 0x90, 0xb0, 0xff, 0x01, 0x90, 0xb1, 0xff, +0x02, 0x8e, 0xaf, 0xff, 0x00, 0x93, 0xb6, 0xff, 0x00, 0x97, 0xbc, 0xff, +0x01, 0x9a, 0xc1, 0xff, 0x02, 0x99, 0xbe, 0xff, 0x02, 0x99, 0xbc, 0xff, +0x02, 0x9f, 0xc4, 0xff, 0x03, 0xa4, 0xcd, 0xff, 0x05, 0xa7, 0xcf, 0xff, +0x06, 0xa3, 0xc6, 0xff, 0x0a, 0xa1, 0xc0, 0xff, 0x0a, 0x9f, 0xbe, 0xff, +0x0c, 0xab, 0xd0, 0xff, 0x07, 0xa7, 0xc9, 0xff, 0x09, 0xb0, 0xd6, 0xff, +0x0c, 0xa8, 0xc9, 0xff, 0x0a, 0xae, 0xd2, 0xff, 0x04, 0xb3, 0xd9, 0xff, +0x05, 0xb1, 0xd2, 0xff, 0x15, 0xb8, 0xd7, 0xff, 0x20, 0xbb, 0xd8, 0xff, +0x1b, 0xb5, 0xd0, 0xff, 0x17, 0xb9, 0xd7, 0xff, 0x1c, 0xbb, 0xd9, 0xff, +0x20, 0xbc, 0xda, 0xff, 0x24, 0xc3, 0xe6, 0xff, 0x26, 0xc3, 0xe6, 0xff, +0x28, 0xbf, 0xe3, 0xff, 0x39, 0xc3, 0xe3, 0xff, 0x43, 0xc2, 0xe2, 0xff, +0x52, 0xc1, 0xdf, 0xff, 0x5e, 0xc3, 0xe0, 0xff, 0x73, 0xc6, 0xe1, 0xff, +0x8a, 0xcc, 0xe3, 0xf8, 0xa7, 0xd4, 0xe8, 0xed, 0xc1, 0xdd, 0xec, 0xdd, +0xd7, 0xe6, 0xf1, 0xc6, 0xe8, 0xee, 0xf6, 0xa9, 0xf4, 0xf5, 0xf9, 0x86, +0xfa, 0xfa, 0xfc, 0x61, 0xfd, 0xfd, 0xfe, 0x3e, 0xfe, 0xff, 0xff, 0x1e, +0xff, 0xff, 0xff, 0x09, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x07, 0xfc, 0xfd, 0xff, 0x35, 0xf6, 0xf7, 0xfb, 0x7e, +0xdc, 0xe9, 0xf4, 0xc5, 0xa6, 0xd4, 0xe9, 0xf2, 0x6b, 0xc7, 0xe2, 0xff, +0x4c, 0xc8, 0xe3, 0xff, 0x43, 0xcd, 0xe6, 0xff, 0x42, 0xd1, 0xed, 0xff, +0x45, 0xd2, 0xf1, 0xff, 0x42, 0xcc, 0xf1, 0xff, 0x2e, 0xc0, 0xe8, 0xff, +0x17, 0xae, 0xd5, 0xff, 0x05, 0x9e, 0xc6, 0xff, 0x00, 0x8f, 0xb2, 0xff, +0x00, 0x86, 0xa7, 0xff, 0x00, 0x81, 0xa0, 0xff, 0x00, 0x81, 0xa1, 0xff, +0x00, 0x77, 0x99, 0xff, 0x00, 0x77, 0x9a, 0xff, 0x00, 0x74, 0x99, 0xff, +0x00, 0x73, 0x9c, 0xff, 0x00, 0x67, 0x92, 0xff, 0x00, 0x65, 0x90, 0xff, +0x00, 0x65, 0x92, 0xff, 0x00, 0x61, 0x8b, 0xff, 0x00, 0x68, 0x93, 0xff, +0x00, 0x6f, 0x9b, 0xff, 0x00, 0x6b, 0x96, 0xff, 0x00, 0x6f, 0x99, 0xff, +0x00, 0x77, 0x9f, 0xff, 0x00, 0x74, 0x99, 0xff, 0x00, 0x77, 0x9c, 0xff, +0x00, 0x81, 0xa6, 0xff, 0x00, 0x85, 0xa8, 0xff, 0x00, 0x82, 0xa4, 0xff, +0x00, 0x8c, 0xae, 0xff, 0x02, 0x9e, 0xc8, 0xff, 0x04, 0xaa, 0xd4, 0xff, +0x10, 0xb9, 0xe2, 0xff, 0x18, 0xb8, 0xdb, 0xff, 0x15, 0xb0, 0xd3, 0xff, +0x2a, 0xb1, 0xd4, 0xff, 0x68, 0xbf, 0xdc, 0xff, 0xb4, 0xd5, 0xe6, 0xe8, +0xe9, 0xed, 0xf4, 0xaa, 0xfa, 0xfb, 0xfd, 0x55, 0xfe, 0xfe, 0xff, 0x14, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfb, 0xfa, 0xfc, 0x50, 0xa3, 0xcd, 0xe1, 0xec, +0x06, 0xa7, 0xce, 0xff, 0x00, 0xa3, 0xd0, 0xff, 0x00, 0x92, 0xbb, 0xff, +0x00, 0x85, 0xa9, 0xff, 0x00, 0x85, 0xa8, 0xff, 0x00, 0x84, 0xa6, 0xff, +0x01, 0x7e, 0x9f, 0xff, 0x00, 0x79, 0x95, 0xff, 0x00, 0x78, 0x98, 0xff, +0x01, 0x7c, 0xa1, 0xff, 0x01, 0x71, 0x93, 0xff, 0x01, 0x76, 0x9b, 0xff, +0x00, 0x77, 0x9e, 0xff, 0x00, 0x70, 0x90, 0xff, 0x00, 0x77, 0x9a, 0xff, +0x00, 0x79, 0x9e, 0xff, 0x00, 0x7b, 0x9e, 0xff, 0x00, 0x79, 0x99, 0xff, +0x00, 0x7d, 0xa0, 0xff, 0x00, 0x7e, 0x9e, 0xff, 0x00, 0x7e, 0x9f, 0xff, +0x00, 0x85, 0xa8, 0xff, 0x00, 0x85, 0xa9, 0xff, 0x00, 0x81, 0xa3, 0xff, +0x00, 0x87, 0xab, 0xff, 0x00, 0x8d, 0xb3, 0xff, 0x00, 0x8a, 0xad, 0xff, +0x00, 0x94, 0xbb, 0xff, 0x00, 0x8e, 0xac, 0xff, 0x02, 0x92, 0xb1, 0xff, +0x03, 0x98, 0xba, 0xff, 0x06, 0x9b, 0xbb, 0xff, 0x0d, 0x9f, 0xbd, 0xff, +0x14, 0xab, 0xce, 0xff, 0x13, 0xa9, 0xc9, 0xff, 0x18, 0xaf, 0xcf, 0xff, +0x27, 0xba, 0xdd, 0xff, 0x31, 0xc0, 0xe3, 0xff, 0x2c, 0xb6, 0xd3, 0xff, +0x2e, 0xc0, 0xde, 0xff, 0x30, 0xc9, 0xeb, 0xff, 0x30, 0xc5, 0xe9, 0xff, +0x2d, 0xc1, 0xe4, 0xff, 0x32, 0xbe, 0xde, 0xff, 0x43, 0xbd, 0xdc, 0xff, +0x5a, 0xc3, 0xe0, 0xff, 0x76, 0xc5, 0xe0, 0xff, 0x9a, 0xcf, 0xe4, 0xf4, +0xbd, 0xdb, 0xea, 0xdf, 0xdb, 0xe7, 0xf1, 0xc0, 0xef, 0xf3, 0xf8, 0x93, +0xfa, 0xfa, 0xfc, 0x5f, 0xfd, 0xfe, 0xff, 0x30, 0xff, 0xff, 0xff, 0x0e, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x05, 0xfc, 0xfe, 0xff, 0x34, 0xf4, 0xf7, 0xfb, 0x86, +0xd4, 0xe6, 0xf2, 0xd3, 0x96, 0xcf, 0xe6, 0xfb, 0x5e, 0xc6, 0xe0, 0xff, +0x4a, 0xcb, 0xe4, 0xff, 0x59, 0xd5, 0xec, 0xff, 0x67, 0xd7, 0xf0, 0xff, +0x62, 0xcc, 0xec, 0xff, 0x47, 0xbc, 0xe1, 0xff, 0x2c, 0xb0, 0xda, 0xff, +0x0f, 0xa0, 0xc9, 0xff, 0x00, 0x89, 0xa9, 0xff, 0x00, 0x81, 0x9e, 0xff, +0x00, 0x81, 0x9f, 0xff, 0x01, 0x78, 0x97, 0xff, 0x00, 0x71, 0x97, 0xff, +0x00, 0x5b, 0x84, 0xff, 0x00, 0x54, 0x85, 0xff, 0x00, 0x41, 0x7a, 0xff, +0x00, 0x2f, 0x6e, 0xff, 0x00, 0x2e, 0x6c, 0xff, 0x00, 0x32, 0x70, 0xff, +0x00, 0x2c, 0x69, 0xff, 0x00, 0x27, 0x63, 0xff, 0x00, 0x25, 0x63, 0xff, +0x00, 0x2b, 0x68, 0xff, 0x00, 0x2f, 0x68, 0xff, 0x00, 0x2d, 0x6a, 0xff, +0x00, 0x31, 0x70, 0xff, 0x00, 0x2e, 0x6e, 0xff, 0x00, 0x39, 0x77, 0xff, +0x00, 0x3b, 0x76, 0xff, 0x00, 0x40, 0x78, 0xff, 0x00, 0x4c, 0x83, 0xff, +0x00, 0x4c, 0x80, 0xff, 0x00, 0x5a, 0x88, 0xff, 0x00, 0x6a, 0x97, 0xff, +0x00, 0x6e, 0x93, 0xff, 0x00, 0x75, 0x96, 0xff, 0x00, 0x84, 0xa5, 0xff, +0x04, 0x90, 0xb1, 0xff, 0x07, 0x9d, 0xbc, 0xff, 0x08, 0xa9, 0xcb, 0xff, +0x10, 0xb6, 0xde, 0xff, 0x29, 0xb8, 0xe0, 0xff, 0x65, 0xbe, 0xdb, 0xff, +0xb5, 0xd5, 0xe4, 0xe8, 0xec, 0xef, 0xf5, 0xa0, 0xfb, 0xfb, 0xfd, 0x41, +0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfb, 0xfa, 0xfc, 0x50, 0xa3, 0xce, 0xe2, 0xec, 0x20, 0xb6, 0xe1, 0xff, +0x11, 0xab, 0xd8, 0xff, 0x00, 0x97, 0xbe, 0xff, 0x01, 0x93, 0xba, 0xff, +0x02, 0x95, 0xbb, 0xff, 0x01, 0x90, 0xb5, 0xff, 0x00, 0x8a, 0xad, 0xff, +0x00, 0x84, 0xa6, 0xff, 0x00, 0x8c, 0xb4, 0xff, 0x00, 0x61, 0x94, 0xff, +0x00, 0x34, 0x70, 0xff, 0x00, 0x33, 0x6f, 0xff, 0x00, 0x31, 0x6d, 0xff, +0x00, 0x2b, 0x6a, 0xff, 0x00, 0x31, 0x6c, 0xff, 0x00, 0x3b, 0x74, 0xff, +0x00, 0x42, 0x79, 0xff, 0x00, 0x3c, 0x71, 0xff, 0x00, 0x41, 0x78, 0xff, +0x00, 0x46, 0x7d, 0xff, 0x00, 0x4a, 0x7d, 0xff, 0x00, 0x4a, 0x7e, 0xff, +0x00, 0x4a, 0x7d, 0xff, 0x00, 0x57, 0x86, 0xff, 0x00, 0x58, 0x89, 0xff, +0x00, 0x56, 0x84, 0xff, 0x00, 0x6c, 0x9a, 0xff, 0x00, 0x75, 0xa0, 0xff, +0x00, 0x68, 0x8c, 0xff, 0x00, 0x6b, 0x91, 0xff, 0x00, 0x70, 0x95, 0xff, +0x00, 0x77, 0x9b, 0xff, 0x00, 0x7a, 0x9e, 0xff, 0x00, 0x84, 0xa8, 0xff, +0x00, 0x82, 0xa1, 0xff, 0x00, 0x85, 0xa4, 0xff, 0x00, 0x85, 0xa3, 0xff, +0x01, 0x8a, 0xa7, 0xff, 0x02, 0x90, 0xae, 0xff, 0x06, 0x94, 0xb2, 0xff, +0x13, 0xa1, 0xc2, 0xff, 0x1e, 0xa9, 0xcc, 0xff, 0x24, 0xb6, 0xdc, 0xff, +0x26, 0xb8, 0xdc, 0xff, 0x32, 0xbc, 0xdf, 0xff, 0x3c, 0xc5, 0xe8, 0xff, +0x42, 0xc8, 0xea, 0xff, 0x43, 0xc5, 0xe6, 0xff, 0x3f, 0xbf, 0xdf, 0xff, +0x4e, 0xbe, 0xdd, 0xff, 0x75, 0xc5, 0xdf, 0xff, 0xa2, 0xd2, 0xe5, 0xf2, +0xcd, 0xe1, 0xee, 0xd2, 0xec, 0xf1, 0xf7, 0x9e, 0xf9, 0xfa, 0xfc, 0x5a, +0xfe, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xff, 0x21, 0xf6, 0xf9, 0xfd, 0x76, +0xd9, 0xe9, 0xf4, 0xce, 0x9e, 0xd0, 0xe5, 0xfc, 0x6c, 0xc8, 0xde, 0xff, +0x68, 0xd8, 0xe8, 0xff, 0x74, 0xdd, 0xee, 0xff, 0x74, 0xd3, 0xec, 0xff, +0x61, 0xc0, 0xe2, 0xff, 0x4c, 0xb1, 0xd6, 0xff, 0x3f, 0xa5, 0xca, 0xff, +0x2c, 0x98, 0xb7, 0xff, 0x1e, 0x9d, 0xc1, 0xff, 0x04, 0x8b, 0xac, 0xff, +0x00, 0x74, 0x8d, 0xff, 0x01, 0x74, 0x95, 0xff, 0x00, 0x5a, 0x87, 0xff, +0x00, 0x3a, 0x70, 0xff, 0x00, 0x33, 0x6f, 0xff, 0x00, 0x26, 0x5e, 0xff, +0x0f, 0x35, 0x66, 0xf8, 0x24, 0x47, 0x6e, 0xe8, 0x3b, 0x5a, 0x76, 0xd5, +0x52, 0x6e, 0x82, 0xc3, 0x64, 0x7d, 0x8d, 0xb3, 0x71, 0x89, 0x96, 0xa9, +0x7a, 0x90, 0x9b, 0xa2, 0x7c, 0x93, 0x9d, 0xa1, 0x7c, 0x92, 0x9d, 0xa2, +0x7a, 0x8f, 0x9b, 0xa6, 0x75, 0x8c, 0x99, 0xab, 0x6d, 0x86, 0x95, 0xb3, +0x64, 0x80, 0x91, 0xbc, 0x5a, 0x77, 0x8a, 0xc7, 0x4e, 0x6e, 0x87, 0xd2, +0x41, 0x67, 0x82, 0xdd, 0x32, 0x5c, 0x7c, 0xe9, 0x24, 0x4f, 0x76, 0xf3, +0x16, 0x4a, 0x75, 0xfb, 0x09, 0x45, 0x74, 0xff, 0x00, 0x45, 0x76, 0xff, +0x00, 0x47, 0x79, 0xff, 0x00, 0x53, 0x84, 0xff, 0x00, 0x62, 0x8e, 0xff, +0x00, 0x6b, 0x91, 0xff, 0x00, 0x7e, 0xa4, 0xff, 0x07, 0x9a, 0xc0, 0xff, +0x1e, 0xb0, 0xd7, 0xff, 0x25, 0xb1, 0xd4, 0xff, 0x33, 0xb5, 0xd9, 0xff, +0x71, 0xbe, 0xd9, 0xff, 0xcc, 0xdd, 0xe9, 0xd6, 0xf5, 0xf6, 0xf9, 0x76, +0xfd, 0xfd, 0xff, 0x1b, 0xff, 0xff, 0xff, 0x00, 0xfb, 0xfa, 0xfc, 0x4f, +0xa5, 0xd1, 0xe2, 0xec, 0x41, 0xba, 0xe1, 0xff, 0x34, 0xab, 0xd2, 0xff, +0x1a, 0x98, 0xba, 0xff, 0x25, 0x9a, 0xbd, 0xff, 0x27, 0x9b, 0xbc, 0xff, +0x22, 0x9b, 0xbd, 0xff, 0x19, 0x99, 0xbd, 0xff, 0x0c, 0x97, 0xbb, 0xff, +0x00, 0x89, 0xb0, 0xff, 0x00, 0x41, 0x76, 0xff, 0x24, 0x47, 0x6d, 0xeb, +0x49, 0x69, 0x80, 0xcf, 0x4c, 0x6b, 0x83, 0xcf, 0x49, 0x69, 0x83, 0xd2, +0x46, 0x66, 0x80, 0xd5, 0x42, 0x65, 0x80, 0xd8, 0x3e, 0x63, 0x80, 0xdc, +0x3a, 0x60, 0x7e, 0xe0, 0x33, 0x5b, 0x7a, 0xe4, 0x2e, 0x54, 0x77, 0xe9, +0x29, 0x52, 0x76, 0xed, 0x24, 0x4f, 0x75, 0xf1, 0x1e, 0x4c, 0x73, 0xf4, +0x18, 0x48, 0x72, 0xf8, 0x12, 0x3f, 0x6e, 0xfb, 0x0d, 0x3c, 0x6d, 0xfd, +0x09, 0x43, 0x72, 0xff, 0x04, 0x47, 0x73, 0xff, 0x01, 0x42, 0x72, 0xff, +0x00, 0x35, 0x6d, 0xff, 0x00, 0x31, 0x6c, 0xff, 0x00, 0x40, 0x77, 0xff, +0x00, 0x42, 0x7a, 0xff, 0x00, 0x44, 0x7a, 0xff, 0x00, 0x4e, 0x7f, 0xff, +0x00, 0x54, 0x84, 0xff, 0x00, 0x50, 0x7c, 0xff, 0x00, 0x5a, 0x84, 0xff, +0x00, 0x66, 0x8f, 0xff, 0x00, 0x6c, 0x94, 0xff, 0x00, 0x6e, 0x93, 0xff, +0x00, 0x76, 0x96, 0xff, 0x00, 0x7b, 0x9c, 0xff, 0x00, 0x81, 0xa0, 0xff, +0x01, 0x8d, 0xaf, 0xff, 0x0d, 0x9c, 0xc1, 0xff, 0x27, 0xa8, 0xcc, 0xff, +0x41, 0xb9, 0xdf, 0xff, 0x4b, 0xc4, 0xe9, 0xff, 0x49, 0xc4, 0xe7, 0xff, +0x51, 0xc7, 0xe7, 0xff, 0x50, 0xc5, 0xe4, 0xff, 0x56, 0xbf, 0xdd, 0xff, +0x7b, 0xc6, 0xdf, 0xff, 0xb2, 0xd6, 0xe6, 0xed, 0xe2, 0xeb, 0xf2, 0xb7, +0xf8, 0xf9, 0xfc, 0x60, 0xfe, 0xfe, 0xff, 0x16, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x08, 0xfb, 0xfd, 0xfe, 0x4a, +0xe9, 0xf1, 0xf8, 0xb1, 0xb5, 0xd8, 0xe9, 0xf6, 0x81, 0xcb, 0xe0, 0xff, +0x7b, 0xd9, 0xe7, 0xff, 0x8c, 0xe6, 0xf2, 0xff, 0x87, 0xda, 0xf1, 0xff, +0x70, 0xbf, 0xdf, 0xff, 0x5e, 0xad, 0xce, 0xff, 0x51, 0xa6, 0xc7, 0xff, +0x41, 0x9c, 0xba, 0xff, 0x2f, 0x8b, 0xa6, 0xff, 0x1f, 0x86, 0xa0, 0xff, +0x13, 0x96, 0xb7, 0xff, 0x00, 0x83, 0xa7, 0xff, 0x00, 0x4e, 0x7d, 0xff, +0x00, 0x31, 0x69, 0xff, 0x03, 0x2b, 0x5e, 0xfe, 0x22, 0x40, 0x66, 0xe8, +0x4d, 0x68, 0x7d, 0xc2, 0x7b, 0x8f, 0x97, 0x97, 0xa1, 0xab, 0xaf, 0x6c, +0xbc, 0xc1, 0xc2, 0x4a, 0xd0, 0xd2, 0xd1, 0x30, 0xdc, 0xdc, 0xda, 0x1f, +0xe4, 0xe2, 0xe1, 0x14, 0xe9, 0xe7, 0xe6, 0x0f, 0xea, 0xe9, 0xe8, 0x0c, +0xeb, 0xea, 0xe9, 0x0b, 0xeb, 0xea, 0xe9, 0x0d, 0xeb, 0xe9, 0xe9, 0x0e, +0xea, 0xe8, 0xe8, 0x0f, 0xe8, 0xe7, 0xe6, 0x14, 0xe5, 0xe4, 0xe3, 0x19, +0xe1, 0xe0, 0xe0, 0x22, 0xdc, 0xdc, 0xdb, 0x2d, 0xd4, 0xd6, 0xd5, 0x39, +0xca, 0xce, 0xce, 0x4a, 0xbd, 0xc5, 0xc6, 0x5e, 0xad, 0xb8, 0xba, 0x77, +0x99, 0xa9, 0xaf, 0x92, 0x80, 0x96, 0xa1, 0xae, 0x64, 0x82, 0x93, 0xca, +0x46, 0x6e, 0x85, 0xe3, 0x27, 0x5c, 0x7c, 0xf6, 0x0f, 0x4c, 0x75, 0xff, +0x00, 0x49, 0x78, 0xff, 0x00, 0x60, 0x8c, 0xff, 0x00, 0x71, 0x9a, 0xff, +0x05, 0x8b, 0xb0, 0xff, 0x16, 0x9c, 0xbd, 0xff, 0x19, 0xad, 0xd5, 0xff, +0x3b, 0xb2, 0xd8, 0xff, 0xa4, 0xcd, 0xdf, 0xf4, 0xed, 0xef, 0xf5, 0xa0, +0xfc, 0xfd, 0xfd, 0x29, 0xfa, 0xfa, 0xfc, 0x4f, 0xad, 0xd2, 0xe3, 0xeb, +0x5c, 0xbe, 0xe0, 0xff, 0x55, 0xaf, 0xd0, 0xff, 0x44, 0x9b, 0xb9, 0xff, +0x4d, 0x9f, 0xbe, 0xff, 0x50, 0xa1, 0xc0, 0xff, 0x4b, 0x9f, 0xbd, 0xff, +0x49, 0x9f, 0xbf, 0xff, 0x33, 0x9b, 0xbb, 0xff, 0x02, 0x85, 0xa8, 0xff, +0x10, 0x62, 0x83, 0xff, 0x98, 0xa8, 0xae, 0xa7, 0xd6, 0xd5, 0xd4, 0x2f, +0xdb, 0xdb, 0xda, 0x27, 0xd9, 0xda, 0xd9, 0x2b, 0xd7, 0xd8, 0xd7, 0x30, +0xd5, 0xd6, 0xd5, 0x33, 0xd2, 0xd4, 0xd4, 0x37, 0xcf, 0xd2, 0xd1, 0x3d, +0xcb, 0xcf, 0xce, 0x43, 0xc7, 0xcb, 0xcb, 0x4a, 0xc2, 0xc7, 0xc8, 0x51, +0xbd, 0xc3, 0xc5, 0x59, 0xb7, 0xbf, 0xc0, 0x62, 0xb0, 0xb9, 0xbb, 0x6b, +0xa8, 0xb4, 0xb7, 0x74, 0xa0, 0xae, 0xb2, 0x80, 0x97, 0xa6, 0xac, 0x8b, +0x8f, 0x9f, 0xa6, 0x96, 0x84, 0x98, 0xa2, 0xa2, 0x77, 0x8e, 0x9b, 0xae, +0x6a, 0x85, 0x93, 0xba, 0x5d, 0x7a, 0x8d, 0xc5, 0x51, 0x71, 0x87, 0xd0, +0x46, 0x6a, 0x82, 0xdb, 0x39, 0x62, 0x7e, 0xe4, 0x2e, 0x59, 0x78, 0xec, +0x23, 0x51, 0x74, 0xf3, 0x19, 0x4d, 0x73, 0xf9, 0x0f, 0x47, 0x72, 0xfe, +0x07, 0x42, 0x71, 0xff, 0x00, 0x3e, 0x6f, 0xff, 0x00, 0x47, 0x77, 0xff, +0x00, 0x42, 0x71, 0xff, 0x00, 0x46, 0x76, 0xff, 0x00, 0x54, 0x82, 0xff, +0x00, 0x5d, 0x89, 0xff, 0x00, 0x61, 0x85, 0xff, 0x00, 0x72, 0x95, 0xff, +0x05, 0x80, 0xa7, 0xff, 0x0b, 0x91, 0xb4, 0xff, 0x20, 0x9b, 0xbb, 0xff, +0x44, 0xb5, 0xd7, 0xff, 0x59, 0xc7, 0xea, 0xff, 0x58, 0xc1, 0xe0, 0xff, +0x58, 0xbe, 0xdc, 0xff, 0x70, 0xc0, 0xdc, 0xff, 0xb4, 0xd5, 0xe5, 0xed, +0xed, 0xf1, 0xf5, 0x98, 0xfc, 0xfc, 0xfd, 0x2a, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xff, 0x19, +0xf6, 0xfa, 0xfd, 0x77, 0xd6, 0xe7, 0xf1, 0xdb, 0x9d, 0xd0, 0xe4, 0xff, +0x89, 0xd9, 0xe6, 0xff, 0x9b, 0xea, 0xf3, 0xff, 0x99, 0xe1, 0xf3, 0xff, +0x81, 0xc3, 0xdf, 0xff, 0x6f, 0xb0, 0xcc, 0xff, 0x63, 0xa4, 0xbe, 0xff, +0x61, 0xa3, 0xbe, 0xff, 0x60, 0xa4, 0xc0, 0xff, 0x4e, 0x97, 0xb2, 0xff, +0x34, 0x8e, 0xa8, 0xff, 0x18, 0x8d, 0xad, 0xff, 0x00, 0x61, 0x8c, 0xff, +0x00, 0x34, 0x68, 0xff, 0x13, 0x37, 0x62, 0xf4, 0x48, 0x63, 0x78, 0xc7, +0x85, 0x97, 0x9c, 0x88, 0xb7, 0xbe, 0xbd, 0x4c, 0xd7, 0xd6, 0xd5, 0x21, +0xe9, 0xe7, 0xe6, 0x09, 0xf2, 0xf1, 0xf0, 0x00, 0xf8, 0xf7, 0xf6, 0x00, +0xfb, 0xfb, 0xfa, 0x00, 0xfd, 0xfc, 0xfc, 0x00, 0xfd, 0xfd, 0xfd, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfd, 0x00, 0xfd, 0xfd, 0xfd, 0x00, +0xfd, 0xfc, 0xfc, 0x00, 0xfb, 0xfb, 0xfb, 0x00, 0xfa, 0xf9, 0xf9, 0x00, +0xf8, 0xf8, 0xf7, 0x00, 0xf6, 0xf5, 0xf5, 0x00, 0xf1, 0xf1, 0xf0, 0x07, +0xec, 0xea, 0xea, 0x13, 0xe3, 0xe2, 0xe2, 0x26, 0xd6, 0xd6, 0xd7, 0x42, +0xc0, 0xc5, 0xc8, 0x65, 0xa3, 0xb0, 0xb6, 0x8f, 0x7e, 0x95, 0xa1, 0xba, +0x55, 0x7b, 0x8e, 0xdf, 0x2c, 0x68, 0x83, 0xf7, 0x0d, 0x59, 0x7c, 0xff, +0x00, 0x58, 0x7e, 0xff, 0x00, 0x78, 0x9e, 0xff, 0x06, 0x9e, 0xca, 0xff, +0x11, 0xa3, 0xcb, 0xff, 0x7b, 0xbc, 0xd2, 0xfd, 0xe5, 0xeb, 0xf1, 0xaf, +0xf3, 0xf6, 0xf8, 0x82, 0xb4, 0xd4, 0xe3, 0xea, 0x70, 0xc1, 0xdf, 0xff, +0x6f, 0xb8, 0xd7, 0xff, 0x60, 0xa1, 0xbb, 0xff, 0x65, 0xa4, 0xbe, 0xff, +0x65, 0xa4, 0xbf, 0xff, 0x62, 0xa3, 0xbe, 0xff, 0x64, 0xa4, 0xc0, 0xff, +0x54, 0x9d, 0xb8, 0xff, 0x18, 0x88, 0xa6, 0xff, 0x23, 0x72, 0x8d, 0xff, +0xba, 0xc0, 0xc6, 0x93, 0xf7, 0xf5, 0xf5, 0x02, 0xfd, 0xfc, 0xfc, 0x00, +0xfd, 0xfc, 0xfc, 0x00, 0xfc, 0xfb, 0xfb, 0x00, 0xfc, 0xfb, 0xfb, 0x00, +0xfc, 0xfb, 0xfb, 0x00, 0xfb, 0xfa, 0xfa, 0x00, 0xfa, 0xfa, 0xf9, 0x00, +0xfa, 0xf9, 0xf9, 0x00, 0xfa, 0xf8, 0xf8, 0x00, 0xf8, 0xf7, 0xf7, 0x00, +0xf7, 0xf6, 0xf5, 0x00, 0xf6, 0xf5, 0xf4, 0x00, 0xf6, 0xf4, 0xf3, 0x00, +0xf4, 0xf2, 0xf2, 0x02, 0xf1, 0xf0, 0xef, 0x04, 0xef, 0xee, 0xed, 0x08, +0xed, 0xeb, 0xeb, 0x0c, 0xea, 0xe8, 0xe8, 0x12, 0xe6, 0xe4, 0xe4, 0x18, +0xe2, 0xe1, 0xe0, 0x21, 0xdd, 0xdc, 0xdc, 0x2b, 0xd6, 0xd7, 0xd7, 0x36, +0xcf, 0xd0, 0xd1, 0x42, 0xc7, 0xcb, 0xcb, 0x50, 0xbd, 0xc3, 0xc5, 0x5e, +0xb0, 0xb9, 0xbc, 0x6f, 0xa3, 0xaf, 0xb3, 0x7f, 0x94, 0xa4, 0xaa, 0x92, +0x84, 0x98, 0xa1, 0xa5, 0x73, 0x8c, 0x98, 0xb6, 0x61, 0x80, 0x90, 0xc7, +0x4f, 0x72, 0x87, 0xd6, 0x3d, 0x66, 0x7f, 0xe4, 0x2d, 0x5b, 0x78, 0xf0, +0x1f, 0x56, 0x76, 0xf9, 0x11, 0x51, 0x74, 0xff, 0x03, 0x4d, 0x74, 0xff, +0x00, 0x54, 0x7c, 0xff, 0x00, 0x5b, 0x80, 0xff, 0x00, 0x63, 0x88, 0xff, +0x04, 0x78, 0x9e, 0xff, 0x1b, 0x8b, 0xad, 0xff, 0x32, 0xa0, 0xbf, 0xff, +0x3b, 0xad, 0xce, 0xff, 0x36, 0xa8, 0xca, 0xff, 0x89, 0xc2, 0xd7, 0xfc, +0xe7, 0xeb, 0xf1, 0xa4, 0xfb, 0xfc, 0xfc, 0x22, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfe, 0xff, 0x2c, 0xf1, 0xf6, 0xfc, 0x9e, 0xc3, 0xde, 0xeb, 0xf4, +0x9b, 0xd4, 0xe3, 0xff, 0xa4, 0xe7, 0xee, 0xff, 0xae, 0xed, 0xf8, 0xff, +0x97, 0xd2, 0xe9, 0xff, 0x81, 0xb7, 0xd0, 0xff, 0x79, 0xab, 0xc2, 0xff, +0x75, 0xa9, 0xbf, 0xff, 0x74, 0xa8, 0xbf, 0xff, 0x71, 0xa7, 0xbf, 0xff, +0x68, 0xa1, 0xba, 0xff, 0x4c, 0x98, 0xb1, 0xff, 0x15, 0x7b, 0x9a, 0xff, +0x00, 0x40, 0x6a, 0xff, 0x15, 0x3a, 0x5e, 0xf3, 0x5a, 0x70, 0x7f, 0xb7, +0xa2, 0xab, 0xad, 0x64, 0xd2, 0xd3, 0xd2, 0x25, 0xeb, 0xe9, 0xe9, 0x05, +0xf6, 0xf5, 0xf4, 0x00, 0xfb, 0xfb, 0xfb, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xfe, 0x00, +0xfe, 0xfe, 0xfd, 0x00, 0xfc, 0xfc, 0xfc, 0x00, 0xf9, 0xf9, 0xf9, 0x00, +0xf4, 0xf3, 0xf3, 0x06, 0xec, 0xeb, 0xeb, 0x19, 0xde, 0xdd, 0xdd, 0x3a, +0xc4, 0xc8, 0xca, 0x69, 0xa0, 0xad, 0xb4, 0xa0, 0x71, 0x8c, 0x9a, 0xd3, +0x3e, 0x70, 0x87, 0xf6, 0x16, 0x6c, 0x8c, 0xff, 0x00, 0x7c, 0xa2, 0xff, +0x00, 0x86, 0xae, 0xff, 0x60, 0xab, 0xc6, 0xfc, 0xd9, 0xe3, 0xec, 0xd9, +0xb5, 0xd3, 0xe2, 0xf1, 0x85, 0xcb, 0xe4, 0xff, 0x7f, 0xbb, 0xd5, 0xff, +0x72, 0xa7, 0xbe, 0xff, 0x74, 0xa9, 0xc0, 0xff, 0x74, 0xa9, 0xc0, 0xff, +0x74, 0xa9, 0xc0, 0xff, 0x71, 0xa8, 0xbf, 0xff, 0x6a, 0xa1, 0xb8, 0xff, +0x3c, 0x91, 0xad, 0xff, 0x2c, 0x78, 0x90, 0xff, 0xbe, 0xc2, 0xc8, 0x96, +0xf9, 0xf8, 0xf8, 0x08, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfd, 0x00, 0xfe, 0xfe, 0xfd, 0x00, +0xfd, 0xfd, 0xfd, 0x00, 0xfc, 0xfc, 0xfc, 0x00, 0xfc, 0xfb, 0xfb, 0x00, +0xfa, 0xfa, 0xf9, 0x00, 0xf9, 0xf8, 0xf8, 0x00, 0xf7, 0xf6, 0xf5, 0x00, +0xf5, 0xf4, 0xf3, 0x00, 0xf2, 0xf1, 0xf0, 0x05, 0xef, 0xed, 0xec, 0x0c, +0xea, 0xe8, 0xe7, 0x14, 0xe4, 0xe2, 0xe2, 0x20, 0xdd, 0xdc, 0xdc, 0x2d, +0xd3, 0xd4, 0xd4, 0x3f, 0xc6, 0xcb, 0xcc, 0x52, 0xb8, 0xbf, 0xc1, 0x69, +0xa7, 0xb1, 0xb6, 0x81, 0x92, 0xa1, 0xa9, 0x9c, 0x7c, 0x90, 0x9b, 0xb5, +0x64, 0x81, 0x90, 0xce, 0x48, 0x71, 0x85, 0xe4, 0x2d, 0x62, 0x7a, 0xf5, +0x17, 0x5e, 0x7a, 0xff, 0x03, 0x60, 0x80, 0xff, 0x00, 0x71, 0x93, 0xff, +0x09, 0x8f, 0xb5, 0xff, 0x0f, 0x99, 0xc0, 0xff, 0x8b, 0xbb, 0xce, 0xf5, +0xef, 0xf0, 0xf2, 0x71, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfd, 0xfe, 0xff, 0x36, 0xed, 0xf4, 0xfa, 0xb3, +0xbc, 0xda, 0xe6, 0xfd, 0xa7, 0xd8, 0xe2, 0xff, 0xbd, 0xef, 0xf4, 0xff, +0xb3, 0xe6, 0xf2, 0xff, 0x94, 0xc2, 0xd7, 0xff, 0x85, 0xb1, 0xc5, 0xff, +0x82, 0xae, 0xc2, 0xff, 0x6b, 0x8e, 0x9a, 0xff, 0x61, 0x80, 0x89, 0xff, +0x77, 0xa3, 0xb5, 0xff, 0x77, 0xa6, 0xbc, 0xff, 0x4f, 0x91, 0xa6, 0xff, +0x07, 0x63, 0x80, 0xff, 0x02, 0x3c, 0x5f, 0xff, 0x46, 0x61, 0x72, 0xcd, +0x9e, 0xa6, 0xa8, 0x6d, 0xd5, 0xd5, 0xd4, 0x1f, 0xef, 0xee, 0xee, 0x00, +0xf9, 0xf9, 0xf9, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfd, 0xfd, 0xfc, 0x00, 0xf9, 0xf8, 0xf8, 0x00, +0xf2, 0xf1, 0xf1, 0x0e, 0xe4, 0xe3, 0xe4, 0x31, 0xcb, 0xcd, 0xd0, 0x6b, +0xa2, 0xad, 0xb5, 0xae, 0x70, 0x90, 0x9f, 0xe5, 0x3e, 0x80, 0x9a, 0xfe, +0x0a, 0x69, 0x91, 0xff, 0x58, 0x92, 0xae, 0xfe, 0xac, 0xce, 0xdd, 0xfb, +0x9a, 0xd5, 0xe8, 0xff, 0x8f, 0xc2, 0xd8, 0xff, 0x7f, 0xab, 0xc0, 0xff, +0x81, 0xae, 0xc1, 0xff, 0x81, 0xae, 0xc1, 0xff, 0x82, 0xae, 0xc2, 0xff, +0x7d, 0xaa, 0xbd, 0xff, 0x7a, 0xa6, 0xba, 0xff, 0x53, 0x94, 0xac, 0xff, +0x3a, 0x7b, 0x90, 0xff, 0xbe, 0xc4, 0xc8, 0x96, 0xf8, 0xf7, 0xf8, 0x08, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xfe, 0xfe, 0xfd, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xfc, 0xfb, 0xfb, 0x00, +0xfa, 0xfa, 0xf9, 0x00, 0xf8, 0xf7, 0xf6, 0x00, 0xf4, 0xf3, 0xf3, 0x01, +0xf0, 0xee, 0xee, 0x0a, 0xea, 0xe8, 0xe8, 0x15, 0xe1, 0xdf, 0xe0, 0x28, +0xd4, 0xd4, 0xd5, 0x41, 0xc4, 0xc6, 0xc9, 0x5f, 0xac, 0xb3, 0xb8, 0x85, +0x8b, 0x9c, 0xa5, 0xb0, 0x62, 0x85, 0x95, 0xde, 0x33, 0x7a, 0x94, 0xfb, +0x06, 0x83, 0xa5, 0xff, 0x2e, 0x8e, 0xab, 0xff, 0xd2, 0xd8, 0xde, 0xa8, +0xfd, 0xfd, 0xfd, 0x0d, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfd, 0xfe, 0xff, 0x36, +0xec, 0xf4, 0xf9, 0xba, 0xbc, 0xd9, 0xe4, 0xff, 0xb5, 0xdb, 0xe3, 0xff, +0xcc, 0xf0, 0xf4, 0xff, 0xb3, 0xdb, 0xe9, 0xff, 0x96, 0xbb, 0xcc, 0xff, +0x8c, 0xaf, 0xbf, 0xff, 0x8e, 0xb3, 0xc4, 0xff, 0x8e, 0xb3, 0xc5, 0xff, +0x77, 0x95, 0x9f, 0xff, 0x6d, 0x8a, 0x94, 0xff, 0x7b, 0xa1, 0xb3, 0xff, +0x63, 0x9a, 0xad, 0xff, 0x10, 0x60, 0x7c, 0xff, 0x14, 0x46, 0x61, 0xf7, +0x72, 0x82, 0x89, 0xa8, 0xc6, 0xc5, 0xc6, 0x39, 0xea, 0xe9, 0xe9, 0x03, +0xf9, 0xf9, 0xf9, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfd, 0xfd, 0x00, 0xf9, 0xf8, 0xf8, 0x00, 0xef, 0xef, 0xef, 0x17, +0xdc, 0xdc, 0xde, 0x4d, 0xbf, 0xc4, 0xc9, 0x99, 0x98, 0xa8, 0xb6, 0xd4, +0x55, 0x85, 0x9e, 0xf2, 0x78, 0xad, 0xc1, 0xfe, 0xaa, 0xda, 0xe8, 0xff, +0x95, 0xbd, 0xcf, 0xff, 0x8b, 0xb0, 0xc2, 0xff, 0x8d, 0xb2, 0xc3, 0xff, +0x8b, 0xb0, 0xc1, 0xff, 0x8e, 0xb3, 0xc4, 0xff, 0x8c, 0xb1, 0xc3, 0xff, +0x80, 0xa6, 0xb6, 0xff, 0x62, 0x94, 0xa7, 0xff, 0x49, 0x7e, 0x90, 0xff, +0xbf, 0xc5, 0xc9, 0x95, 0xf8, 0xf8, 0xf8, 0x08, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xfe, 0xfe, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xfc, 0xfb, 0xfa, 0x04, +0xf9, 0xf7, 0xf8, 0x16, 0xf2, 0xf2, 0xf4, 0x37, 0xe8, 0xe9, 0xea, 0x6e, +0xd2, 0xd7, 0xdb, 0xbd, 0xa6, 0xba, 0xc8, 0xf7, 0x54, 0x9e, 0xb9, 0xff, +0x2a, 0x84, 0x9f, 0xff, 0xbb, 0xc3, 0xca, 0xad, 0xfa, 0xfa, 0xfa, 0x0f, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xff, 0x2b, 0xee, 0xf5, 0xf9, 0xb2, 0xc2, 0xdb, 0xe5, 0xff, +0xc3, 0xe1, 0xe7, 0xff, 0xd3, 0xef, 0xf3, 0xff, 0xb7, 0xdb, 0xe7, 0xff, +0x9c, 0xba, 0xc8, 0xff, 0x95, 0xb2, 0xbf, 0xff, 0x99, 0xb7, 0xc5, 0xff, +0x99, 0xb7, 0xc4, 0xff, 0x97, 0xb6, 0xc5, 0xff, 0x95, 0xb6, 0xc7, 0xff, +0x8a, 0xac, 0xbd, 0xff, 0x73, 0x9c, 0xad, 0xff, 0x1c, 0x62, 0x7a, 0xff, +0x21, 0x4e, 0x63, 0xf0, 0x90, 0x97, 0x9b, 0x8b, 0xd7, 0xd5, 0xd5, 0x1f, +0xf4, 0xf3, 0xf3, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xfe, 0x00, 0xfc, 0xfb, 0xfb, 0x00, +0xf3, 0xf3, 0xf3, 0x0f, 0xe5, 0xe6, 0xe7, 0x41, 0xd3, 0xd8, 0xdc, 0x9f, +0xa7, 0xc2, 0xcf, 0xf8, 0xa7, 0xd1, 0xdd, 0xff, 0x9c, 0xbe, 0xcc, 0xff, +0x91, 0xb0, 0xbf, 0xff, 0x96, 0xb4, 0xc3, 0xff, 0x98, 0xb7, 0xc4, 0xff, +0x98, 0xb6, 0xc4, 0xff, 0x97, 0xb5, 0xc3, 0xff, 0x89, 0xa8, 0xb5, 0xff, +0x6a, 0x94, 0xa5, 0xff, 0x54, 0x7f, 0x8f, 0xff, 0xc0, 0xc5, 0xca, 0x93, +0xf8, 0xf8, 0xf8, 0x03, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x05, +0xff, 0xff, 0xff, 0x09, 0xff, 0xff, 0xff, 0x0e, 0xff, 0xff, 0xff, 0x15, +0xff, 0xff, 0xff, 0x1c, 0xff, 0xff, 0xff, 0x26, 0xfe, 0xfe, 0xff, 0x32, +0xfd, 0xfe, 0xff, 0x41, 0xfd, 0xfd, 0xff, 0x52, 0xfa, 0xfd, 0xfe, 0x67, +0xf7, 0xfb, 0xfe, 0x80, 0xf2, 0xf8, 0xfb, 0x9a, 0xeb, 0xf3, 0xf8, 0xb7, +0xe0, 0xec, 0xf2, 0xd4, 0xd0, 0xe3, 0xeb, 0xeb, 0xbc, 0xda, 0xe4, 0xfa, +0xa5, 0xd5, 0xe1, 0xff, 0x6b, 0xb1, 0xca, 0xff, 0x5d, 0x8e, 0xa0, 0xfb, +0xc2, 0xc5, 0xc8, 0x80, 0xfa, 0xfa, 0xfa, 0x05, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x17, 0xf4, 0xf8, 0xfb, 0x99, +0xcd, 0xe0, 0xe8, 0xfc, 0xcb, 0xe0, 0xe6, 0xff, 0xdf, 0xf4, 0xf7, 0xff, +0xbf, 0xdc, 0xe8, 0xff, 0x9f, 0xb7, 0xc3, 0xff, 0x9c, 0xb3, 0xbd, 0xff, +0xa1, 0xb9, 0xc4, 0xff, 0xa1, 0xb8, 0xc4, 0xff, 0xa1, 0xb9, 0xc5, 0xff, +0x9c, 0xb5, 0xc0, 0xff, 0x99, 0xb6, 0xc3, 0xff, 0x87, 0xa4, 0xb3, 0xff, +0x34, 0x6c, 0x7d, 0xff, 0x29, 0x56, 0x66, 0xf3, 0x99, 0x9d, 0xa0, 0x85, +0xde, 0xdd, 0xdd, 0x14, 0xf7, 0xf7, 0xf7, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xfe, 0x00, +0xfd, 0xfc, 0xfc, 0x00, 0xf1, 0xf3, 0xf4, 0x57, 0xc6, 0xd7, 0xdf, 0xef, +0xad, 0xce, 0xd7, 0xff, 0xa9, 0xc6, 0xd2, 0xff, 0x99, 0xb2, 0xbd, 0xff, +0x9b, 0xb2, 0xbd, 0xff, 0xa2, 0xba, 0xc5, 0xff, 0xa2, 0xba, 0xc5, 0xff, +0x9a, 0xb1, 0xbc, 0xff, 0x95, 0xaf, 0xbc, 0xff, 0x7c, 0xa0, 0xb0, 0xff, +0x64, 0x85, 0x93, 0xff, 0xbf, 0xc5, 0xc9, 0xa2, 0xf8, 0xf8, 0xf8, 0x27, +0xff, 0xff, 0xff, 0x1e, 0xff, 0xff, 0xff, 0x20, 0xff, 0xff, 0xff, 0x20, +0xfe, 0xff, 0xff, 0x21, 0xff, 0xff, 0xff, 0x22, 0xff, 0xff, 0xff, 0x24, +0xfe, 0xff, 0xff, 0x26, 0xfe, 0xff, 0xff, 0x27, 0xfe, 0xff, 0xff, 0x28, +0xff, 0xff, 0xff, 0x2a, 0xfe, 0xfe, 0xff, 0x2b, 0xfe, 0xfe, 0xff, 0x2d, +0xfe, 0xfe, 0xff, 0x2f, 0xfe, 0xff, 0xff, 0x32, 0xfe, 0xff, 0xff, 0x34, +0xfe, 0xfe, 0xff, 0x37, 0xfd, 0xfe, 0xfe, 0x3b, 0xfd, 0xfe, 0xff, 0x3f, +0xfd, 0xfe, 0xff, 0x43, 0xfc, 0xfe, 0xff, 0x49, 0xfc, 0xfe, 0xff, 0x4d, +0xfc, 0xfd, 0xfe, 0x52, 0xfb, 0xfd, 0xfe, 0x59, 0xfb, 0xfc, 0xfe, 0x60, +0xfa, 0xfc, 0xfd, 0x68, 0xfa, 0xfc, 0xfe, 0x70, 0xf7, 0xfa, 0xfc, 0x79, +0xf6, 0xfa, 0xfc, 0x83, 0xf4, 0xf8, 0xfb, 0x8e, 0xf2, 0xf7, 0xfa, 0x9a, +0xef, 0xf6, 0xf9, 0xa5, 0xed, 0xf4, 0xf8, 0xb2, 0xea, 0xf2, 0xf6, 0xbe, +0xe6, 0xef, 0xf4, 0xcb, 0xe1, 0xed, 0xf3, 0xd7, 0xdf, 0xeb, 0xf1, 0xe2, +0xd9, 0xe6, 0xee, 0xed, 0xd3, 0xe4, 0xeb, 0xf6, 0xce, 0xe1, 0xe8, 0xfe, +0xc7, 0xdd, 0xe4, 0xff, 0xc3, 0xdb, 0xe3, 0xff, 0xc0, 0xdd, 0xe3, 0xff, +0xbc, 0xe0, 0xe6, 0xff, 0xb1, 0xdd, 0xe5, 0xff, 0x86, 0xbc, 0xcc, 0xff, +0x5c, 0x8a, 0x9c, 0xff, 0x92, 0x9d, 0xa4, 0xc0, 0xd8, 0xd9, 0xda, 0x33, +0xfd, 0xfc, 0xfc, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x05, +0xf9, 0xfb, 0xfd, 0x6e, 0xd8, 0xe6, 0xec, 0xf1, 0xcf, 0xe0, 0xe6, 0xff, +0xe7, 0xf3, 0xf5, 0xff, 0xc7, 0xde, 0xe6, 0xff, 0xab, 0xbf, 0xc9, 0xff, +0xa5, 0xb6, 0xbe, 0xff, 0xa6, 0xb6, 0xbf, 0xff, 0xa7, 0xb9, 0xc1, 0xff, +0xac, 0xbe, 0xc6, 0xff, 0xa9, 0xb9, 0xc2, 0xff, 0x9b, 0xad, 0xb6, 0xff, +0x95, 0xab, 0xb5, 0xff, 0x5f, 0x84, 0x92, 0xff, 0x2e, 0x5a, 0x67, 0xfc, +0x91, 0x97, 0x9b, 0x98, 0xdd, 0xdc, 0xdc, 0x18, 0xf8, 0xf8, 0xf8, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xf9, 0xfb, 0xfc, 0x4e, 0xd1, 0xdf, 0xe5, 0xec, 0xbf, 0xdb, 0xe0, 0xff, +0xc0, 0xd8, 0xe4, 0xff, 0xa4, 0xb6, 0xbf, 0xff, 0xa5, 0xb6, 0xbf, 0xff, +0xa0, 0xb1, 0xba, 0xff, 0xa3, 0xb4, 0xbd, 0xff, 0xa1, 0xb3, 0xbb, 0xff, +0xa0, 0xb5, 0xc0, 0xff, 0x96, 0xb1, 0xbf, 0xff, 0x7b, 0x94, 0xa0, 0xff, +0xb7, 0xc3, 0xc9, 0xe6, 0xe5, 0xed, 0xf1, 0xc6, 0xeb, 0xf2, 0xf6, 0xc4, +0xeb, 0xf2, 0xf7, 0xc4, 0xea, 0xf2, 0xf5, 0xc5, 0xea, 0xf1, 0xf6, 0xc6, +0xe9, 0xf1, 0xf5, 0xc7, 0xea, 0xf1, 0xf5, 0xc9, 0xeb, 0xf3, 0xf6, 0xca, +0xe9, 0xf2, 0xf6, 0xcc, 0xe9, 0xf1, 0xf5, 0xce, 0xe9, 0xf0, 0xf5, 0xcf, +0xe7, 0xf0, 0xf4, 0xd1, 0xe7, 0xef, 0xf3, 0xd3, 0xe6, 0xee, 0xf3, 0xd5, +0xe5, 0xee, 0xf3, 0xd7, 0xe5, 0xef, 0xf3, 0xd9, 0xe4, 0xee, 0xf2, 0xdc, +0xe3, 0xed, 0xf1, 0xdf, 0xe3, 0xed, 0xf2, 0xe2, 0xe2, 0xeb, 0xf1, 0xe5, +0xdf, 0xea, 0xef, 0xe8, 0xde, 0xe9, 0xee, 0xeb, 0xdc, 0xe9, 0xee, 0xee, +0xdc, 0xe8, 0xee, 0xf1, 0xda, 0xe7, 0xec, 0xf4, 0xd9, 0xe6, 0xec, 0xf7, +0xd5, 0xe3, 0xe9, 0xfa, 0xd6, 0xe4, 0xea, 0xfc, 0xd3, 0xe1, 0xe8, 0xff, +0xd3, 0xe3, 0xe9, 0xff, 0xd1, 0xe2, 0xe8, 0xff, 0xd1, 0xe1, 0xe7, 0xff, +0xd1, 0xe1, 0xe7, 0xff, 0xd2, 0xe1, 0xe8, 0xff, 0xd1, 0xe1, 0xe7, 0xff, +0xd3, 0xe1, 0xe6, 0xff, 0xcf, 0xdc, 0xe2, 0xff, 0xcf, 0xdb, 0xe1, 0xff, +0xd3, 0xe0, 0xe5, 0xff, 0xd4, 0xe4, 0xe8, 0xff, 0xd4, 0xe6, 0xea, 0xff, +0xd0, 0xe8, 0xec, 0xff, 0xc4, 0xe4, 0xec, 0xff, 0x9e, 0xc7, 0xd5, 0xff, +0x69, 0x96, 0xa7, 0xff, 0x56, 0x77, 0x85, 0xfc, 0x85, 0x90, 0x96, 0xbf, +0xc6, 0xc7, 0xc9, 0x47, 0xf0, 0xf0, 0xf0, 0x03, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x38, 0xe9, 0xf0, 0xf5, 0xd0, +0xce, 0xde, 0xe3, 0xff, 0xed, 0xf2, 0xf3, 0xff, 0xd8, 0xe9, 0xee, 0xff, +0xb0, 0xbe, 0xc6, 0xff, 0xa4, 0xb0, 0xb7, 0xff, 0xa8, 0xb5, 0xbc, 0xff, +0xaf, 0xbc, 0xc3, 0xff, 0x9f, 0xad, 0xb3, 0xff, 0x90, 0x9b, 0xa1, 0xff, +0x9d, 0xa8, 0xae, 0xff, 0xa3, 0xb2, 0xba, 0xff, 0x8c, 0xa2, 0xac, 0xff, +0x43, 0x65, 0x71, 0xff, 0x78, 0x84, 0x89, 0xc3, 0xd3, 0xd3, 0xd3, 0x2e, +0xf7, 0xf6, 0xf6, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfb, 0xfc, 0xfe, 0x50, +0xd6, 0xe1, 0xe7, 0xec, 0xc3, 0xd5, 0xd9, 0xff, 0xc2, 0xd3, 0xdb, 0xff, +0xab, 0xb8, 0xc0, 0xff, 0xac, 0xb9, 0xc0, 0xff, 0x9c, 0xa7, 0xae, 0xff, +0xa5, 0xb2, 0xb9, 0xff, 0xa8, 0xb6, 0xbc, 0xff, 0xa7, 0xb6, 0xbe, 0xff, +0xaa, 0xbd, 0xc7, 0xff, 0xad, 0xc1, 0xcb, 0xff, 0xc7, 0xd5, 0xda, 0xff, +0xd1, 0xdb, 0xe0, 0xff, 0xd1, 0xdd, 0xe2, 0xff, 0xd3, 0xde, 0xe3, 0xff, +0xd3, 0xde, 0xe4, 0xff, 0xcd, 0xd9, 0xde, 0xff, 0xce, 0xd9, 0xde, 0xff, +0xd0, 0xdb, 0xe1, 0xff, 0xd0, 0xdb, 0xe0, 0xff, 0xd0, 0xda, 0xe0, 0xff, +0xd0, 0xdb, 0xdf, 0xff, 0xd0, 0xdb, 0xdf, 0xff, 0xcf, 0xda, 0xdf, 0xff, +0xd0, 0xda, 0xdf, 0xff, 0xd0, 0xda, 0xe0, 0xff, 0xd2, 0xdd, 0xe2, 0xff, +0xd4, 0xdf, 0xe4, 0xff, 0xd0, 0xdb, 0xdf, 0xff, 0xd6, 0xe0, 0xe5, 0xff, +0xdc, 0xe5, 0xea, 0xff, 0xd7, 0xe1, 0xe5, 0xff, 0xd9, 0xe3, 0xe7, 0xff, +0xd9, 0xe2, 0xe6, 0xff, 0xd8, 0xe1, 0xe5, 0xff, 0xd9, 0xe1, 0xe5, 0xff, +0xdd, 0xe6, 0xe9, 0xff, 0xdf, 0xe8, 0xec, 0xff, 0xe1, 0xe8, 0xeb, 0xff, +0xe6, 0xed, 0xf0, 0xff, 0xe5, 0xeb, 0xee, 0xff, 0xe5, 0xec, 0xef, 0xff, +0xe7, 0xed, 0xef, 0xff, 0xe6, 0xed, 0xef, 0xff, 0xe4, 0xeb, 0xed, 0xff, +0xe5, 0xeb, 0xee, 0xff, 0xe0, 0xe8, 0xeb, 0xff, 0xde, 0xe9, 0xec, 0xff, +0xd9, 0xe5, 0xe9, 0xff, 0xd3, 0xe3, 0xe8, 0xff, 0xcd, 0xe1, 0xe7, 0xff, +0xba, 0xd0, 0xd8, 0xff, 0xa5, 0xc2, 0xcd, 0xff, 0x7f, 0xa0, 0xac, 0xff, +0x56, 0x7e, 0x8c, 0xff, 0x44, 0x68, 0x76, 0xff, 0x60, 0x73, 0x7a, 0xde, +0x97, 0x9b, 0x9e, 0x8e, 0xcc, 0xcc, 0xcd, 0x30, 0xef, 0xee, 0xee, 0x01, +0xfc, 0xfc, 0xfc, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0a, +0xf7, 0xfa, 0xfc, 0x8c, 0xd8, 0xe3, 0xe8, 0xfd, 0xe4, 0xe9, 0xec, 0xff, +0xe9, 0xf1, 0xf3, 0xff, 0xc0, 0xcc, 0xd2, 0xff, 0x9c, 0xa5, 0xab, 0xff, +0x9b, 0xa3, 0xaa, 0xff, 0xa8, 0xb0, 0xb6, 0xff, 0xaa, 0xb4, 0xba, 0xff, +0x7a, 0x7f, 0x82, 0xff, 0x4e, 0x4a, 0x44, 0xff, 0x88, 0x8f, 0x91, 0xff, +0xa7, 0xb3, 0xbb, 0xff, 0x75, 0x89, 0x93, 0xff, 0x5f, 0x6f, 0x77, 0xf1, +0xba, 0xbc, 0xbd, 0x66, 0xf1, 0xf1, 0xf0, 0x01, 0xfe, 0xfd, 0xfe, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfb, 0xfd, 0xfe, 0x50, 0xd9, 0xe3, 0xe7, 0xec, +0xc6, 0xd1, 0xd5, 0xff, 0xb8, 0xc2, 0xc8, 0xff, 0xb0, 0xb9, 0xbe, 0xff, +0x96, 0x9e, 0xa4, 0xff, 0x93, 0x9b, 0xa1, 0xff, 0xa0, 0xa9, 0xaf, 0xff, +0xa8, 0xb2, 0xb7, 0xff, 0xb0, 0xba, 0xc0, 0xff, 0xad, 0xb8, 0xbf, 0xff, +0xc9, 0xd8, 0xdf, 0xff, 0xe3, 0xec, 0xef, 0xff, 0xde, 0xe3, 0xe5, 0xff, +0xdd, 0xe2, 0xe4, 0xff, 0xd7, 0xdd, 0xdf, 0xff, 0xdb, 0xe1, 0xe4, 0xff, +0xdc, 0xe2, 0xe5, 0xff, 0xdc, 0xe2, 0xe4, 0xff, 0xdd, 0xe2, 0xe5, 0xff, +0xdd, 0xe1, 0xe5, 0xff, 0xdb, 0xe0, 0xe3, 0xff, 0xe0, 0xe6, 0xe9, 0xff, +0xe1, 0xe7, 0xea, 0xff, 0xdd, 0xe3, 0xe5, 0xff, 0xde, 0xe3, 0xe6, 0xff, +0xdd, 0xe3, 0xe6, 0xff, 0xe3, 0xe9, 0xeb, 0xff, 0xdd, 0xe3, 0xe5, 0xff, +0xd9, 0xe0, 0xe3, 0xff, 0xe0, 0xe7, 0xe9, 0xff, 0xdd, 0xe3, 0xe6, 0xff, +0xd4, 0xd9, 0xdc, 0xff, 0xdd, 0xe3, 0xe5, 0xff, 0xda, 0xe0, 0xe4, 0xff, +0xd3, 0xd9, 0xdd, 0xff, 0xd5, 0xdc, 0xde, 0xff, 0xd1, 0xd8, 0xdb, 0xff, +0xd5, 0xdd, 0xe1, 0xff, 0xd5, 0xde, 0xe2, 0xff, 0xd1, 0xda, 0xdf, 0xff, +0xcb, 0xd5, 0xd9, 0xff, 0xc5, 0xd0, 0xd4, 0xff, 0xba, 0xc7, 0xcb, 0xff, +0xbb, 0xc7, 0xcd, 0xff, 0xb8, 0xc4, 0xcb, 0xff, 0xb1, 0xbd, 0xc2, 0xff, +0xb0, 0xbe, 0xc5, 0xff, 0xa3, 0xb4, 0xbc, 0xff, 0xa0, 0xb3, 0xbd, 0xff, +0x8a, 0xa0, 0xaa, 0xff, 0x74, 0x8d, 0x97, 0xff, 0x5a, 0x77, 0x82, 0xff, +0x44, 0x63, 0x6e, 0xff, 0x49, 0x63, 0x6c, 0xf4, 0x65, 0x75, 0x7b, 0xcf, +0x93, 0x97, 0x9b, 0x8f, 0xbf, 0xc0, 0xc0, 0x43, 0xe1, 0xe1, 0xe1, 0x0d, +0xf6, 0xf5, 0xf5, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x2d, 0xeb, 0xf1, 0xf4, 0xd4, +0xdc, 0xe2, 0xe6, 0xff, 0xf2, 0xf4, 0xf6, 0xff, 0xd6, 0xdf, 0xe2, 0xff, +0x90, 0x94, 0x98, 0xff, 0x69, 0x6a, 0x6b, 0xff, 0x6e, 0x70, 0x74, 0xff, +0x6a, 0x6d, 0x70, 0xff, 0x5e, 0x5e, 0x60, 0xff, 0x4f, 0x4b, 0x47, 0xff, +0x64, 0x63, 0x62, 0xff, 0xa9, 0xb2, 0xb7, 0xff, 0x97, 0xa2, 0xa7, 0xff, +0x69, 0x77, 0x7e, 0xff, 0x8f, 0x95, 0x99, 0xbe, 0xe0, 0xe0, 0xe0, 0x20, +0xfc, 0xfb, 0xfc, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfb, 0xfd, 0xfe, 0x50, 0xdd, 0xe5, 0xe8, 0xec, 0xcc, 0xd3, 0xd6, 0xff, +0xc1, 0xc9, 0xcd, 0xff, 0xa0, 0xa5, 0xa7, 0xff, 0x57, 0x55, 0x54, 0xff, +0x9b, 0xa1, 0xa6, 0xff, 0x95, 0x9a, 0x9f, 0xff, 0xb0, 0xb6, 0xba, 0xff, +0xa6, 0xab, 0xaf, 0xff, 0x9c, 0xa0, 0xa3, 0xff, 0xa1, 0xa7, 0xaa, 0xff, +0xaf, 0xb7, 0xba, 0xff, 0xb8, 0xc0, 0xc3, 0xff, 0xbb, 0xc2, 0xc5, 0xff, +0xbd, 0xc5, 0xc8, 0xff, 0xbf, 0xc8, 0xcc, 0xff, 0xc2, 0xcb, 0xd0, 0xff, +0xc2, 0xca, 0xce, 0xff, 0xb8, 0xbf, 0xc2, 0xff, 0xa9, 0xad, 0xb0, 0xff, +0xaf, 0xb5, 0xb8, 0xff, 0xa6, 0xac, 0xad, 0xff, 0xa3, 0xa8, 0xab, 0xff, +0xb1, 0xb8, 0xbc, 0xff, 0xb7, 0xc0, 0xc3, 0xff, 0xb5, 0xbc, 0xc1, 0xff, +0x9b, 0xa0, 0xa4, 0xff, 0xa0, 0xa6, 0xa9, 0xff, 0xad, 0xb6, 0xba, 0xff, +0xb4, 0xbc, 0xc0, 0xff, 0xb5, 0xbe, 0xc2, 0xff, 0xaf, 0xb8, 0xbc, 0xff, +0xa7, 0xaf, 0xb4, 0xff, 0x96, 0x9b, 0x9f, 0xff, 0x8d, 0x92, 0x95, 0xff, +0x93, 0x99, 0x9e, 0xff, 0x8e, 0x95, 0x9a, 0xff, 0x94, 0x9c, 0xa1, 0xff, +0x9f, 0xa9, 0xad, 0xff, 0xa8, 0xb0, 0xb6, 0xff, 0x9c, 0xa5, 0xab, 0xff, +0x9a, 0xa5, 0xab, 0xff, 0x92, 0x9d, 0xa4, 0xff, 0x87, 0x93, 0x9a, 0xff, +0x8e, 0x9c, 0xa3, 0xff, 0x72, 0x7f, 0x86, 0xff, 0x6d, 0x7e, 0x86, 0xff, +0x5b, 0x6f, 0x78, 0xff, 0x56, 0x6b, 0x74, 0xff, 0x4d, 0x62, 0x6a, 0xfe, +0x55, 0x67, 0x6d, 0xed, 0x6b, 0x77, 0x7d, 0xcd, 0x8b, 0x91, 0x94, 0x9e, +0xae, 0xaf, 0xb1, 0x65, 0xcd, 0xcd, 0xcd, 0x2f, 0xe5, 0xe5, 0xe5, 0x09, +0xf4, 0xf4, 0xf3, 0x00, 0xfb, 0xfb, 0xfb, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfe, 0xfe, 0x57, 0xe1, 0xe7, 0xea, 0xfb, 0xde, 0xe0, 0xe3, 0xff, +0xe0, 0xe3, 0xe6, 0xff, 0x93, 0x95, 0x96, 0xff, 0x30, 0x2b, 0x28, 0xff, +0x5e, 0x5f, 0x60, 0xff, 0x62, 0x64, 0x66, 0xff, 0x46, 0x44, 0x43, 0xff, +0x31, 0x2a, 0x25, 0xff, 0x46, 0x42, 0x3f, 0xff, 0x7d, 0x7d, 0x7f, 0xff, +0xb8, 0xbf, 0xc2, 0xff, 0x8a, 0x91, 0x95, 0xff, 0x73, 0x7b, 0x7f, 0xfc, +0xba, 0xbb, 0xbd, 0x80, 0xf2, 0xf2, 0xf2, 0x03, 0xfe, 0xfe, 0xfe, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfc, 0xfc, 0xfd, 0x50, +0xe2, 0xe6, 0xea, 0xec, 0xcc, 0xd0, 0xd2, 0xff, 0xcc, 0xd2, 0xd5, 0xff, +0x5a, 0x59, 0x5a, 0xff, 0x14, 0x0b, 0x05, 0xff, 0x62, 0x61, 0x61, 0xff, +0x5e, 0x5e, 0x5e, 0xff, 0x5d, 0x5c, 0x5c, 0xff, 0x39, 0x35, 0x32, 0xff, +0x43, 0x3f, 0x3c, 0xff, 0x4b, 0x49, 0x47, 0xff, 0x49, 0x46, 0x46, 0xff, +0x62, 0x62, 0x62, 0xff, 0x5c, 0x5b, 0x5c, 0xff, 0x72, 0x74, 0x77, 0xff, +0x83, 0x85, 0x86, 0xff, 0x73, 0x75, 0x77, 0xff, 0x6e, 0x6e, 0x70, 0xff, +0x57, 0x56, 0x56, 0xff, 0x4e, 0x4b, 0x48, 0xff, 0x41, 0x3e, 0x3c, 0xff, +0x52, 0x4f, 0x4d, 0xff, 0x65, 0x63, 0x62, 0xff, 0x66, 0x66, 0x67, 0xff, +0x75, 0x77, 0x79, 0xff, 0x8f, 0x92, 0x96, 0xff, 0x6e, 0x70, 0x72, 0xff, +0x7f, 0x82, 0x84, 0xff, 0x87, 0x8b, 0x8e, 0xff, 0x88, 0x8c, 0x8e, 0xff, +0x92, 0x98, 0x9c, 0xff, 0x9d, 0xa2, 0xa6, 0xff, 0xa1, 0xa6, 0xaa, 0xff, +0x84, 0x88, 0x8a, 0xff, 0x87, 0x8c, 0x8f, 0xff, 0x8e, 0x95, 0x99, 0xff, +0x79, 0x80, 0x84, 0xff, 0x87, 0x8f, 0x94, 0xff, 0x83, 0x8d, 0x92, 0xff, +0x80, 0x8b, 0x90, 0xff, 0x79, 0x85, 0x8b, 0xff, 0x65, 0x72, 0x79, 0xff, +0x5f, 0x6b, 0x72, 0xff, 0x5f, 0x6d, 0x73, 0xff, 0x5d, 0x6a, 0x70, 0xfd, +0x62, 0x6d, 0x73, 0xf3, 0x68, 0x72, 0x76, 0xe1, 0x76, 0x7e, 0x82, 0xc7, +0x8a, 0x90, 0x93, 0xa5, 0xa4, 0xa6, 0xa8, 0x7b, 0xbc, 0xbd, 0xbd, 0x50, +0xd3, 0xd2, 0xd2, 0x29, 0xe4, 0xe3, 0xe3, 0x0c, 0xf1, 0xf0, 0xf0, 0x00, +0xf9, 0xf9, 0xf9, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xf9, 0xfb, 0xfc, 0x74, +0xd9, 0xdd, 0xe0, 0xff, 0xdb, 0xdc, 0xde, 0xff, 0xbe, 0xc0, 0xc2, 0xff, +0x54, 0x53, 0x52, 0xff, 0x46, 0x46, 0x44, 0xff, 0x52, 0x54, 0x53, 0xff, +0x54, 0x54, 0x54, 0xff, 0x55, 0x56, 0x55, 0xff, 0x56, 0x55, 0x53, 0xff, +0x47, 0x45, 0x44, 0xff, 0x63, 0x63, 0x63, 0xff, 0xa6, 0xa9, 0xac, 0xff, +0x85, 0x8b, 0x8f, 0xff, 0x88, 0x8c, 0x8f, 0xee, 0xd4, 0xd5, 0xd5, 0x52, +0xfa, 0xfa, 0xf9, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfc, 0xfd, 0xfd, 0x50, 0xe3, 0xe6, 0xe9, 0xec, +0xd1, 0xd4, 0xd6, 0xff, 0xd3, 0xd7, 0xd9, 0xff, 0x61, 0x61, 0x62, 0xff, +0x33, 0x33, 0x31, 0xff, 0x4c, 0x4b, 0x47, 0xff, 0x56, 0x57, 0x56, 0xff, +0x44, 0x44, 0x43, 0xff, 0x55, 0x55, 0x54, 0xff, 0x8f, 0x91, 0x93, 0xff, +0x88, 0x8b, 0x8d, 0xff, 0x90, 0x93, 0x95, 0xff, 0x6c, 0x6d, 0x6f, 0xff, +0x4b, 0x4d, 0x4e, 0xff, 0x55, 0x58, 0x5a, 0xff, 0x5b, 0x5b, 0x5c, 0xff, +0x5b, 0x5d, 0x5d, 0xff, 0x72, 0x74, 0x74, 0xff, 0x8b, 0x8f, 0x92, 0xff, +0x79, 0x7c, 0x7d, 0xff, 0x73, 0x77, 0x7a, 0xff, 0x7a, 0x7f, 0x82, 0xff, +0x9b, 0xa1, 0xa4, 0xff, 0x8e, 0x94, 0x97, 0xff, 0x86, 0x8b, 0x8e, 0xff, +0x94, 0x99, 0x9d, 0xff, 0x91, 0x97, 0x9a, 0xff, 0x8c, 0x92, 0x95, 0xff, +0x8a, 0x90, 0x94, 0xff, 0x85, 0x8b, 0x8f, 0xff, 0x76, 0x7b, 0x7f, 0xff, +0x74, 0x7a, 0x7e, 0xff, 0x72, 0x78, 0x7d, 0xff, 0x74, 0x7d, 0x80, 0xff, +0x69, 0x73, 0x77, 0xff, 0x62, 0x6b, 0x70, 0xff, 0x58, 0x61, 0x66, 0xff, +0x60, 0x69, 0x6f, 0xff, 0x63, 0x6b, 0x70, 0xf9, 0x67, 0x6f, 0x73, 0xf0, +0x6e, 0x75, 0x79, 0xe2, 0x78, 0x7f, 0x82, 0xd0, 0x85, 0x8a, 0x8c, 0xb9, +0x94, 0x98, 0x99, 0x9e, 0xa5, 0xa7, 0xa8, 0x80, 0xb7, 0xb8, 0xb8, 0x5f, +0xc7, 0xc7, 0xc7, 0x3f, 0xd7, 0xd6, 0xd6, 0x23, 0xe4, 0xe3, 0xe3, 0x0e, +0xee, 0xed, 0xed, 0x01, 0xf5, 0xf5, 0xf5, 0x00, 0xfa, 0xfa, 0xfa, 0x00, +0xfd, 0xfd, 0xfd, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xf6, 0xf7, 0xf8, 0x82, 0xd7, 0xda, 0xdc, 0xff, +0xe0, 0xe0, 0xe1, 0xff, 0xbe, 0xbf, 0xbf, 0xff, 0xac, 0xad, 0xad, 0xff, +0xb6, 0xb8, 0xb8, 0xff, 0xad, 0xae, 0xae, 0xff, 0xb0, 0xb0, 0xb0, 0xff, +0xb2, 0xb2, 0xb2, 0xff, 0xb4, 0xb5, 0xb5, 0xff, 0xae, 0xaf, 0xaf, 0xff, +0xab, 0xac, 0xab, 0xff, 0xb2, 0xb4, 0xb5, 0xff, 0x8a, 0x8e, 0x91, 0xff, +0x9a, 0x9c, 0x9e, 0xdd, 0xe2, 0xe2, 0xe2, 0x39, 0xfc, 0xfc, 0xfc, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfd, 0xfe, 0x50, 0xe4, 0xe7, 0xe9, 0xec, 0xcc, 0xce, 0xd0, 0xff, +0xcf, 0xd0, 0xd1, 0xff, 0xb0, 0xb1, 0xb1, 0xff, 0xab, 0xac, 0xab, 0xff, +0xb2, 0xb4, 0xb3, 0xff, 0xb2, 0xb3, 0xb2, 0xff, 0xab, 0xad, 0xad, 0xff, +0xaf, 0xb1, 0xb2, 0xff, 0xb8, 0xba, 0xba, 0xff, 0x9b, 0x9e, 0xa0, 0xff, +0x8a, 0x8e, 0x90, 0xff, 0x80, 0x84, 0x87, 0xff, 0x72, 0x77, 0x7a, 0xff, +0x4f, 0x54, 0x57, 0xff, 0x66, 0x6b, 0x6d, 0xff, 0x75, 0x7a, 0x7d, 0xff, +0x7a, 0x80, 0x84, 0xff, 0x77, 0x7c, 0x80, 0xff, 0x73, 0x79, 0x7d, 0xff, +0x72, 0x78, 0x7c, 0xff, 0x72, 0x76, 0x7a, 0xff, 0x6b, 0x71, 0x74, 0xff, +0x6e, 0x73, 0x77, 0xff, 0x6b, 0x71, 0x75, 0xff, 0x68, 0x6e, 0x72, 0xff, +0x68, 0x6e, 0x72, 0xfe, 0x68, 0x6e, 0x71, 0xfb, 0x69, 0x6e, 0x71, 0xf8, +0x6d, 0x72, 0x76, 0xf3, 0x71, 0x75, 0x79, 0xec, 0x76, 0x7a, 0x7c, 0xe4, +0x79, 0x7d, 0x80, 0xd9, 0x80, 0x84, 0x86, 0xcc, 0x88, 0x8b, 0x8e, 0xbd, +0x92, 0x95, 0x96, 0xad, 0x9d, 0x9f, 0xa0, 0x9a, 0xa5, 0xa7, 0xa9, 0x86, +0xb1, 0xb2, 0xb3, 0x6f, 0xbd, 0xbd, 0xbe, 0x58, 0xc8, 0xc8, 0xc9, 0x41, +0xd4, 0xd3, 0xd4, 0x2b, 0xdd, 0xdd, 0xdd, 0x1a, 0xe6, 0xe6, 0xe6, 0x0b, +0xed, 0xed, 0xec, 0x02, 0xf3, 0xf3, 0xf3, 0x00, 0xf7, 0xf7, 0xf7, 0x00, +0xfb, 0xfb, 0xfb, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xf4, 0xf5, 0xf6, 0x86, 0xda, 0xdb, 0xdb, 0xff, 0xc7, 0xc7, 0xc5, 0xff, +0xad, 0xaa, 0xa0, 0xff, 0xac, 0xa5, 0x8f, 0xff, 0xae, 0xa6, 0x8d, 0xff, +0xad, 0xa5, 0x8c, 0xff, 0xab, 0xa3, 0x8a, 0xff, 0xac, 0xa4, 0x8b, 0xff, +0xad, 0xa5, 0x8c, 0xff, 0xaa, 0xa4, 0x8e, 0xff, 0xa6, 0xa1, 0x98, 0xff, +0xa4, 0xa4, 0xa1, 0xff, 0x91, 0x94, 0x93, 0xff, 0xa9, 0xaa, 0xab, 0xd5, +0xe9, 0xea, 0xea, 0x2f, 0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfd, 0xfd, 0xfd, 0x50, +0xe9, 0xea, 0xea, 0xec, 0xd5, 0xd5, 0xd5, 0xff, 0xbd, 0xbc, 0xb7, 0xff, +0xa8, 0xa3, 0x96, 0xff, 0xad, 0xa6, 0x90, 0xff, 0xac, 0xa4, 0x8c, 0xff, +0xac, 0xa6, 0x8c, 0xff, 0xab, 0xa5, 0x8e, 0xff, 0xa9, 0xa4, 0x96, 0xff, +0xa5, 0xa4, 0x9e, 0xff, 0x9e, 0x9e, 0x9c, 0xff, 0x88, 0x8a, 0x8a, 0xff, +0x87, 0x89, 0x8b, 0xfe, 0x8a, 0x8c, 0x8f, 0xf1, 0x8c, 0x8f, 0x91, 0xd9, +0x89, 0x8c, 0x8e, 0xc9, 0x88, 0x8b, 0x8d, 0xc6, 0x89, 0x8b, 0x8d, 0xc6, +0x8b, 0x8d, 0x8f, 0xc2, 0x8e, 0x8f, 0x92, 0xbd, 0x91, 0x93, 0x94, 0xb8, +0x94, 0x96, 0x97, 0xb1, 0x97, 0x9a, 0x9b, 0xaa, 0x9b, 0x9c, 0x9e, 0xa1, +0x9f, 0xa1, 0xa2, 0x98, 0xa6, 0xa7, 0xa8, 0x8d, 0xab, 0xab, 0xad, 0x83, +0xb1, 0xb1, 0xb2, 0x77, 0xb7, 0xb8, 0xb9, 0x6b, 0xbd, 0xbe, 0xbf, 0x5d, +0xc4, 0xc4, 0xc4, 0x4f, 0xca, 0xca, 0xca, 0x42, 0xd1, 0xd1, 0xd1, 0x34, +0xd7, 0xd7, 0xd7, 0x27, 0xde, 0xde, 0xdd, 0x1b, 0xe4, 0xe4, 0xe3, 0x11, +0xe8, 0xe8, 0xe8, 0x09, 0xed, 0xec, 0xed, 0x03, 0xf1, 0xf1, 0xf1, 0x00, +0xf6, 0xf5, 0xf5, 0x00, 0xf8, 0xf8, 0xf8, 0x00, 0xfb, 0xfb, 0xfb, 0x00, +0xfd, 0xfc, 0xfd, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xf4, 0xf4, 0xf4, 0x86, +0xcd, 0xcd, 0xcb, 0xff, 0xc8, 0xc1, 0xae, 0xff, 0xb3, 0xa1, 0x59, 0xff, +0xa4, 0x8b, 0x22, 0xff, 0xa4, 0x88, 0x1a, 0xff, 0xa5, 0x8a, 0x1b, 0xff, +0xa4, 0x89, 0x1c, 0xff, 0xa2, 0x88, 0x19, 0xff, 0xa2, 0x88, 0x1b, 0xff, +0xa3, 0x89, 0x20, 0xff, 0xab, 0x96, 0x43, 0xff, 0xa8, 0x9f, 0x7f, 0xff, +0x8a, 0x88, 0x82, 0xff, 0xad, 0xae, 0xad, 0xd9, 0xec, 0xec, 0xec, 0x33, +0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x50, 0xe4, 0xe5, 0xe4, 0xec, +0xcc, 0xca, 0xc3, 0xff, 0xc8, 0xbc, 0x99, 0xff, 0xad, 0x97, 0x3e, 0xff, +0xa3, 0x8a, 0x20, 0xff, 0xa4, 0x8a, 0x1d, 0xff, 0xa2, 0x88, 0x1c, 0xff, +0xa4, 0x8a, 0x1f, 0xff, 0xa7, 0x90, 0x2d, 0xff, 0xab, 0x99, 0x52, 0xff, +0xb7, 0xac, 0x86, 0xff, 0xca, 0xc3, 0xb2, 0xff, 0xc9, 0xc5, 0xba, 0xff, +0xc6, 0xc5, 0xbe, 0xf8, 0xcf, 0xcf, 0xce, 0xcf, 0xd7, 0xd7, 0xd8, 0x81, +0xdb, 0xdb, 0xdb, 0x3c, 0xdc, 0xdc, 0xdd, 0x20, 0xde, 0xde, 0xde, 0x1b, +0xe0, 0xe0, 0xe0, 0x1b, 0xe1, 0xe1, 0xe1, 0x17, 0xe4, 0xe3, 0xe3, 0x14, +0xe6, 0xe6, 0xe5, 0x0f, 0xe7, 0xe8, 0xe8, 0x0c, 0xea, 0xea, 0xea, 0x08, +0xed, 0xec, 0xec, 0x05, 0xef, 0xee, 0xee, 0x02, 0xf1, 0xf0, 0xf0, 0x00, +0xf3, 0xf3, 0xf3, 0x00, 0xf5, 0xf5, 0xf5, 0x00, 0xf7, 0xf7, 0xf7, 0x00, +0xf8, 0xf8, 0xf8, 0x00, 0xfa, 0xfa, 0xfa, 0x00, 0xfb, 0xfb, 0xfb, 0x00, +0xfc, 0xfc, 0xfc, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xff, 0xff, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xf2, 0xf3, 0xf2, 0x81, 0xcf, 0xca, 0xbd, 0xff, +0xcd, 0xba, 0x79, 0xff, 0xa5, 0x84, 0x02, 0xff, 0x9b, 0x73, 0x00, 0xff, +0x9c, 0x75, 0x00, 0xff, 0x9d, 0x76, 0x00, 0xff, 0x9b, 0x75, 0x00, 0xff, +0x9b, 0x73, 0x00, 0xff, 0x9a, 0x72, 0x00, 0xff, 0x99, 0x71, 0x00, 0xff, +0x9d, 0x7a, 0x00, 0xff, 0xa4, 0x8e, 0x22, 0xff, 0x97, 0x8b, 0x60, 0xff, +0xaa, 0xa8, 0xa2, 0xe7, 0xeb, 0xeb, 0xeb, 0x49, 0xfe, 0xfe, 0xfe, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfd, 0xfd, 0x50, 0xe3, 0xe1, 0xdb, 0xec, 0xdb, 0xcf, 0xaf, 0xff, +0xc2, 0xa8, 0x3f, 0xff, 0xa0, 0x7d, 0x00, 0xff, 0x9a, 0x74, 0x00, 0xff, +0x9b, 0x74, 0x00, 0xff, 0x9b, 0x73, 0x00, 0xff, 0x9d, 0x75, 0x00, 0xff, +0x9a, 0x74, 0x00, 0xff, 0x9f, 0x7c, 0x00, 0xff, 0xaa, 0x8d, 0x13, 0xff, +0xc0, 0xa8, 0x45, 0xff, 0xd8, 0xc5, 0x82, 0xff, 0xdd, 0xce, 0xa3, 0xff, +0xd4, 0xca, 0xb1, 0xff, 0xdc, 0xd7, 0xce, 0xe8, 0xef, 0xee, 0xf0, 0xa0, +0xf9, 0xf9, 0xf9, 0x42, 0xfc, 0xfc, 0xfc, 0x06, 0xfd, 0xfd, 0xfd, 0x00, +0xfd, 0xfd, 0xfd, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xf4, 0xf4, 0xf5, 0x73, 0xcc, 0xbf, 0x9b, 0xff, 0xc0, 0xa5, 0x28, 0xff, +0xac, 0x86, 0x00, 0xff, 0xa6, 0x7d, 0x00, 0xff, 0xa6, 0x7f, 0x01, 0xff, +0xa6, 0x7f, 0x01, 0xff, 0xa8, 0x81, 0x01, 0xff, 0xa6, 0x7e, 0x01, 0xff, +0xa6, 0x7d, 0x01, 0xff, 0xa6, 0x7d, 0x01, 0xff, 0xa5, 0x7e, 0x01, 0xff, +0xa3, 0x81, 0x00, 0xff, 0x98, 0x7f, 0x09, 0xff, 0x9f, 0x94, 0x6b, 0xfa, +0xe2, 0xe1, 0xe2, 0x78, 0xfd, 0xfd, 0xfd, 0x01, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfb, 0xfb, 0xfc, 0x50, +0xde, 0xd7, 0xc5, 0xec, 0xd0, 0xb7, 0x51, 0xff, 0xbb, 0x98, 0x03, 0xff, +0xa5, 0x7d, 0x00, 0xff, 0xa6, 0x7e, 0x01, 0xff, 0xa6, 0x7e, 0x00, 0xff, +0xa6, 0x7d, 0x01, 0xff, 0xa7, 0x7f, 0x01, 0xff, 0xa5, 0x7d, 0x01, 0xff, +0xa4, 0x7d, 0x00, 0xff, 0xa3, 0x7d, 0x00, 0xff, 0xa6, 0x83, 0x00, 0xff, +0xb2, 0x91, 0x03, 0xff, 0xc7, 0xaa, 0x26, 0xff, 0xd5, 0xbc, 0x4c, 0xff, +0xd3, 0xbc, 0x65, 0xff, 0xd0, 0xc0, 0x81, 0xff, 0xe0, 0xd9, 0xc5, 0xdf, +0xf4, 0xf2, 0xf1, 0x8d, 0xfd, 0xfd, 0xfc, 0x32, 0xff, 0xff, 0xff, 0x03, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xf7, 0xf7, 0xfa, 0x59, +0xc6, 0xb8, 0x84, 0xfc, 0xb8, 0x95, 0x00, 0xff, 0xb3, 0x8e, 0x00, 0xff, +0xb0, 0x88, 0x01, 0xff, 0xb1, 0x8b, 0x01, 0xff, 0xb1, 0x89, 0x01, 0xff, +0xab, 0x86, 0x01, 0xff, 0xb0, 0x89, 0x01, 0xff, 0xb2, 0x8b, 0x01, 0xff, +0xb2, 0x8b, 0x01, 0xff, 0xb1, 0x89, 0x01, 0xff, 0xad, 0x87, 0x01, 0xff, +0xa0, 0x7d, 0x00, 0xff, 0x97, 0x7d, 0x21, 0xff, 0xcf, 0xca, 0xbd, 0xba, +0xf9, 0xf9, 0xf9, 0x1f, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfb, 0xfa, 0xfc, 0x50, 0xd8, 0xcc, 0xa5, 0xec, +0xcd, 0xaa, 0x00, 0xff, 0xc1, 0x9b, 0x00, 0xff, 0xb0, 0x89, 0x00, 0xff, +0xaf, 0x88, 0x01, 0xff, 0xb0, 0x89, 0x01, 0xff, 0xb0, 0x89, 0x01, 0xff, +0xaf, 0x88, 0x01, 0xff, 0xb1, 0x8a, 0x01, 0xff, 0xb3, 0x8c, 0x01, 0xff, +0xb2, 0x8b, 0x00, 0xff, 0xb1, 0x8b, 0x01, 0xff, 0xaf, 0x89, 0x00, 0xff, +0xb2, 0x8e, 0x00, 0xff, 0xbd, 0x9a, 0x00, 0xff, 0xcb, 0xab, 0x06, 0xff, +0xd1, 0xb0, 0x00, 0xff, 0xcb, 0xac, 0x1e, 0xff, 0xd0, 0xbc, 0x7a, 0xfd, +0xe5, 0xde, 0xd0, 0xcc, 0xf7, 0xf6, 0xf4, 0x71, 0xfe, 0xfe, 0xfd, 0x23, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfb, 0xfb, 0xfc, 0x33, 0xd3, 0xc9, 0xaf, 0xdd, +0xb1, 0x8d, 0x0d, 0xff, 0xbd, 0x95, 0x00, 0xff, 0xb9, 0x92, 0x01, 0xff, +0xb2, 0x8d, 0x01, 0xff, 0xb0, 0x8b, 0x01, 0xff, 0xa3, 0x83, 0x01, 0xff, +0xaf, 0x8c, 0x01, 0xff, 0xb1, 0x8c, 0x01, 0xff, 0xb4, 0x8f, 0x01, 0xff, +0xaf, 0x8b, 0x01, 0xff, 0xb4, 0x8e, 0x01, 0xff, 0xb0, 0x8b, 0x00, 0xff, +0xa4, 0x7f, 0x00, 0xff, 0xb8, 0xa7, 0x72, 0xf2, 0xee, 0xec, 0xeb, 0x6e, +0xfe, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfa, 0xf9, 0xfa, 0x50, 0xd9, 0xca, 0x9c, 0xec, 0xd5, 0xae, 0x00, 0xff, +0xcf, 0xa6, 0x00, 0xff, 0xb8, 0x94, 0x01, 0xff, 0xb7, 0x92, 0x01, 0xff, +0xb9, 0x94, 0x01, 0xff, 0xb9, 0x94, 0x01, 0xff, 0xb7, 0x93, 0x01, 0xff, +0xb3, 0x8e, 0x01, 0xff, 0xaf, 0x8c, 0x01, 0xff, 0xa6, 0x86, 0x01, 0xff, +0xaa, 0x89, 0x01, 0xff, 0xb2, 0x8f, 0x01, 0xff, 0xb7, 0x93, 0x01, 0xff, +0xbc, 0x97, 0x00, 0xff, 0xbf, 0x9b, 0x00, 0xff, 0xca, 0xa5, 0x00, 0xff, +0xd8, 0xaf, 0x00, 0xff, 0xd8, 0xaf, 0x00, 0xff, 0xce, 0xae, 0x2e, 0xff, +0xd7, 0xc6, 0x91, 0xf5, 0xed, 0xe6, 0xdc, 0xb9, 0xfa, 0xf9, 0xf8, 0x5e, +0xfe, 0xff, 0xfe, 0x17, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xff, 0xfe, 0x0e, 0xe7, 0xe4, 0xdc, 0x9c, 0xb8, 0x9d, 0x47, 0xff, +0xba, 0x91, 0x00, 0xff, 0xbf, 0x9a, 0x01, 0xff, 0xb9, 0x96, 0x01, 0xff, +0xb9, 0x97, 0x01, 0xff, 0xb8, 0x97, 0x01, 0xff, 0xb6, 0x94, 0x01, 0xff, +0xb4, 0x92, 0x01, 0xff, 0xb7, 0x95, 0x01, 0xff, 0xb2, 0x91, 0x01, 0xff, +0xb1, 0x8f, 0x01, 0xff, 0xbb, 0x97, 0x01, 0xff, 0xbc, 0x96, 0x00, 0xff, +0xb4, 0x94, 0x1a, 0xff, 0xd6, 0xcc, 0xb1, 0xd6, 0xf7, 0xf7, 0xf6, 0x49, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfa, 0xfa, 0xfa, 0x50, +0xde, 0xce, 0x9b, 0xec, 0xde, 0xb7, 0x01, 0xff, 0xd1, 0xad, 0x00, 0xff, +0xbb, 0x9a, 0x01, 0xff, 0xbe, 0x9b, 0x01, 0xff, 0xbc, 0x9b, 0x01, 0xff, +0xb6, 0x96, 0x01, 0xff, 0xba, 0x98, 0x00, 0xff, 0xac, 0x8c, 0x00, 0xff, +0x91, 0x7a, 0x01, 0xff, 0x93, 0x7d, 0x01, 0xff, 0x9a, 0x82, 0x01, 0xff, +0x96, 0x7f, 0x01, 0xff, 0x99, 0x81, 0x01, 0xff, 0x9f, 0x85, 0x01, 0xff, +0xab, 0x8e, 0x01, 0xff, 0xbd, 0x9c, 0x01, 0xff, 0xc6, 0xa2, 0x01, 0xff, +0xd5, 0xb0, 0x00, 0xff, 0xe1, 0xb8, 0x00, 0xff, 0xdc, 0xb5, 0x01, 0xff, +0xd6, 0xba, 0x40, 0xff, 0xdf, 0xd0, 0xa0, 0xee, 0xf1, 0xec, 0xe2, 0xac, +0xfb, 0xfa, 0xf8, 0x53, 0xff, 0xff, 0xfe, 0x13, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xf6, 0xf6, 0xf5, 0x49, 0xcf, 0xc3, 0x9e, 0xe1, 0xb7, 0x92, 0x09, 0xff, +0xc1, 0x9d, 0x00, 0xff, 0xbb, 0x9c, 0x01, 0xff, 0xc1, 0xa2, 0x01, 0xff, +0xc1, 0xa2, 0x01, 0xff, 0xbe, 0x9f, 0x01, 0xff, 0xc2, 0xa3, 0x01, 0xff, +0xc2, 0xa3, 0x01, 0xff, 0xbe, 0x9e, 0x01, 0xff, 0xbc, 0x9c, 0x01, 0xff, +0xbc, 0x9c, 0x01, 0xff, 0xc2, 0xa0, 0x00, 0xff, 0xc7, 0xa2, 0x00, 0xff, +0xc4, 0xa9, 0x3e, 0xff, 0xe4, 0xdd, 0xcb, 0xc6, 0xfb, 0xf9, 0xf7, 0x43, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfb, 0xfb, 0xfa, 0x4f, 0xe2, 0xd2, 0x9c, 0xec, +0xde, 0xbd, 0x01, 0xff, 0xd0, 0xb0, 0x00, 0xff, 0xbd, 0x9f, 0x01, 0xff, +0xbe, 0x9f, 0x01, 0xff, 0xb7, 0x9a, 0x01, 0xff, 0xaf, 0x93, 0x01, 0xff, +0xbc, 0x9c, 0x01, 0xff, 0xbd, 0x9e, 0x01, 0xff, 0x9d, 0x84, 0x01, 0xff, +0x9b, 0x83, 0x01, 0xff, 0x90, 0x7c, 0x01, 0xff, 0x83, 0x72, 0x01, 0xff, +0x9a, 0x84, 0x01, 0xff, 0x91, 0x7e, 0x01, 0xff, 0x96, 0x81, 0x01, 0xff, +0xa8, 0x8e, 0x01, 0xff, 0xb7, 0x9a, 0x01, 0xff, 0xbe, 0xa0, 0x01, 0xff, +0xcb, 0xab, 0x01, 0xff, 0xde, 0xbc, 0x00, 0xff, 0xe5, 0xc3, 0x00, 0xff, +0xd9, 0xbb, 0x07, 0xff, 0xd7, 0xc0, 0x4e, 0xff, 0xe5, 0xd8, 0xaf, 0xe9, +0xf5, 0xef, 0xe8, 0xa1, 0xfc, 0xfb, 0xf9, 0x48, 0xfe, 0xff, 0xff, 0x0d, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfd, 0xfd, 0xfd, 0x0d, +0xea, 0xe6, 0xdf, 0x8d, 0xbd, 0xa7, 0x59, 0xfc, 0xb4, 0x91, 0x00, 0xff, +0xbd, 0x9f, 0x00, 0xff, 0xc2, 0xa6, 0x01, 0xff, 0xc1, 0xa5, 0x01, 0xff, +0xc1, 0xa6, 0x01, 0xff, 0xc2, 0xa7, 0x00, 0xff, 0xc0, 0xa5, 0x01, 0xff, +0xbe, 0xa3, 0x01, 0xff, 0xbf, 0xa3, 0x01, 0xff, 0xbe, 0xa3, 0x01, 0xff, +0xbb, 0x9f, 0x01, 0xff, 0xca, 0xac, 0x00, 0xff, 0xcf, 0xae, 0x00, 0xff, +0xce, 0xb6, 0x4d, 0xff, 0xe9, 0xe0, 0xce, 0xcb, 0xfa, 0xf9, 0xf6, 0x55, +0xff, 0xff, 0xff, 0x09, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfb, 0xfb, 0xfa, 0x51, 0xe4, 0xd5, 0x9d, 0xee, 0xdc, 0xc1, 0x01, 0xff, +0xd5, 0xb7, 0x00, 0xff, 0xbb, 0xa2, 0x01, 0xff, 0xc0, 0xa6, 0x01, 0xff, +0xc4, 0xa8, 0x00, 0xff, 0xc4, 0xa8, 0x01, 0xff, 0xc2, 0xa6, 0x01, 0xff, +0xb8, 0x9d, 0x01, 0xff, 0xb8, 0x99, 0x01, 0xff, 0x9a, 0x79, 0x01, 0xff, +0x7f, 0x64, 0x00, 0xff, 0x9e, 0x82, 0x00, 0xff, 0xbd, 0x9d, 0x01, 0xff, +0xba, 0x9d, 0x01, 0xff, 0xb4, 0x9a, 0x01, 0xff, 0xbc, 0xa0, 0x01, 0xff, +0xbd, 0xa2, 0x01, 0xff, 0xbf, 0xa3, 0x01, 0xff, 0xbf, 0xa5, 0x01, 0xff, +0xbf, 0xa5, 0x01, 0xff, 0xd2, 0xb4, 0x01, 0xff, 0xe6, 0xc7, 0x00, 0xff, +0xe6, 0xc9, 0x00, 0xff, 0xdc, 0xc3, 0x10, 0xff, 0xda, 0xc6, 0x60, 0xff, +0xe9, 0xdd, 0xbc, 0xe0, 0xf7, 0xf3, 0xed, 0x95, 0xfd, 0xfc, 0xfb, 0x3f, +0xff, 0xff, 0xff, 0x0a, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xf9, 0xf8, 0xf7, 0x2d, +0xdb, 0xd4, 0xbf, 0xbd, 0xaf, 0x96, 0x2d, 0xff, 0xb6, 0x98, 0x00, 0xff, +0xc3, 0xa7, 0x01, 0xff, 0xc5, 0xaa, 0x01, 0xff, 0xc0, 0xa8, 0x00, 0xff, +0xc1, 0xaa, 0x00, 0xff, 0xbe, 0xa8, 0x00, 0xff, 0xb9, 0xa4, 0x00, 0xff, +0xba, 0xa4, 0x00, 0xff, 0xb9, 0xa5, 0x00, 0xff, 0xb2, 0x9d, 0x00, 0xff, +0xc2, 0xa9, 0x00, 0xff, 0xd5, 0xb8, 0x00, 0xff, 0xdc, 0xbf, 0x00, 0xff, +0xd5, 0xbf, 0x3f, 0xff, 0xe6, 0xdc, 0xbc, 0xe0, 0xf8, 0xf5, 0xf1, 0x7f, +0xfe, 0xfe, 0xfc, 0x22, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x08, 0xff, 0xff, 0xfd, 0x2c, 0xfe, 0xfb, 0xf7, 0x8c, +0xe5, 0xd7, 0x97, 0xf6, 0xde, 0xc9, 0x00, 0xff, 0xde, 0xc2, 0x00, 0xff, +0xbe, 0xa7, 0x00, 0xff, 0xbd, 0xa8, 0x00, 0xff, 0xbf, 0xa7, 0x00, 0xff, +0xc1, 0xa9, 0x00, 0xff, 0xb8, 0xa3, 0x00, 0xff, 0xb9, 0xa0, 0x00, 0xff, +0xad, 0x93, 0x01, 0xff, 0x7b, 0x56, 0x00, 0xff, 0x72, 0x4f, 0x00, 0xff, +0x93, 0x73, 0x00, 0xff, 0xac, 0x8c, 0x00, 0xff, 0xa4, 0x8b, 0x00, 0xff, +0xb0, 0x96, 0x01, 0xff, 0xbc, 0xa2, 0x01, 0xff, 0xc4, 0xab, 0x01, 0xff, +0xc5, 0xac, 0x01, 0xff, 0xc2, 0xaa, 0x00, 0xff, 0xba, 0xa5, 0x00, 0xff, +0xb7, 0xa2, 0x00, 0xff, 0xc8, 0xb0, 0x00, 0xff, 0xdb, 0xbf, 0x00, 0xff, +0xe8, 0xcd, 0x00, 0xff, 0xe5, 0xcf, 0x00, 0xff, 0xdd, 0xc9, 0x1a, 0xff, +0xdf, 0xcf, 0x6c, 0xff, 0xec, 0xe3, 0xc4, 0xd9, 0xf8, 0xf5, 0xf0, 0x8b, +0xfe, 0xfd, 0xfc, 0x36, 0xff, 0xff, 0xff, 0x06, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x01, 0xf4, 0xf3, 0xf0, 0x4a, +0xcf, 0xc5, 0xa5, 0xd4, 0xa9, 0x91, 0x1c, 0xff, 0xb7, 0x9c, 0x00, 0xff, +0xbf, 0xa7, 0x00, 0xff, 0xbc, 0xa7, 0x04, 0xff, 0xc5, 0xaf, 0x0f, 0xff, +0xc4, 0xaf, 0x15, 0xff, 0xb9, 0xa6, 0x13, 0xff, 0xb6, 0xa5, 0x13, 0xff, +0xb8, 0xa7, 0x15, 0xff, 0xb2, 0xa1, 0x0d, 0xff, 0xbf, 0xab, 0x10, 0xff, +0xcc, 0xb5, 0x0d, 0xff, 0xdb, 0xc3, 0x11, 0xff, 0xe5, 0xcd, 0x14, 0xff, +0xda, 0xc7, 0x30, 0xff, 0xe0, 0xd2, 0x90, 0xf8, 0xf1, 0xeb, 0xdd, 0xb7, +0xfc, 0xfa, 0xf7, 0x5c, 0xff, 0xfe, 0xfe, 0x19, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x13, 0xff, 0xfe, 0xfc, 0x43, 0xfe, 0xfa, 0xf6, 0x88, +0xf7, 0xf0, 0xdd, 0xc5, 0xdc, 0xcb, 0x96, 0xea, 0xd1, 0xbb, 0x49, 0xfe, +0xe9, 0xd9, 0x16, 0xff, 0xde, 0xc6, 0x17, 0xff, 0xbf, 0xab, 0x13, 0xff, +0xb7, 0xa6, 0x16, 0xff, 0xb4, 0xa2, 0x10, 0xff, 0xb6, 0xa5, 0x11, 0xff, +0xbb, 0xa8, 0x10, 0xff, 0xc3, 0xac, 0x02, 0xff, 0xb2, 0x98, 0x00, 0xff, +0x88, 0x70, 0x05, 0xfe, 0x9a, 0x8e, 0x54, 0xdb, 0x9e, 0x90, 0x56, 0xdf, +0x8c, 0x75, 0x17, 0xff, 0x8b, 0x70, 0x00, 0xff, 0xa1, 0x86, 0x00, 0xff, +0xb8, 0x9f, 0x00, 0xff, 0xbf, 0xa9, 0x01, 0xff, 0xb1, 0x9c, 0x01, 0xff, +0xbe, 0xa9, 0x06, 0xff, 0xc3, 0xae, 0x0e, 0xff, 0xbf, 0xab, 0x14, 0xff, +0xbb, 0xa9, 0x12, 0xff, 0xc1, 0xad, 0x13, 0xff, 0xce, 0xb7, 0x18, 0xff, +0xe0, 0xc8, 0x23, 0xff, 0xeb, 0xd5, 0x28, 0xff, 0xe7, 0xd6, 0x24, 0xff, +0xdf, 0xcf, 0x37, 0xff, 0xe1, 0xd4, 0x80, 0xfd, 0xef, 0xe6, 0xcd, 0xd1, +0xf9, 0xf6, 0xf1, 0x83, 0xfe, 0xfd, 0xfc, 0x33, 0xff, 0xff, 0xff, 0x06, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfd, 0xfe, 0xfd, 0x05, 0xef, 0xed, 0xea, 0x59, +0xc6, 0xbc, 0x98, 0xda, 0xa3, 0x8d, 0x1c, 0xff, 0xa9, 0x92, 0x00, 0xff, +0xb8, 0xa6, 0x0a, 0xff, 0xc9, 0xb5, 0x39, 0xff, 0xc4, 0xb2, 0x48, 0xff, +0xc0, 0xb0, 0x4d, 0xff, 0xbe, 0xaf, 0x52, 0xff, 0xbc, 0xad, 0x50, 0xff, +0xb9, 0xaa, 0x4d, 0xff, 0xb8, 0xa9, 0x4a, 0xff, 0xbc, 0xac, 0x47, 0xff, +0xc2, 0xb1, 0x44, 0xff, 0xd8, 0xc3, 0x52, 0xff, 0xe7, 0xd3, 0x50, 0xff, +0xe3, 0xd3, 0x48, 0xff, 0xdd, 0xd0, 0x73, 0xff, 0xe7, 0xdf, 0xb7, 0xec, +0xf5, 0xf0, 0xe3, 0xb0, 0xfc, 0xfa, 0xf6, 0x64, 0xff, 0xfe, 0xfd, 0x27, +0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0c, +0xff, 0xfe, 0xfd, 0x30, 0xfe, 0xfc, 0xf9, 0x67, 0xfb, 0xf6, 0xeb, 0xa8, +0xf3, 0xea, 0xc8, 0xdf, 0xe7, 0xd8, 0x83, 0xfc, 0xc8, 0xac, 0x2d, 0xff, +0xaf, 0x91, 0x24, 0xff, 0xce, 0xbc, 0x60, 0xfe, 0xe8, 0xd7, 0x44, 0xff, +0xdf, 0xc9, 0x58, 0xff, 0xc3, 0xb3, 0x53, 0xff, 0xb8, 0xaa, 0x52, 0xff, +0xb6, 0xa8, 0x4c, 0xff, 0xba, 0xab, 0x4e, 0xff, 0xb8, 0xa8, 0x48, 0xff, +0xc2, 0xaf, 0x2b, 0xff, 0xb7, 0xa0, 0x01, 0xff, 0x93, 0x80, 0x17, 0xff, +0xbf, 0xba, 0xac, 0x9f, 0xdb, 0xda, 0xd9, 0x4e, 0xc4, 0xc0, 0xac, 0x99, +0xa1, 0x95, 0x5f, 0xe1, 0x8e, 0x7a, 0x1b, 0xff, 0x94, 0x7c, 0x00, 0xff, +0xaa, 0x92, 0x00, 0xff, 0xae, 0x98, 0x00, 0xff, 0xb2, 0x9e, 0x09, 0xff, +0xb0, 0x9d, 0x1e, 0xff, 0xb9, 0xa7, 0x3b, 0xff, 0xc2, 0xb0, 0x4a, 0xff, +0xb3, 0xa4, 0x45, 0xff, 0xbd, 0xad, 0x4e, 0xff, 0xba, 0xab, 0x47, 0xff, +0xca, 0xb7, 0x50, 0xff, 0xe1, 0xcc, 0x60, 0xff, 0xeb, 0xdb, 0x61, 0xff, +0xe8, 0xdd, 0x56, 0xff, 0xdf, 0xd4, 0x65, 0xff, 0xe3, 0xd8, 0x9b, 0xfb, +0xef, 0xe8, 0xd2, 0xcf, 0xf9, 0xf7, 0xf0, 0x81, 0xfe, 0xfd, 0xfc, 0x33, +0xff, 0xff, 0xff, 0x06, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfc, 0xfc, 0xfc, 0x06, 0xec, 0xeb, 0xe8, 0x59, +0xc4, 0xbc, 0x9e, 0xd4, 0x9d, 0x8b, 0x2a, 0xff, 0xa2, 0x8f, 0x00, 0xff, +0xbc, 0xaa, 0x2d, 0xff, 0xc3, 0xb3, 0x61, 0xff, 0xc5, 0xb5, 0x6b, 0xff, +0xc3, 0xb6, 0x71, 0xff, 0xc5, 0xb7, 0x75, 0xff, 0xc7, 0xb9, 0x76, 0xff, +0xc1, 0xb4, 0x73, 0xff, 0xb2, 0xa7, 0x6a, 0xff, 0xb9, 0xad, 0x6b, 0xff, +0xc9, 0xba, 0x70, 0xff, 0xd4, 0xc3, 0x73, 0xff, 0xe6, 0xd4, 0x7c, 0xff, +0xec, 0xe2, 0x7c, 0xff, 0xe2, 0xdc, 0x7c, 0xff, 0xe1, 0xd8, 0x95, 0xff, +0xe8, 0xe0, 0xb9, 0xf2, 0xf2, 0xed, 0xdb, 0xc7, 0xfa, 0xf6, 0xef, 0x8b, +0xfd, 0xfc, 0xfa, 0x50, 0xff, 0xfe, 0xfe, 0x24, 0xff, 0xff, 0xff, 0x0a, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x14, 0xff, 0xfe, 0xfc, 0x36, +0xfe, 0xfc, 0xf8, 0x65, 0xfc, 0xf8, 0xee, 0x9d, 0xf5, 0xf0, 0xda, 0xd1, +0xec, 0xe3, 0xb5, 0xf4, 0xe3, 0xd8, 0x7d, 0xff, 0xdf, 0xd4, 0x2c, 0xff, +0xd2, 0xbd, 0x00, 0xff, 0xb0, 0x97, 0x17, 0xff, 0xb9, 0xad, 0x84, 0xed, +0xca, 0xbe, 0x87, 0xf6, 0xe6, 0xd9, 0x6d, 0xff, 0xdf, 0xce, 0x79, 0xff, +0xc1, 0xb4, 0x6f, 0xff, 0xbd, 0xb1, 0x72, 0xff, 0xbf, 0xb2, 0x73, 0xff, +0xbf, 0xb2, 0x71, 0xff, 0xb5, 0xa9, 0x67, 0xff, 0xc4, 0xb3, 0x64, 0xff, +0xb1, 0x9e, 0x18, 0xff, 0x91, 0x81, 0x1e, 0xff, 0xc9, 0xc5, 0xba, 0x94, +0xf4, 0xf5, 0xf5, 0x04, 0xf4, 0xf4, 0xf4, 0x0d, 0xe2, 0xe2, 0xdf, 0x47, +0xc5, 0xc1, 0xb2, 0x96, 0xa2, 0x99, 0x6b, 0xda, 0x8c, 0x7b, 0x27, 0xfd, +0x8c, 0x78, 0x01, 0xff, 0xa2, 0x8d, 0x00, 0xff, 0xac, 0x9a, 0x0e, 0xff, +0xad, 0x9e, 0x35, 0xff, 0xb1, 0xa1, 0x50, 0xff, 0xa2, 0x96, 0x50, 0xff, +0xc0, 0xb1, 0x6a, 0xff, 0xc2, 0xb3, 0x6c, 0xff, 0xb9, 0xad, 0x6a, 0xff, +0xc3, 0xb5, 0x6f, 0xff, 0xd2, 0xc2, 0x75, 0xff, 0xe4, 0xd3, 0x81, 0xff, +0xeb, 0xe0, 0x80, 0xff, 0xe6, 0xde, 0x78, 0xff, 0xdf, 0xd6, 0x81, 0xff, +0xe3, 0xd9, 0xa8, 0xfb, 0xef, 0xe9, 0xd5, 0xcf, 0xf9, 0xf7, 0xf0, 0x82, +0xfe, 0xfd, 0xfc, 0x35, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfb, 0xfc, 0xfc, 0x05, 0xed, 0xec, 0xea, 0x4a, +0xc9, 0xc3, 0xb1, 0xbf, 0x9d, 0x90, 0x48, 0xfd, 0x96, 0x86, 0x09, 0xff, +0xb0, 0xa0, 0x3b, 0xff, 0xc2, 0xb4, 0x6f, 0xff, 0xc2, 0xb6, 0x7a, 0xff, +0xc2, 0xb7, 0x80, 0xff, 0xbd, 0xb1, 0x7e, 0xff, 0xc2, 0xb7, 0x84, 0xff, +0xc3, 0xb7, 0x85, 0xff, 0xba, 0xb0, 0x7f, 0xff, 0xb8, 0xad, 0x7c, 0xff, +0xc4, 0xb8, 0x83, 0xff, 0xcb, 0xbf, 0x86, 0xff, 0xdb, 0xcd, 0x90, 0xff, +0xed, 0xe2, 0x9c, 0xff, 0xed, 0xe7, 0x9c, 0xff, 0xe6, 0xe1, 0x98, 0xff, +0xe1, 0xda, 0x9e, 0xff, 0xe5, 0xde, 0xb1, 0xfe, 0xec, 0xe5, 0xc9, 0xea, +0xf3, 0xef, 0xdf, 0xc6, 0xf9, 0xf7, 0xee, 0x99, 0xfc, 0xfb, 0xf6, 0x6b, +0xfe, 0xfd, 0xfb, 0x44, 0xff, 0xff, 0xfe, 0x26, 0xff, 0xff, 0xff, 0x12, +0xff, 0xff, 0xff, 0x06, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x02, 0xff, 0xff, 0xff, 0x0b, 0xff, 0xff, 0xfe, 0x1b, +0xff, 0xff, 0xfe, 0x35, 0xff, 0xfd, 0xfa, 0x58, 0xfd, 0xfb, 0xf4, 0x83, +0xfa, 0xf6, 0xea, 0xb0, 0xf5, 0xef, 0xda, 0xd8, 0xed, 0xe6, 0xc2, 0xf4, +0xe5, 0xdc, 0xa7, 0xff, 0xe1, 0xd9, 0x93, 0xff, 0xe3, 0xdd, 0x85, 0xff, +0xe8, 0xdf, 0x66, 0xff, 0xcc, 0xbb, 0x10, 0xff, 0xa0, 0x8c, 0x12, 0xff, +0x9e, 0x95, 0x74, 0xd1, 0xc2, 0xbe, 0xb5, 0x9e, 0xd7, 0xce, 0xa7, 0xeb, +0xe6, 0xde, 0x8b, 0xff, 0xe2, 0xd5, 0x90, 0xff, 0xc1, 0xb6, 0x82, 0xff, +0xb9, 0xb0, 0x80, 0xff, 0xb8, 0xae, 0x80, 0xff, 0xb1, 0xa8, 0x7b, 0xff, +0xbf, 0xb4, 0x81, 0xff, 0xc7, 0xba, 0x7f, 0xff, 0xb5, 0xa4, 0x46, 0xff, +0x94, 0x86, 0x2a, 0xff, 0xc9, 0xc6, 0xbc, 0x96, 0xf8, 0xf7, 0xf9, 0x07, +0xfe, 0xff, 0xff, 0x00, 0xfc, 0xfc, 0xfd, 0x00, 0xf4, 0xf5, 0xf5, 0x0d, +0xe5, 0xe3, 0xe3, 0x3d, 0xca, 0xc6, 0xbc, 0x87, 0xa8, 0xa1, 0x80, 0xcd, +0x8e, 0x82, 0x3c, 0xf7, 0x8d, 0x7c, 0x0e, 0xff, 0x98, 0x87, 0x06, 0xff, +0x9e, 0x8f, 0x22, 0xff, 0xa7, 0x98, 0x4b, 0xff, 0xae, 0xa0, 0x63, 0xff, +0xc1, 0xb4, 0x77, 0xff, 0xbd, 0xb1, 0x7a, 0xff, 0xb2, 0xa9, 0x77, 0xff, +0xbd, 0xb1, 0x7e, 0xff, 0xc3, 0xb8, 0x82, 0xff, 0xcf, 0xc3, 0x89, 0xff, +0xe6, 0xda, 0x97, 0xff, 0xee, 0xe5, 0x99, 0xff, 0xe7, 0xe1, 0x92, 0xff, +0xdf, 0xd7, 0x96, 0xff, 0xe3, 0xdc, 0xb2, 0xfb, 0xef, 0xea, 0xd7, 0xd2, +0xf9, 0xf7, 0xf1, 0x89, 0xfd, 0xfd, 0xfb, 0x3c, 0xff, 0xff, 0xff, 0x0c, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfc, 0xfd, 0xfd, 0x01, 0xf1, 0xf1, 0xee, 0x30, +0xd3, 0xd0, 0xc8, 0x99, 0xa7, 0x9f, 0x75, 0xec, 0x93, 0x85, 0x29, 0xff, +0xa1, 0x93, 0x39, 0xff, 0xb7, 0xab, 0x6d, 0xff, 0xba, 0xaf, 0x7f, 0xff, +0x9b, 0x93, 0x71, 0xff, 0xba, 0xb1, 0x88, 0xff, 0xb3, 0xab, 0x86, 0xff, +0xbe, 0xb6, 0x90, 0xff, 0xbd, 0xb6, 0x90, 0xff, 0xbd, 0xb5, 0x91, 0xff, +0xbf, 0xb7, 0x93, 0xff, 0xb8, 0xb1, 0x8e, 0xff, 0xca, 0xc0, 0x97, 0xff, +0xde, 0xd3, 0xa3, 0xff, 0xea, 0xe2, 0xad, 0xff, 0xf1, 0xec, 0xb6, 0xff, +0xec, 0xea, 0xb3, 0xff, 0xe7, 0xe3, 0xb0, 0xff, 0xe2, 0xdd, 0xb0, 0xff, +0xe4, 0xde, 0xb9, 0xff, 0xe9, 0xe3, 0xc6, 0xf7, 0xef, 0xea, 0xd4, 0xe4, +0xf4, 0xf1, 0xe1, 0xca, 0xf8, 0xf6, 0xeb, 0xad, 0xfa, 0xf9, 0xf2, 0x90, +0xfc, 0xfc, 0xf6, 0x76, 0xfe, 0xfd, 0xf9, 0x60, 0xfe, 0xfd, 0xfb, 0x4e, +0xfe, 0xfe, 0xfc, 0x40, 0xff, 0xff, 0xfd, 0x36, 0xff, 0xff, 0xfe, 0x2f, +0xff, 0xff, 0xfe, 0x2c, 0xff, 0xfe, 0xfe, 0x29, 0xff, 0xff, 0xfe, 0x2a, +0xff, 0xff, 0xfe, 0x2f, 0xff, 0xff, 0xfd, 0x36, 0xff, 0xfe, 0xfc, 0x41, +0xfe, 0xfe, 0xfb, 0x52, 0xfe, 0xfd, 0xf8, 0x66, 0xfd, 0xfb, 0xf5, 0x80, +0xfa, 0xf8, 0xef, 0x9e, 0xf8, 0xf5, 0xe8, 0xbc, 0xf3, 0xf0, 0xdd, 0xd8, +0xed, 0xe8, 0xd0, 0xef, 0xe9, 0xe3, 0xc1, 0xfe, 0xe5, 0xde, 0xb6, 0xff, +0xe3, 0xdd, 0xaf, 0xff, 0xe6, 0xe2, 0xab, 0xff, 0xe9, 0xe5, 0xa8, 0xff, +0xed, 0xe7, 0x9f, 0xff, 0xd3, 0xc8, 0x6b, 0xff, 0xa8, 0x97, 0x1c, 0xff, +0x83, 0x74, 0x1b, 0xfb, 0x92, 0x8b, 0x72, 0xbd, 0xc1, 0xc0, 0xbe, 0x46, +0xe6, 0xe5, 0xe2, 0x57, 0xe4, 0xdd, 0xbe, 0xeb, 0xe4, 0xde, 0x9d, 0xff, +0xe1, 0xd6, 0xa2, 0xff, 0xc0, 0xb8, 0x91, 0xff, 0xba, 0xb3, 0x90, 0xff, +0xbf, 0xb7, 0x94, 0xff, 0xb6, 0xaf, 0x8e, 0xff, 0xba, 0xb2, 0x8e, 0xff, +0xc8, 0xbe, 0x91, 0xff, 0xb9, 0xac, 0x6b, 0xff, 0x96, 0x8b, 0x46, 0xff, +0xc9, 0xc6, 0xbd, 0x96, 0xf7, 0xf7, 0xf8, 0x08, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfc, 0xfc, 0xfd, 0x00, +0xf5, 0xf6, 0xf6, 0x07, 0xe8, 0xe8, 0xe8, 0x2e, 0xd0, 0xce, 0xca, 0x73, +0xb0, 0xab, 0x96, 0xbb, 0x95, 0x8c, 0x59, 0xec, 0x88, 0x7b, 0x24, 0xff, +0x8f, 0x80, 0x16, 0xff, 0x9a, 0x8d, 0x33, 0xff, 0xab, 0x9f, 0x5c, 0xff, +0xaa, 0x9f, 0x6f, 0xff, 0xa2, 0x98, 0x71, 0xff, 0xad, 0xa4, 0x7d, 0xff, +0xb4, 0xab, 0x85, 0xff, 0xb8, 0xb1, 0x8c, 0xff, 0xc1, 0xb9, 0x92, 0xff, +0xd6, 0xcc, 0xa0, 0xff, 0xeb, 0xe0, 0xac, 0xff, 0xee, 0xe8, 0xad, 0xff, +0xe7, 0xe4, 0xa7, 0xff, 0xe0, 0xdb, 0xa9, 0xff, 0xe4, 0xdd, 0xbc, 0xfd, +0xee, 0xea, 0xd8, 0xd9, 0xf9, 0xf6, 0xef, 0x94, 0xfd, 0xfd, 0xfb, 0x46, +0xff, 0xff, 0xff, 0x10, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfd, 0xfd, 0xfe, 0x00, 0xf6, 0xf6, 0xf6, 0x13, +0xe2, 0xe1, 0xde, 0x5d, 0xbd, 0xb8, 0xa8, 0xbc, 0x98, 0x8f, 0x5c, 0xf6, +0x8d, 0x83, 0x3d, 0xff, 0x9b, 0x90, 0x53, 0xff, 0xa5, 0x9c, 0x6f, 0xff, +0xb4, 0xac, 0x88, 0xff, 0xb7, 0xb0, 0x90, 0xff, 0xba, 0xb4, 0x96, 0xff, +0xbf, 0xb9, 0x9c, 0xff, 0xc2, 0xbc, 0xa0, 0xff, 0xbe, 0xb8, 0x9e, 0xff, +0xbb, 0xb6, 0x9e, 0xff, 0xb8, 0xb3, 0x9c, 0xff, 0xc1, 0xba, 0xa0, 0xff, +0xc6, 0xbf, 0xa3, 0xff, 0xd9, 0xd1, 0xb1, 0xff, 0xe8, 0xe1, 0xbe, 0xff, +0xee, 0xe9, 0xc5, 0xff, 0xf0, 0xec, 0xc9, 0xff, 0xef, 0xed, 0xca, 0xff, +0xec, 0xe9, 0xc7, 0xff, 0xe8, 0xe4, 0xc5, 0xff, 0xe5, 0xe1, 0xc3, 0xff, +0xe5, 0xe1, 0xc7, 0xff, 0xe8, 0xe4, 0xcc, 0xff, 0xe9, 0xe5, 0xce, 0xfb, +0xeb, 0xe6, 0xd2, 0xf4, 0xed, 0xe9, 0xd6, 0xec, 0xf0, 0xed, 0xdc, 0xe3, +0xf3, 0xef, 0xe0, 0xdc, 0xf3, 0xef, 0xe1, 0xd6, 0xf3, 0xf0, 0xe2, 0xd3, +0xf4, 0xf0, 0xe3, 0xd1, 0xf3, 0xf0, 0xe3, 0xd2, 0xf4, 0xf1, 0xe2, 0xd5, +0xf3, 0xf0, 0xe0, 0xdc, 0xf1, 0xed, 0xdc, 0xe4, 0xed, 0xe8, 0xd5, 0xed, +0xec, 0xe7, 0xd1, 0xf6, 0xea, 0xe5, 0xcc, 0xfe, 0xea, 0xe4, 0xca, 0xff, +0xe8, 0xe3, 0xc8, 0xff, 0xe6, 0xe1, 0xc5, 0xff, 0xe4, 0xe0, 0xc4, 0xff, +0xe6, 0xe3, 0xc3, 0xff, 0xea, 0xe7, 0xc4, 0xff, 0xe7, 0xe3, 0xbd, 0xff, +0xda, 0xd4, 0xa7, 0xff, 0xc2, 0xb8, 0x75, 0xff, 0x9a, 0x8d, 0x31, 0xff, +0x78, 0x6b, 0x13, 0xff, 0x7a, 0x73, 0x45, 0xdc, 0xa1, 0x9e, 0x96, 0x86, +0xcf, 0xcf, 0xce, 0x2a, 0xef, 0xef, 0xef, 0x00, 0xf8, 0xf8, 0xf5, 0x4e, +0xe7, 0xe2, 0xca, 0xec, 0xe5, 0xe1, 0xb2, 0xff, 0xe4, 0xdb, 0xb4, 0xff, +0xc3, 0xbc, 0xa0, 0xff, 0xb5, 0xb1, 0x9a, 0xff, 0xc1, 0xbb, 0xa3, 0xff, +0xbf, 0xba, 0xa2, 0xff, 0xb7, 0xb2, 0x9b, 0xff, 0xc2, 0xbb, 0x9c, 0xff, +0xb9, 0xaf, 0x80, 0xff, 0x97, 0x8e, 0x60, 0xff, 0xc9, 0xc7, 0xbe, 0x96, +0xf7, 0xf7, 0xf8, 0x08, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfe, 0xfe, 0x00, 0xf8, 0xf8, 0xf8, 0x02, 0xed, 0xed, 0xed, 0x1e, +0xdb, 0xd9, 0xd8, 0x54, 0xbf, 0xbc, 0xb4, 0x96, 0xa2, 0x9d, 0x80, 0xd2, +0x8c, 0x84, 0x4a, 0xf6, 0x86, 0x7b, 0x33, 0xff, 0x8e, 0x83, 0x3e, 0xff, +0xa2, 0x98, 0x5e, 0xff, 0xa5, 0x9d, 0x72, 0xff, 0x8a, 0x83, 0x65, 0xff, +0xbd, 0xb6, 0x94, 0xff, 0xb4, 0xae, 0x92, 0xff, 0xa2, 0x9d, 0x85, 0xff, +0xac, 0xa7, 0x8d, 0xff, 0xd3, 0xcb, 0xa8, 0xff, 0xe4, 0xdd, 0xb6, 0xff, +0xec, 0xe8, 0xc0, 0xff, 0xeb, 0xe8, 0xc0, 0xff, 0xe3, 0xdf, 0xbb, 0xff, +0xe3, 0xdd, 0xc2, 0xff, 0xec, 0xe8, 0xd8, 0xe2, 0xf7, 0xf5, 0xee, 0xa5, +0xfd, 0xfd, 0xf9, 0x5b, 0xfe, 0xff, 0xfe, 0x21, 0xff, 0xff, 0xff, 0x02, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfb, 0xfb, 0xfc, 0x00, +0xf0, 0xf0, 0xef, 0x23, 0xd6, 0xd5, 0xd2, 0x74, 0xb2, 0xad, 0x9d, 0xc5, +0x93, 0x8c, 0x67, 0xf5, 0x86, 0x7e, 0x4e, 0xff, 0x8d, 0x85, 0x5b, 0xff, +0x9f, 0x99, 0x75, 0xff, 0x9c, 0x96, 0x7b, 0xff, 0xb6, 0xb1, 0x97, 0xff, +0xbc, 0xb7, 0xa0, 0xff, 0xac, 0xa7, 0x94, 0xff, 0xae, 0xaa, 0x98, 0xff, +0xa1, 0x9d, 0x8f, 0xff, 0xa6, 0xa3, 0x96, 0xff, 0xb8, 0xb4, 0xa6, 0xff, +0xb5, 0xb2, 0xa3, 0xff, 0xb4, 0xb0, 0xa1, 0xff, 0xc3, 0xbe, 0xac, 0xff, +0xd3, 0xce, 0xb9, 0xff, 0xde, 0xd9, 0xc2, 0xff, 0xe9, 0xe5, 0xcd, 0xff, +0xf1, 0xee, 0xd8, 0xff, 0xf1, 0xee, 0xdb, 0xff, 0xf1, 0xef, 0xde, 0xff, +0xef, 0xed, 0xe0, 0xff, 0xec, 0xeb, 0xdf, 0xff, 0xe9, 0xe6, 0xd9, 0xff, +0xea, 0xe7, 0xd9, 0xff, 0xeb, 0xe8, 0xd9, 0xff, 0xe9, 0xe6, 0xd8, 0xff, +0xe9, 0xe6, 0xd6, 0xff, 0xe8, 0xe4, 0xd5, 0xff, 0xe0, 0xdc, 0xcc, 0xff, +0xe1, 0xdd, 0xcd, 0xff, 0xe8, 0xe5, 0xd7, 0xff, 0xea, 0xe7, 0xd9, 0xff, +0xea, 0xe8, 0xd9, 0xff, 0xea, 0xe7, 0xda, 0xff, 0xeb, 0xe9, 0xdc, 0xff, +0xed, 0xeb, 0xde, 0xff, 0xee, 0xec, 0xdf, 0xff, 0xee, 0xeb, 0xdc, 0xff, +0xe8, 0xe6, 0xd3, 0xff, 0xe1, 0xde, 0xc6, 0xff, 0xd7, 0xd2, 0xb3, 0xff, +0xc5, 0xbe, 0x97, 0xff, 0xa5, 0x9c, 0x68, 0xff, 0x82, 0x77, 0x35, 0xff, +0x6c, 0x62, 0x1e, 0xff, 0x72, 0x6b, 0x3e, 0xe0, 0x94, 0x91, 0x84, 0x9a, +0xc0, 0xc0, 0xc0, 0x42, 0xe3, 0xe4, 0xe5, 0x09, 0xf6, 0xf6, 0xf7, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfc, 0xfc, 0xf9, 0x50, 0xe9, 0xe5, 0xd2, 0xec, +0xe7, 0xe4, 0xc6, 0xff, 0xe3, 0xde, 0xc3, 0xff, 0xc7, 0xc2, 0xb0, 0xff, +0xba, 0xb6, 0xa9, 0xff, 0xc6, 0xc2, 0xb3, 0xff, 0xc4, 0xbf, 0xb0, 0xff, +0xb5, 0xb1, 0xa3, 0xff, 0xc2, 0xbc, 0xa8, 0xff, 0xba, 0xb3, 0x91, 0xff, +0x98, 0x91, 0x71, 0xff, 0xca, 0xc8, 0xc1, 0x96, 0xf7, 0xf8, 0xf8, 0x08, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xfb, 0xfb, 0xfc, 0x00, +0xf4, 0xf4, 0xf4, 0x0a, 0xe6, 0xe6, 0xe6, 0x30, 0xd0, 0xcf, 0xcd, 0x6a, +0xb5, 0xb2, 0xa6, 0xaa, 0x9a, 0x94, 0x78, 0xdd, 0x87, 0x81, 0x55, 0xfa, +0x84, 0x7c, 0x4c, 0xff, 0x93, 0x8a, 0x5d, 0xff, 0x9e, 0x97, 0x72, 0xff, +0xa2, 0x9c, 0x80, 0xff, 0x94, 0x8e, 0x78, 0xff, 0xa5, 0xa1, 0x8d, 0xff, +0xb8, 0xb2, 0x9d, 0xff, 0xc0, 0xba, 0xa6, 0xff, 0xcb, 0xc5, 0xae, 0xff, +0xdd, 0xd8, 0xbf, 0xff, 0xed, 0xea, 0xd0, 0xff, 0xec, 0xea, 0xd0, 0xff, +0xe5, 0xe2, 0xcb, 0xff, 0xe2, 0xde, 0xcb, 0xff, 0xea, 0xe7, 0xd9, 0xef, +0xf5, 0xf3, 0xeb, 0xbe, 0xfc, 0xfb, 0xf8, 0x78, 0xfe, 0xfe, 0xfd, 0x36, +0xff, 0xff, 0xff, 0x0c, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xf9, 0xf9, 0xf9, 0x03, 0xeb, 0xeb, 0xeb, 0x28, 0xd4, 0xd4, 0xd0, 0x6c, +0xb6, 0xb3, 0xa7, 0xb5, 0x99, 0x94, 0x7f, 0xe7, 0x88, 0x82, 0x65, 0xff, +0x82, 0x7c, 0x5d, 0xff, 0x8c, 0x85, 0x69, 0xff, 0xa0, 0x99, 0x80, 0xff, +0xad, 0xa8, 0x92, 0xff, 0xa9, 0xa4, 0x92, 0xff, 0xa1, 0x9d, 0x90, 0xff, +0x99, 0x96, 0x8c, 0xff, 0xb3, 0xb0, 0xa5, 0xff, 0x98, 0x96, 0x8e, 0xff, +0x81, 0x7e, 0x78, 0xff, 0xa4, 0xa0, 0x97, 0xff, 0xaa, 0xa7, 0x9d, 0xff, +0xaf, 0xac, 0xa3, 0xff, 0xb9, 0xb6, 0xac, 0xff, 0xb9, 0xb6, 0xab, 0xff, +0xca, 0xc7, 0xba, 0xff, 0xcf, 0xcb, 0xbd, 0xff, 0xd9, 0xd6, 0xc9, 0xff, +0xde, 0xdc, 0xcf, 0xff, 0xea, 0xe9, 0xdd, 0xff, 0xef, 0xee, 0xe4, 0xff, +0xed, 0xec, 0xe3, 0xff, 0xed, 0xec, 0xe4, 0xff, 0xeb, 0xea, 0xe4, 0xff, +0xe6, 0xe4, 0xde, 0xff, 0xe3, 0xe1, 0xdb, 0xff, 0xe5, 0xe4, 0xde, 0xff, +0xeb, 0xea, 0xe3, 0xff, 0xe7, 0xe6, 0xde, 0xff, 0xe5, 0xe3, 0xdb, 0xff, +0xe7, 0xe6, 0xdb, 0xff, 0xe4, 0xe2, 0xd5, 0xff, 0xdc, 0xd9, 0xc9, 0xff, +0xd6, 0xd2, 0xbf, 0xff, 0xc5, 0xc1, 0xaa, 0xff, 0xb5, 0xaf, 0x95, 0xff, +0xa0, 0x9a, 0x78, 0xff, 0x87, 0x7f, 0x56, 0xff, 0x71, 0x69, 0x38, 0xff, +0x68, 0x62, 0x35, 0xf7, 0x78, 0x74, 0x57, 0xd2, 0x99, 0x97, 0x8e, 0x92, +0xbf, 0xbe, 0xbe, 0x46, 0xdf, 0xdf, 0xdf, 0x0f, 0xf3, 0xf3, 0xf3, 0x00, +0xfc, 0xfc, 0xfc, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfc, 0xfc, 0xfa, 0x50, 0xe8, 0xe5, 0xd8, 0xec, 0xe5, 0xe4, 0xd2, 0xff, +0xe2, 0xdd, 0xce, 0xff, 0xbe, 0xbb, 0xb1, 0xff, 0x9b, 0x99, 0x93, 0xff, +0x9b, 0x99, 0x93, 0xff, 0x96, 0x94, 0x8d, 0xff, 0xad, 0xab, 0xa2, 0xff, +0xc2, 0xbf, 0xb2, 0xff, 0xbd, 0xb7, 0xa1, 0xff, 0x98, 0x92, 0x7b, 0xff, +0xca, 0xc8, 0xc3, 0x96, 0xf7, 0xf8, 0xf7, 0x08, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfd, 0xfd, 0x00, 0xf8, 0xf8, 0xf9, 0x00, 0xef, 0xef, 0xef, 0x13, +0xe0, 0xdf, 0xdf, 0x3d, 0xca, 0xc9, 0xc5, 0x77, 0xb0, 0xad, 0xa2, 0xb2, +0x97, 0x92, 0x7f, 0xe0, 0x87, 0x81, 0x65, 0xfb, 0x80, 0x7a, 0x5c, 0xff, +0x8e, 0x88, 0x68, 0xff, 0x9e, 0x99, 0x7e, 0xff, 0xa6, 0xa1, 0x8c, 0xff, +0xaf, 0xab, 0x98, 0xff, 0xaa, 0xa6, 0x97, 0xff, 0x9f, 0x9a, 0x90, 0xff, +0xbc, 0xb7, 0xa8, 0xff, 0xd6, 0xd3, 0xc1, 0xff, 0xe3, 0xe1, 0xd2, 0xff, +0xe7, 0xe5, 0xda, 0xff, 0xde, 0xdc, 0xd1, 0xff, 0xdf, 0xdc, 0xcf, 0xff, +0xe6, 0xe4, 0xd7, 0xf9, 0xf2, 0xf0, 0xe8, 0xd6, 0xfa, 0xf9, 0xf5, 0x99, +0xfe, 0xfd, 0xfc, 0x56, 0xfe, 0xff, 0xfe, 0x21, 0xff, 0xff, 0xff, 0x04, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfd, 0xfe, 0x00, 0xf8, 0xf9, 0xf9, 0x00, 0xee, 0xee, 0xed, 0x1b, +0xdd, 0xdc, 0xda, 0x4d, 0xc3, 0xc2, 0xbd, 0x8a, 0xa9, 0xa6, 0x9b, 0xc1, +0x90, 0x8c, 0x7c, 0xe7, 0x81, 0x7d, 0x68, 0xfb, 0x83, 0x7e, 0x68, 0xff, +0x85, 0x81, 0x6d, 0xff, 0x95, 0x90, 0x7d, 0xff, 0xa1, 0x9e, 0x8d, 0xff, +0x97, 0x94, 0x86, 0xff, 0x9b, 0x98, 0x8d, 0xff, 0xa0, 0x9e, 0x93, 0xff, +0xa1, 0x9f, 0x96, 0xff, 0xa2, 0xa0, 0x98, 0xff, 0xa3, 0xa1, 0x99, 0xff, +0x83, 0x82, 0x7e, 0xff, 0x7e, 0x7d, 0x7a, 0xff, 0x73, 0x72, 0x70, 0xff, +0x82, 0x81, 0x7f, 0xff, 0x88, 0x86, 0x81, 0xff, 0x71, 0x70, 0x6f, 0xff, +0x8f, 0x8e, 0x8c, 0xff, 0xa7, 0xa5, 0x9e, 0xff, 0x91, 0x90, 0x8b, 0xff, +0xad, 0xab, 0xa3, 0xff, 0xb2, 0xaf, 0xa6, 0xff, 0xbd, 0xbb, 0xb1, 0xff, +0xc4, 0xc1, 0xb6, 0xff, 0xbb, 0xb8, 0xad, 0xff, 0xba, 0xb7, 0xab, 0xff, +0xc0, 0xbc, 0xaf, 0xff, 0xab, 0xa7, 0x9b, 0xff, 0xa9, 0xa5, 0x95, 0xff, +0xaa, 0xa6, 0x93, 0xff, 0x9b, 0x96, 0x80, 0xff, 0x85, 0x80, 0x69, 0xff, +0x73, 0x6e, 0x53, 0xff, 0x6c, 0x67, 0x4a, 0xff, 0x6b, 0x66, 0x4a, 0xf6, +0x76, 0x72, 0x5c, 0xda, 0x8d, 0x8a, 0x7e, 0xab, 0xac, 0xaa, 0xa8, 0x6e, +0xcb, 0xca, 0xca, 0x32, 0xe3, 0xe3, 0xe4, 0x0b, 0xf3, 0xf3, 0xf4, 0x00, +0xfb, 0xfb, 0xfb, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfd, 0xfd, 0xfb, 0x51, +0xe8, 0xe5, 0xdb, 0xed, 0xda, 0xd7, 0xcf, 0xff, 0xd3, 0xd1, 0xc7, 0xff, +0x95, 0x93, 0x8e, 0xff, 0x6c, 0x6b, 0x69, 0xff, 0x82, 0x81, 0x7f, 0xff, +0x3f, 0x3f, 0x42, 0xff, 0x62, 0x61, 0x61, 0xff, 0xae, 0xab, 0xa4, 0xff, +0xa9, 0xa5, 0x98, 0xff, 0x95, 0x90, 0x80, 0xff, 0xca, 0xc9, 0xc4, 0x96, +0xf7, 0xf7, 0xf7, 0x08, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xff, 0xff, 0x00, 0xfc, 0xfc, 0xfd, 0x00, +0xf6, 0xf7, 0xf7, 0x02, 0xed, 0xed, 0xed, 0x18, 0xde, 0xde, 0xdc, 0x40, +0xc8, 0xc7, 0xc4, 0x77, 0xb0, 0xaf, 0xa6, 0xae, 0x98, 0x95, 0x87, 0xd9, +0x87, 0x83, 0x71, 0xf5, 0x81, 0x7d, 0x68, 0xff, 0x85, 0x80, 0x6c, 0xff, +0x8b, 0x87, 0x75, 0xff, 0x98, 0x95, 0x86, 0xff, 0xa2, 0x9f, 0x93, 0xff, +0xac, 0xaa, 0x9f, 0xff, 0xb9, 0xb7, 0xab, 0xff, 0xc3, 0xbf, 0xb4, 0xff, +0xd6, 0xd5, 0xcb, 0xff, 0xde, 0xdd, 0xd6, 0xff, 0xdb, 0xd9, 0xd2, 0xff, +0xd9, 0xd7, 0xce, 0xff, 0xe1, 0xde, 0xd5, 0xff, 0xeb, 0xe9, 0xe2, 0xec, +0xf6, 0xf4, 0xf0, 0xc0, 0xfc, 0xfb, 0xf8, 0x84, 0xfe, 0xfe, 0xfd, 0x49, +0xff, 0xff, 0xff, 0x1b, 0xff, 0xff, 0xff, 0x04, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xfb, 0xfb, 0xfb, 0x00, +0xf4, 0xf5, 0xf4, 0x06, 0xe9, 0xe9, 0xe9, 0x21, 0xd9, 0xd9, 0xd7, 0x4a, +0xc5, 0xc4, 0xc1, 0x7a, 0xae, 0xad, 0xa7, 0xa7, 0x9a, 0x98, 0x8e, 0xcd, +0x8a, 0x87, 0x7c, 0xe7, 0x80, 0x7d, 0x72, 0xf7, 0x7c, 0x79, 0x6d, 0xff, +0x7c, 0x78, 0x6c, 0xff, 0x7f, 0x7c, 0x70, 0xff, 0x87, 0x84, 0x79, 0xff, +0x8a, 0x87, 0x7d, 0xff, 0x8d, 0x8b, 0x82, 0xff, 0x91, 0x8e, 0x85, 0xff, +0x97, 0x94, 0x8d, 0xff, 0x8c, 0x8a, 0x82, 0xff, 0x90, 0x8f, 0x86, 0xff, +0x64, 0x62, 0x5b, 0xff, 0x57, 0x56, 0x51, 0xff, 0x64, 0x62, 0x5e, 0xff, +0x6c, 0x6b, 0x65, 0xff, 0x85, 0x83, 0x7c, 0xff, 0x94, 0x92, 0x8a, 0xff, +0x8e, 0x8c, 0x84, 0xff, 0x96, 0x94, 0x8b, 0xff, 0x8f, 0x8c, 0x83, 0xff, +0x87, 0x83, 0x79, 0xff, 0x7e, 0x7b, 0x6e, 0xff, 0x79, 0x76, 0x69, 0xff, +0x6e, 0x6b, 0x5d, 0xff, 0x6d, 0x69, 0x5a, 0xff, 0x6c, 0x68, 0x58, 0xfe, +0x6f, 0x6b, 0x5b, 0xf3, 0x76, 0x72, 0x65, 0xe0, 0x84, 0x82, 0x77, 0xc2, +0x97, 0x97, 0x90, 0x9a, 0xb1, 0xb0, 0xae, 0x69, 0xc9, 0xc9, 0xc8, 0x38, +0xde, 0xdd, 0xde, 0x13, 0xee, 0xee, 0xee, 0x00, 0xf8, 0xf8, 0xf8, 0x00, +0xfc, 0xfc, 0xfc, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfc, 0x47, 0xe5, 0xe3, 0xda, 0xe7, +0xc6, 0xc4, 0xb7, 0xff, 0xbf, 0xbc, 0xb2, 0xff, 0x88, 0x86, 0x80, 0xff, +0x5d, 0x5c, 0x5a, 0xff, 0x71, 0x70, 0x6b, 0xff, 0x80, 0x7f, 0x7a, 0xff, +0x80, 0x7e, 0x78, 0xff, 0x99, 0x97, 0x8f, 0xff, 0x90, 0x8d, 0x81, 0xff, +0x89, 0x86, 0x76, 0xff, 0xcc, 0xcb, 0xc7, 0x8b, 0xf8, 0xf8, 0xf8, 0x06, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfc, 0xfc, 0xfc, 0x00, 0xf6, 0xf7, 0xf7, 0x01, +0xee, 0xee, 0xed, 0x14, 0xe0, 0xe0, 0xdf, 0x37, 0xce, 0xcd, 0xca, 0x65, +0xb8, 0xb6, 0xb1, 0x98, 0xa2, 0x9f, 0x98, 0xc4, 0x90, 0x8e, 0x83, 0xe6, +0x84, 0x81, 0x75, 0xf9, 0x80, 0x7d, 0x71, 0xff, 0x82, 0x7f, 0x74, 0xff, +0x8b, 0x88, 0x7e, 0xff, 0x8d, 0x8a, 0x81, 0xff, 0xa6, 0xa3, 0x99, 0xff, +0xb1, 0xae, 0xa4, 0xff, 0xca, 0xc9, 0xc0, 0xff, 0xd9, 0xd9, 0xd2, 0xff, +0xd7, 0xd6, 0xd0, 0xff, 0xda, 0xd8, 0xd2, 0xff, 0xdc, 0xd9, 0xd2, 0xff, +0xe4, 0xe1, 0xda, 0xfd, 0xef, 0xed, 0xe8, 0xe5, 0xf9, 0xf8, 0xf4, 0xb8, +0xfe, 0xfd, 0xfb, 0x81, 0xff, 0xff, 0xfe, 0x4d, 0xff, 0xff, 0xfe, 0x26, +0xff, 0xff, 0xff, 0x0e, 0xff, 0xff, 0xff, 0x02, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfd, 0xfe, 0x00, 0xfb, 0xfb, 0xfb, 0x00, 0xf5, 0xf5, 0xf6, 0x02, +0xee, 0xed, 0xee, 0x10, 0xe2, 0xe2, 0xe2, 0x29, 0xd5, 0xd5, 0xd5, 0x48, +0xc7, 0xc6, 0xc4, 0x69, 0xb7, 0xb7, 0xb4, 0x88, 0xa9, 0xa8, 0xa4, 0xa3, +0x9c, 0x9b, 0x96, 0xbb, 0x91, 0x8f, 0x8a, 0xcd, 0x89, 0x88, 0x82, 0xdb, +0x83, 0x82, 0x7c, 0xe6, 0x81, 0x7f, 0x78, 0xee, 0x7d, 0x7b, 0x75, 0xf3, +0x78, 0x76, 0x6f, 0xf7, 0x78, 0x76, 0x6e, 0xfa, 0x74, 0x73, 0x6b, 0xfb, +0x74, 0x72, 0x69, 0xfc, 0x70, 0x6e, 0x66, 0xfc, 0x74, 0x73, 0x6a, 0xfc, +0x76, 0x73, 0x6d, 0xfb, 0x73, 0x71, 0x6a, 0xfa, 0x76, 0x74, 0x6c, 0xf7, +0x75, 0x73, 0x6c, 0xf4, 0x76, 0x74, 0x6d, 0xee, 0x79, 0x77, 0x70, 0xe6, +0x7e, 0x7c, 0x75, 0xda, 0x84, 0x83, 0x7d, 0xcb, 0x8e, 0x8d, 0x87, 0xb7, +0x99, 0x99, 0x94, 0x9e, 0xa8, 0xa7, 0xa3, 0x81, 0xb8, 0xb7, 0xb5, 0x5f, +0xc8, 0xc8, 0xc7, 0x3e, 0xd7, 0xd7, 0xd8, 0x21, 0xe4, 0xe5, 0xe5, 0x0b, +0xf0, 0xf0, 0xf0, 0x00, 0xf7, 0xf7, 0xf7, 0x00, 0xfc, 0xfc, 0xfc, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xfe, 0x28, 0xea, 0xe8, 0xe4, 0xb4, 0xb3, 0xb1, 0xa6, 0xfb, +0x8c, 0x89, 0x80, 0xff, 0x71, 0x70, 0x69, 0xff, 0x70, 0x6e, 0x67, 0xff, +0x66, 0x64, 0x5c, 0xff, 0x67, 0x65, 0x5d, 0xff, 0x71, 0x6f, 0x67, 0xff, +0x79, 0x77, 0x6f, 0xff, 0x70, 0x6d, 0x5f, 0xff, 0x85, 0x82, 0x75, 0xe1, +0xd4, 0xd4, 0xd2, 0x5b, 0xf9, 0xf9, 0xf9, 0x01, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xfd, 0xfd, 0xfd, 0x00, 0xf8, 0xf8, 0xf8, 0x00, 0xf1, 0xf1, 0xf1, 0x0a, +0xe7, 0xe7, 0xe6, 0x23, 0xd8, 0xd8, 0xd7, 0x46, 0xc7, 0xc6, 0xc4, 0x71, +0xb3, 0xb3, 0xaf, 0x9d, 0xa0, 0x9f, 0x9b, 0xc3, 0x90, 0x8e, 0x88, 0xe1, +0x84, 0x83, 0x7c, 0xf5, 0x7c, 0x7a, 0x73, 0xff, 0x79, 0x76, 0x6f, 0xff, +0x87, 0x84, 0x7c, 0xff, 0x9b, 0x98, 0x90, 0xff, 0xa9, 0xa7, 0x9e, 0xff, +0xb4, 0xb1, 0xaa, 0xff, 0xc8, 0xc6, 0xbf, 0xff, 0xcc, 0xcb, 0xc2, 0xff, +0xd0, 0xce, 0xc6, 0xff, 0xd4, 0xd1, 0xc7, 0xff, 0xe0, 0xdd, 0xd3, 0xfb, +0xee, 0xec, 0xe5, 0xe3, 0xf9, 0xf8, 0xf4, 0xbc, 0xff, 0xff, 0xfe, 0x8b, +0xff, 0xff, 0xff, 0x5b, 0xff, 0xff, 0xff, 0x35, 0xff, 0xff, 0xff, 0x1b, +0xff, 0xff, 0xff, 0x09, 0xff, 0xff, 0xff, 0x02, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfd, 0xfd, 0x00, 0xfb, 0xfb, 0xfb, 0x00, 0xf7, 0xf7, 0xf7, 0x00, +0xf2, 0xf2, 0xf3, 0x04, 0xec, 0xec, 0xec, 0x0d, 0xe6, 0xe6, 0xe6, 0x1a, +0xde, 0xde, 0xde, 0x29, 0xd7, 0xd7, 0xd6, 0x37, 0xd0, 0xd0, 0xcf, 0x45, +0xca, 0xca, 0xc8, 0x53, 0xc4, 0xc4, 0xc2, 0x5e, 0xc0, 0xc0, 0xbe, 0x68, +0xbb, 0xbb, 0xb9, 0x70, 0xb8, 0xb8, 0xb6, 0x75, 0xb7, 0xb6, 0xb5, 0x79, +0xb5, 0xb5, 0xb3, 0x7a, 0xb4, 0xb4, 0xb2, 0x79, 0xb5, 0xb5, 0xb3, 0x76, +0xb7, 0xb6, 0xb5, 0x70, 0xb9, 0xb9, 0xb8, 0x69, 0xbd, 0xbd, 0xbb, 0x5f, +0xc2, 0xc2, 0xc2, 0x53, 0xc8, 0xc9, 0xc8, 0x45, 0xcf, 0xcf, 0xcf, 0x36, +0xd7, 0xd7, 0xd7, 0x26, 0xdf, 0xdf, 0xde, 0x18, 0xe6, 0xe6, 0xe6, 0x0b, +0xed, 0xed, 0xed, 0x03, 0xf3, 0xf3, 0xf3, 0x00, 0xf8, 0xf8, 0xf8, 0x00, +0xfc, 0xfc, 0xfc, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xff, 0x07, +0xf5, 0xf5, 0xf5, 0x3f, 0xd9, 0xd9, 0xd6, 0x80, 0xb4, 0xb4, 0xb0, 0x98, +0xa7, 0xa7, 0xa4, 0x9a, 0xa6, 0xa6, 0xa3, 0x9a, 0xa7, 0xa6, 0xa4, 0x9c, +0xa6, 0xa5, 0xa1, 0x9c, 0xa4, 0xa4, 0xa1, 0x9d, 0xa2, 0xa2, 0xa0, 0x9d, +0xa8, 0xa7, 0xa5, 0x92, 0xc1, 0xc0, 0xbf, 0x5f, 0xe6, 0xe6, 0xe6, 0x18, +0xfb, 0xfb, 0xfb, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xfb, 0xfb, 0xfb, 0x00, 0xf6, 0xf6, 0xf6, 0x00, 0xf0, 0xf0, 0xf0, 0x0c, +0xe6, 0xe6, 0xe6, 0x21, 0xd9, 0xd9, 0xd8, 0x40, 0xca, 0xca, 0xc8, 0x64, +0xba, 0xba, 0xb7, 0x88, 0xaa, 0xa9, 0xa7, 0xab, 0x9a, 0x99, 0x95, 0xc8, +0x8e, 0x8c, 0x88, 0xdf, 0x87, 0x86, 0x81, 0xf0, 0x86, 0x84, 0x7f, 0xfa, +0x8d, 0x8b, 0x84, 0xff, 0x98, 0x95, 0x8c, 0xff, 0xa2, 0x9f, 0x96, 0xff, +0xa8, 0xa5, 0x9a, 0xff, 0xad, 0xa9, 0x9c, 0xff, 0xb0, 0xad, 0x9e, 0xff, +0xb1, 0xae, 0xa0, 0xff, 0xb9, 0xb6, 0xac, 0xf6, 0xc2, 0xc0, 0xb7, 0xd7, +0xce, 0xce, 0xcc, 0xa9, 0xe5, 0xe5, 0xe4, 0x70, 0xf2, 0xf2, 0xf1, 0x3a, +0xfa, 0xfa, 0xfa, 0x13, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xfc, 0xfc, 0xfd, 0x00, +0xfb, 0xfb, 0xfb, 0x00, 0xf9, 0xf9, 0xf9, 0x00, 0xf9, 0xf9, 0xf9, 0x00, +0xf7, 0xf7, 0xf7, 0x00, 0xf5, 0xf5, 0xf5, 0x00, 0xf4, 0xf4, 0xf4, 0x00, +0xf3, 0xf3, 0xf3, 0x00, 0xf2, 0xf2, 0xf2, 0x00, 0xf2, 0xf2, 0xf2, 0x00, +0xf2, 0xf2, 0xf2, 0x00, 0xf2, 0xf2, 0xf2, 0x00, 0xf2, 0xf2, 0xf2, 0x00, +0xf4, 0xf4, 0xf4, 0x00, 0xf5, 0xf5, 0xf5, 0x00, 0xf6, 0xf6, 0xf6, 0x00, +0xf8, 0xf8, 0xf8, 0x00, 0xfa, 0xfa, 0xfa, 0x00, 0xfb, 0xfb, 0xfb, 0x00, +0xfd, 0xfd, 0xfd, 0x00, 0xfd, 0xfd, 0xfd, 0x00, 0xfe, 0xfe, 0xfe, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfd, 0xfd, 0xfd, 0x00, +0xf6, 0xf6, 0xf5, 0x05, 0xee, 0xee, 0xee, 0x09, 0xeb, 0xeb, 0xeb, 0x09, +0xeb, 0xeb, 0xeb, 0x06, 0xeb, 0xeb, 0xeb, 0x04, 0xea, 0xea, 0xea, 0x08, +0xea, 0xea, 0xeb, 0x0a, 0xea, 0xea, 0xeb, 0x0a, 0xec, 0xec, 0xec, 0x08, +0xf0, 0xf1, 0xf1, 0x00, 0xf9, 0xf9, 0xf9, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfd, 0xfe, 0xfe, 0x00, +0xfb, 0xfb, 0xfb, 0x00, 0xf8, 0xf8, 0xf8, 0x00, 0xf3, 0xf3, 0xf3, 0x01, +0xec, 0xec, 0xec, 0x0e, 0xe2, 0xe3, 0xe3, 0x24, 0xd9, 0xd8, 0xd8, 0x3c, +0xcd, 0xcd, 0xcc, 0x56, 0xc1, 0xc1, 0xc0, 0x72, 0xb7, 0xb6, 0xb5, 0x8c, +0xae, 0xae, 0xab, 0xa3, 0xaa, 0xaa, 0xa7, 0xb7, 0xac, 0xab, 0xa6, 0xc7, +0xb1, 0xb0, 0xab, 0xd3, 0xb8, 0xb7, 0xb1, 0xd8, 0xbc, 0xbb, 0xb4, 0xd5, +0xbe, 0xbc, 0xb5, 0xd3, 0xbb, 0xb9, 0xb1, 0xcb, 0xba, 0xb9, 0xb6, 0xb1, +0xc1, 0xc1, 0xc1, 0x87, 0xd4, 0xd4, 0xd4, 0x50, 0xeb, 0xeb, 0xeb, 0x19, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x10, 0xff, 0xff, 0xff, 0x31, +0xff, 0xff, 0xff, 0x37, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0x01, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x08, 0xff, 0xff, 0xff, 0x0e, +0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x05, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x05, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x06, 0xff, 0xff, 0xff, 0x19, 0xff, 0xff, 0xff, 0x1d, +0xff, 0xff, 0xff, 0x1d, 0xff, 0xff, 0xff, 0x1b, 0xff, 0xff, 0xff, 0x0d, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x1d, 0xff, 0xff, 0xff, 0x36, +0xff, 0xff, 0xff, 0x34, 0xff, 0xff, 0xff, 0x17, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x08, +0xff, 0xff, 0xff, 0x15, 0xff, 0xff, 0xff, 0x03, 0xfe, 0xfe, 0xfe, 0x00, +0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xff, 0xff, 0xff, 0x08, +0xff, 0xff, 0xff, 0x18, 0xff, 0xff, 0xff, 0x08, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x02, 0xff, 0xff, 0xff, 0x0c, 0xff, 0xff, 0xff, 0x07, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x0f, +0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x01, 0xff, 0xff, 0xff, 0x0b, 0xff, 0xff, 0xff, 0x04, +0xfc, 0xfc, 0xfc, 0x00, 0xfb, 0xfb, 0xfb, 0x00, 0xf9, 0xf8, 0xf9, 0x00, +0xf5, 0xf5, 0xf6, 0x00, 0xf1, 0xf1, 0xf1, 0x05, 0xec, 0xec, 0xec, 0x0d, +0xe6, 0xe6, 0xe6, 0x18, 0xe0, 0xe1, 0xe0, 0x25, 0xdd, 0xdd, 0xdd, 0x33, +0xdf, 0xdf, 0xde, 0x45, 0xef, 0xee, 0xee, 0x5f, 0xed, 0xed, 0xec, 0x5a, +0xec, 0xec, 0xeb, 0x4e, 0xf4, 0xf4, 0xf4, 0x46, 0xf9, 0xf9, 0xf8, 0x34, +0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0x1d, 0xff, 0xff, 0xff, 0x0a, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x01, 0xff, 0xff, 0xff, 0x4a, +0xab, 0xab, 0xab, 0xbb, 0x5f, 0x5f, 0x5f, 0xee, 0x5c, 0x5c, 0x5c, 0xf5, +0x7e, 0x7e, 0x7e, 0xd8, 0xe8, 0xe8, 0xe8, 0x7a, 0xff, 0xff, 0xff, 0x10, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x03, +0xdd, 0xdd, 0xdd, 0x78, 0xaa, 0xaa, 0xaa, 0xbc, 0xfd, 0xfd, 0xfd, 0x30, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xf0, 0xf0, 0xf0, 0x50, +0xa1, 0xa1, 0xa1, 0xc2, 0xf3, 0xf3, 0xf3, 0x4f, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x03, 0xe0, 0xe0, 0xe0, 0x78, +0x8e, 0x8e, 0x8e, 0xd3, 0x83, 0x83, 0x83, 0xda, 0x83, 0x83, 0x83, 0xdc, +0x82, 0x82, 0x82, 0xd9, 0xa3, 0xa3, 0xa3, 0xbe, 0xf6, 0xf6, 0xf6, 0x62, +0xff, 0xff, 0xff, 0x08, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0e, 0xeb, 0xeb, 0xeb, 0x78, +0x85, 0x85, 0x85, 0xd5, 0x5c, 0x5c, 0x5c, 0xf3, 0x5d, 0x5d, 0x5d, 0xf1, +0x97, 0x97, 0x97, 0xca, 0xf8, 0xf8, 0xf8, 0x63, 0xff, 0xff, 0xff, 0x07, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x09, 0xd5, 0xd5, 0xd5, 0x8b, 0x90, 0x90, 0x90, 0xd2, +0xe6, 0xe6, 0xe6, 0x77, 0xff, 0xff, 0xff, 0x04, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x0d, 0xd5, 0xd5, 0xd5, 0x90, 0x8e, 0x8e, 0x8e, 0xd1, +0xe1, 0xe1, 0xe1, 0x71, 0xff, 0xff, 0xff, 0x01, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x26, +0xac, 0xac, 0xac, 0xb4, 0xd3, 0xd3, 0xd3, 0x81, 0xff, 0xff, 0xff, 0x06, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfb, 0xfb, 0xfb, 0x39, 0xa6, 0xa6, 0xa6, 0xc0, 0xe4, 0xe4, 0xe4, 0x6a, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x20, +0xb4, 0xb4, 0xb4, 0xb2, 0xcf, 0xcf, 0xcf, 0x8a, 0xff, 0xff, 0xff, 0x08, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0xfd, 0xfd, 0xfe, 0x00, +0xfc, 0xfc, 0xfd, 0x00, 0xfc, 0xfc, 0xfc, 0x00, 0xe8, 0xe8, 0xe8, 0x58, +0x8e, 0x8e, 0x8e, 0xcc, 0xc1, 0xc1, 0xc1, 0xa4, 0xfb, 0xfb, 0xfb, 0x1e, +0xf8, 0xf9, 0xf9, 0x08, 0xfb, 0xfb, 0xfb, 0x07, 0xf2, 0xf2, 0xf2, 0x5c, +0x97, 0x97, 0x97, 0xca, 0xd9, 0xd9, 0xd9, 0x7b, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x41, 0x74, 0x74, 0x74, 0xe7, 0x23, 0x23, 0x23, 0xff, +0x90, 0x90, 0x90, 0xd7, 0xa4, 0xa4, 0xa4, 0xc5, 0x55, 0x55, 0x55, 0xf7, +0x30, 0x30, 0x30, 0xff, 0xe7, 0xe7, 0xe7, 0x7a, 0xff, 0xff, 0xff, 0x02, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0b, 0xaa, 0xaa, 0xaa, 0xbd, +0x30, 0x30, 0x30, 0xff, 0xfa, 0xfa, 0xfa, 0x57, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xda, 0xda, 0xda, 0x87, 0x15, 0x15, 0x15, 0xff, +0xe1, 0xe1, 0xe1, 0x87, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x0c, 0xaa, 0xaa, 0xaa, 0xbe, 0x12, 0x12, 0x12, 0xff, +0x76, 0x76, 0x76, 0xeb, 0x79, 0x79, 0x79, 0xdc, 0x7a, 0x7a, 0x7a, 0xe3, +0x37, 0x37, 0x37, 0xff, 0x55, 0x55, 0x55, 0xf5, 0xfb, 0xfb, 0xfb, 0x4c, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x04, +0xea, 0xea, 0xea, 0x7e, 0x31, 0x31, 0x31, 0xff, 0x45, 0x45, 0x45, 0xfe, +0x9d, 0x9d, 0x9d, 0xcb, 0x96, 0x96, 0x96, 0xd2, 0x35, 0x35, 0x35, 0xff, +0x4a, 0x4a, 0x4a, 0xf8, 0xf6, 0xf6, 0xf6, 0x66, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x17, +0x98, 0x98, 0x98, 0xd3, 0x00, 0x00, 0x00, 0xff, 0x85, 0x85, 0x85, 0xdf, +0xff, 0xff, 0xff, 0x25, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x3e, +0x5c, 0x5c, 0x5c, 0xf4, 0x00, 0x00, 0x00, 0xff, 0xb4, 0xb4, 0xb4, 0xb5, +0xff, 0xff, 0xff, 0x08, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x4a, 0x34, 0x34, 0x34, 0xff, +0x92, 0x92, 0x92, 0xcc, 0xff, 0xff, 0xff, 0x11, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xf4, 0xf4, 0xf4, 0x67, +0x26, 0x26, 0x26, 0xff, 0xbc, 0xbc, 0xbc, 0xab, 0xff, 0xff, 0xff, 0x04, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x41, 0x47, 0x47, 0x47, 0xff, +0x88, 0x88, 0x88, 0xd3, 0xff, 0xff, 0xff, 0x15, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xcf, 0xcf, 0xcf, 0x99, 0x00, 0x00, 0x00, 0xff, +0x3a, 0x3a, 0x3a, 0xff, 0xff, 0xff, 0xff, 0x58, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x0e, 0xb0, 0xb0, 0xb0, 0xbf, 0x00, 0x00, 0x00, 0xff, +0xa3, 0xa3, 0xa3, 0xbd, 0xff, 0xff, 0xff, 0x06, 0xc8, 0xc8, 0xc8, 0xa5, +0x15, 0x15, 0x15, 0xff, 0xd4, 0xd4, 0xd4, 0xab, 0xff, 0xff, 0xff, 0x22, +0xff, 0xff, 0xff, 0x0e, 0xff, 0xff, 0xff, 0x64, 0x50, 0x50, 0x50, 0xf9, +0x9b, 0x9b, 0x9b, 0xc1, 0xff, 0xff, 0xff, 0x0b, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x0c, 0xad, 0xad, 0xad, 0xba, 0x3c, 0x3c, 0x3c, 0xff, +0xff, 0xff, 0xff, 0x5d, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x02, +0xe5, 0xe5, 0xe5, 0x8a, 0x21, 0x21, 0x21, 0xff, 0xe3, 0xe3, 0xe3, 0x88, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0f, +0xa8, 0xa8, 0xa8, 0xbd, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0x68, +0xff, 0xff, 0xff, 0x13, 0xff, 0xff, 0xff, 0x26, 0xd3, 0xd3, 0xd3, 0xb6, +0x0c, 0x0c, 0x0c, 0xff, 0xdf, 0xdf, 0xdf, 0x80, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x2e, 0x70, 0x70, 0x70, 0xe6, +0x43, 0x43, 0x43, 0xf9, 0xff, 0xff, 0xff, 0x71, 0xff, 0xff, 0xff, 0x13, +0xff, 0xff, 0xff, 0x1a, 0xef, 0xef, 0xef, 0x8c, 0x23, 0x23, 0x23, 0xff, +0x92, 0x92, 0x92, 0xd1, 0xff, 0xff, 0xff, 0x1c, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x19, 0x97, 0x97, 0x97, 0xd0, +0x20, 0x20, 0x20, 0xff, 0x49, 0x49, 0x49, 0xfc, 0xfb, 0xfb, 0xfb, 0x5e, +0xff, 0xff, 0xff, 0x00, 0xe9, 0xe9, 0xe9, 0x7f, 0x3c, 0x3c, 0x3c, 0xff, +0x2a, 0x2a, 0x2a, 0xff, 0xb2, 0xb2, 0xb2, 0xb3, 0xff, 0xff, 0xff, 0x09, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xfe, 0x4d, 0x3c, 0x3c, 0x3c, 0xff, 0x97, 0x97, 0x97, 0xc9, +0xff, 0xff, 0xff, 0x13, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xf5, 0xf5, 0xf5, 0x69, 0x2f, 0x2f, 0x2f, 0xff, +0xbf, 0xbf, 0xbf, 0xa9, 0xff, 0xff, 0xff, 0x05, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x44, 0x4e, 0x4e, 0x4e, 0xfb, 0x8e, 0x8e, 0x8e, 0xd0, +0xff, 0xff, 0xff, 0x17, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x01, +0xcc, 0xcc, 0xcc, 0x99, 0x2b, 0x2b, 0x2b, 0xff, 0x34, 0x34, 0x34, 0xff, +0xce, 0xce, 0xce, 0x9d, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x3a, +0x6a, 0x6a, 0x6a, 0xee, 0x26, 0x26, 0x26, 0xff, 0xa6, 0xa6, 0xa6, 0xb9, +0xff, 0xff, 0xff, 0x1d, 0x7d, 0x7d, 0x7d, 0xd9, 0x4b, 0x4b, 0x4b, 0xfa, +0xff, 0xff, 0xff, 0x49, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x07, 0xf9, 0xf9, 0xf9, 0x4e, 0xf4, 0xf4, 0xf4, 0x43, +0xff, 0xff, 0xff, 0x04, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0c, +0xb1, 0xb1, 0xb1, 0xb9, 0x2c, 0x2c, 0x2c, 0xff, 0xbc, 0xbc, 0xbc, 0xc3, +0xc0, 0xc0, 0xc0, 0x9e, 0xc1, 0xc1, 0xc1, 0xa1, 0xa7, 0xa7, 0xa7, 0xd4, +0x1f, 0x1f, 0x1f, 0xff, 0xe4, 0xe4, 0xe4, 0x87, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0f, 0xa9, 0xa9, 0xa9, 0xbd, +0x3a, 0x3a, 0x3a, 0xff, 0xf4, 0xf4, 0xf4, 0x93, 0xf8, 0xf8, 0xf8, 0x55, +0xf6, 0xf6, 0xf6, 0x6a, 0xa0, 0xa0, 0xa0, 0xd4, 0x2e, 0x2e, 0x2e, 0xfd, +0xf1, 0xf1, 0xf1, 0x66, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xf9, 0xf9, 0xf9, 0x60, 0x30, 0x30, 0x30, 0xff, 0xad, 0xad, 0xad, 0xc1, +0xff, 0xff, 0xff, 0x10, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x24, 0x85, 0x85, 0x85, 0xde, 0x42, 0x42, 0x42, 0xfc, +0xfe, 0xfe, 0xfe, 0x47, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x19, 0x91, 0x91, 0x91, 0xcf, 0x58, 0x58, 0x58, 0xff, +0x4f, 0x4f, 0x4f, 0xff, 0xc5, 0xc5, 0xc5, 0x9f, 0xff, 0xff, 0xff, 0x16, +0xa1, 0xa1, 0xa1, 0xbe, 0x5f, 0x5f, 0x5f, 0xff, 0x4b, 0x4b, 0x4b, 0xff, +0xaf, 0xaf, 0xaf, 0xb2, 0xff, 0xff, 0xff, 0x09, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x4c, +0x3d, 0x3d, 0x3d, 0xff, 0x97, 0x97, 0x97, 0xc8, 0xff, 0xff, 0xff, 0x13, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xf5, 0xf5, 0xf5, 0x68, 0x30, 0x30, 0x30, 0xff, 0xbf, 0xbf, 0xbf, 0xa8, +0xff, 0xff, 0xff, 0x05, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x43, +0x4f, 0x4f, 0x4f, 0xfb, 0x8e, 0x8e, 0x8e, 0xcf, 0xff, 0xff, 0xff, 0x17, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x01, 0xca, 0xca, 0xca, 0x97, +0x3c, 0x3c, 0x3c, 0xff, 0x6a, 0x6a, 0x6a, 0xff, 0x81, 0x81, 0x81, 0xd7, +0xff, 0xff, 0xff, 0x20, 0xea, 0xea, 0xea, 0x76, 0x48, 0x48, 0x48, 0xff, +0x6d, 0x6d, 0x6d, 0xff, 0x9e, 0x9e, 0x9e, 0xb8, 0xff, 0xff, 0xff, 0x28, +0x61, 0x61, 0x61, 0xe5, 0x5c, 0x5c, 0x5c, 0xee, 0xff, 0xff, 0xff, 0x32, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x01, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x01, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0c, 0xb6, 0xb6, 0xb6, 0xb8, +0x0f, 0x0f, 0x0f, 0xff, 0x3f, 0x3f, 0x3f, 0xff, 0x41, 0x41, 0x41, 0xff, +0x42, 0x42, 0x42, 0xff, 0x37, 0x37, 0x37, 0xff, 0x18, 0x18, 0x18, 0xff, +0xe7, 0xe7, 0xe7, 0x87, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x0e, 0xb0, 0xb0, 0xb0, 0xbb, 0x0e, 0x0e, 0x0e, 0xff, +0x3d, 0x3d, 0x3d, 0xff, 0x3f, 0x3f, 0x3f, 0xff, 0x39, 0x39, 0x39, 0xff, +0x01, 0x01, 0x01, 0xff, 0xa1, 0xa1, 0xa1, 0xe1, 0xff, 0xff, 0xff, 0x31, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xf0, 0xf0, 0xf0, 0x74, +0x24, 0x24, 0x24, 0xff, 0xc4, 0xc4, 0xc4, 0xa2, 0xff, 0xff, 0xff, 0x03, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x11, +0xa6, 0xa6, 0xa6, 0xc4, 0x31, 0x31, 0x31, 0xff, 0xfb, 0xfb, 0xfb, 0x59, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x19, +0x8f, 0x8f, 0x8f, 0xd0, 0x67, 0x67, 0x67, 0xf9, 0x84, 0x84, 0x84, 0xf3, +0x79, 0x79, 0x79, 0xd7, 0xff, 0xff, 0xff, 0x62, 0x5d, 0x5d, 0x5d, 0xea, +0x9e, 0x9e, 0x9e, 0xee, 0x44, 0x44, 0x44, 0xff, 0xaf, 0xaf, 0xaf, 0xb2, +0xff, 0xff, 0xff, 0x09, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x4c, 0x3d, 0x3d, 0x3d, 0xff, +0x97, 0x97, 0x97, 0xc8, 0xff, 0xff, 0xff, 0x13, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xf5, 0xf5, 0xf5, 0x68, +0x30, 0x30, 0x30, 0xff, 0xbf, 0xbf, 0xbf, 0xa7, 0xff, 0xff, 0xff, 0x05, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x42, 0x50, 0x50, 0x50, 0xfb, +0x8e, 0x8e, 0x8e, 0xcf, 0xff, 0xff, 0xff, 0x17, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x01, 0xca, 0xca, 0xca, 0x97, 0x35, 0x35, 0x35, 0xff, +0xb9, 0xb9, 0xb9, 0xea, 0x45, 0x45, 0x45, 0xf8, 0xff, 0xff, 0xff, 0x6b, +0xa4, 0xa4, 0xa4, 0xb8, 0x6a, 0x6a, 0x6a, 0xf8, 0x8d, 0x8d, 0x8d, 0xf6, +0x99, 0x99, 0x99, 0xb9, 0xff, 0xff, 0xff, 0x1f, 0x79, 0x79, 0x79, 0xdb, +0x4e, 0x4e, 0x4e, 0xf9, 0xff, 0xff, 0xff, 0x43, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x12, 0xc6, 0xc6, 0xc6, 0x9a, +0xbe, 0xbe, 0xbe, 0x95, 0xff, 0xff, 0xff, 0x0e, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x0c, 0xae, 0xae, 0xae, 0xb9, 0x3a, 0x3a, 0x3a, 0xff, +0xf6, 0xf6, 0xf6, 0x94, 0xfa, 0xfa, 0xfa, 0x55, 0xfa, 0xfa, 0xfa, 0x59, +0xda, 0xda, 0xda, 0xb2, 0x21, 0x21, 0x21, 0xff, 0xe3, 0xe3, 0xe3, 0x87, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0f, +0xaa, 0xaa, 0xaa, 0xbc, 0x34, 0x34, 0x34, 0xff, 0xcc, 0xcc, 0xcc, 0xba, +0xcf, 0xcf, 0xcf, 0x94, 0xce, 0xce, 0xce, 0xa6, 0x66, 0x66, 0x66, 0xee, +0x49, 0x49, 0x49, 0xf6, 0xfc, 0xfc, 0xfc, 0x4d, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xf8, 0xf8, 0xf8, 0x63, 0x2e, 0x2e, 0x2e, 0xff, +0xb1, 0xb1, 0xb1, 0xbc, 0xff, 0xff, 0xff, 0x0d, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x20, 0x8b, 0x8b, 0x8b, 0xdb, +0x3f, 0x3f, 0x3f, 0xfd, 0xfe, 0xfe, 0xfe, 0x49, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x19, 0x8f, 0x8f, 0x8f, 0xd1, +0x5e, 0x5e, 0x5e, 0xee, 0xd0, 0xd0, 0xd0, 0xc6, 0x45, 0x45, 0x45, 0xf7, +0xe3, 0xe3, 0xe3, 0xc6, 0x3d, 0x3d, 0x3d, 0xf8, 0xe4, 0xe4, 0xe4, 0xc3, +0x3c, 0x3c, 0x3c, 0xfe, 0xaf, 0xaf, 0xaf, 0xb4, 0xff, 0xff, 0xff, 0x0a, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfe, 0xfe, 0xfe, 0x4c, 0x3d, 0x3d, 0x3d, 0xff, 0x97, 0x97, 0x97, 0xc8, +0xff, 0xff, 0xff, 0x13, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xf5, 0xf5, 0xf5, 0x69, 0x2e, 0x2e, 0x2e, 0xff, +0xc2, 0xc2, 0xc2, 0xaa, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x43, 0x4f, 0x4f, 0x4f, 0xfd, 0x8c, 0x8c, 0x8c, 0xcf, +0xff, 0xff, 0xff, 0x16, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x01, +0xca, 0xca, 0xca, 0x98, 0x2e, 0x2e, 0x2e, 0xff, 0xee, 0xee, 0xee, 0xbf, +0x43, 0x43, 0x43, 0xf6, 0xd3, 0xd3, 0xd3, 0xc9, 0x65, 0x65, 0x65, 0xec, +0xae, 0xae, 0xae, 0xd1, 0x8f, 0x8f, 0x8f, 0xe3, 0x99, 0x99, 0x99, 0xbc, +0xff, 0xff, 0xff, 0x09, 0xbd, 0xbd, 0xbd, 0xae, 0x1a, 0x1a, 0x1a, 0xff, +0xe6, 0xe6, 0xe6, 0x9a, 0xff, 0xff, 0xff, 0x15, 0xff, 0xff, 0xff, 0x0a, +0xff, 0xff, 0xff, 0x71, 0x30, 0x30, 0x30, 0xff, 0x90, 0x90, 0x90, 0xcd, +0xff, 0xff, 0xff, 0x11, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0c, +0xae, 0xae, 0xae, 0xbb, 0x3a, 0x3a, 0x3a, 0xff, 0xfd, 0xfd, 0xfd, 0x57, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xde, 0xde, 0xde, 0x86, +0x21, 0x21, 0x21, 0xff, 0xe3, 0xe3, 0xe3, 0x87, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0e, 0xa8, 0xa8, 0xa8, 0xbe, +0x41, 0x41, 0x41, 0xff, 0xff, 0xff, 0xff, 0x54, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x0b, 0xc9, 0xc9, 0xc9, 0xad, 0x2e, 0x2e, 0x2e, 0xff, +0xf6, 0xf6, 0xf6, 0x6b, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x33, 0x68, 0x68, 0x68, 0xeb, 0x4d, 0x4d, 0x4d, 0xf5, +0xff, 0xff, 0xff, 0x64, 0xff, 0xff, 0xff, 0x0c, 0xff, 0xff, 0xff, 0x11, +0xf7, 0xf7, 0xf7, 0x80, 0x2b, 0x2b, 0x2b, 0xff, 0x88, 0x88, 0x88, 0xd7, +0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x19, 0x8f, 0x8f, 0x8f, 0xd2, 0x58, 0x58, 0x58, 0xec, +0xff, 0xff, 0xff, 0x8e, 0x4e, 0x4e, 0x4e, 0xf5, 0x6d, 0x6d, 0x6d, 0xfe, +0x6b, 0x6b, 0x6b, 0xe4, 0xff, 0xff, 0xff, 0x91, 0x38, 0x38, 0x38, 0xfe, +0xaf, 0xaf, 0xaf, 0xb5, 0xff, 0xff, 0xff, 0x0a, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x4c, +0x3d, 0x3d, 0x3d, 0xff, 0x97, 0x97, 0x97, 0xc9, 0xff, 0xff, 0xff, 0x13, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xfb, 0xfb, 0xfb, 0x59, 0x2e, 0x2e, 0x2e, 0xff, 0x9b, 0x9b, 0x9b, 0xd4, +0xff, 0xff, 0xff, 0x2b, 0xff, 0xff, 0xff, 0x09, 0xff, 0xff, 0xff, 0x7b, +0x2b, 0x2b, 0x2b, 0xff, 0xa6, 0xa6, 0xa6, 0xbd, 0xff, 0xff, 0xff, 0x0c, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x01, 0xca, 0xca, 0xca, 0x99, +0x2c, 0x2c, 0x2c, 0xff, 0xfe, 0xfe, 0xfe, 0x95, 0x7f, 0x7f, 0x7f, 0xd5, +0x61, 0x61, 0x61, 0xfe, 0x45, 0x45, 0x45, 0xff, 0xf3, 0xf3, 0xf3, 0x97, +0x86, 0x86, 0x86, 0xd8, 0x99, 0x99, 0x99, 0xbe, 0xff, 0xff, 0xff, 0x00, +0xfd, 0xfd, 0xfd, 0x4f, 0x5c, 0x5c, 0x5c, 0xf2, 0x31, 0x31, 0x31, 0xff, +0xa8, 0xa8, 0xa8, 0xc5, 0xb7, 0xb7, 0xb7, 0xb8, 0x51, 0x51, 0x51, 0xf7, +0x3c, 0x3c, 0x3c, 0xfd, 0xf2, 0xf2, 0xf2, 0x6b, 0xff, 0xff, 0xff, 0x01, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0b, 0xa9, 0xa9, 0xa9, 0xbd, +0x2e, 0x2e, 0x2e, 0xff, 0xfa, 0xfa, 0xfa, 0x59, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xda, 0xda, 0xda, 0x89, 0x13, 0x13, 0x13, 0xff, +0xe1, 0xe1, 0xe1, 0x88, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x0d, 0xa3, 0xa3, 0xa3, 0xc0, 0x34, 0x34, 0x34, 0xff, +0xfc, 0xfc, 0xfc, 0x50, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xc9, 0xc9, 0xc9, 0x99, 0x17, 0x17, 0x17, 0xff, 0xe9, 0xe9, 0xe9, 0x7e, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x05, +0xe4, 0xe4, 0xe4, 0x89, 0x25, 0x25, 0x25, 0xff, 0x53, 0x53, 0x53, 0xf6, +0xb3, 0xb3, 0xb3, 0xbb, 0xaa, 0xaa, 0xaa, 0xc3, 0x3c, 0x3c, 0x3c, 0xff, +0x3c, 0x3c, 0x3c, 0xfd, 0xf1, 0xf1, 0xf1, 0x71, 0xff, 0xff, 0xff, 0x01, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x18, +0x88, 0x88, 0x88, 0xd7, 0x4c, 0x4c, 0x4c, 0xf4, 0xff, 0xff, 0xff, 0x59, +0x89, 0x89, 0x89, 0xd5, 0x00, 0x00, 0x00, 0xff, 0xb4, 0xb4, 0xb4, 0xb6, +0xff, 0xff, 0xff, 0x6a, 0x2b, 0x2b, 0x2b, 0xff, 0xaa, 0xaa, 0xaa, 0xb7, +0xff, 0xff, 0xff, 0x08, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xfe, 0xfe, 0xfe, 0x4c, 0x32, 0x32, 0x32, 0xff, +0x91, 0x91, 0x91, 0xcd, 0xff, 0xff, 0xff, 0x12, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x25, +0x8e, 0x8e, 0x8e, 0xd7, 0x18, 0x18, 0x18, 0xff, 0xa1, 0xa1, 0xa1, 0xd0, +0xb9, 0xb9, 0xb9, 0xb7, 0x57, 0x57, 0x57, 0xf4, 0x32, 0x32, 0x32, 0xff, +0xf0, 0xf0, 0xf0, 0x70, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x01, 0xc7, 0xc7, 0xc7, 0x9a, 0x1f, 0x1f, 0x1f, 0xff, +0xf9, 0xf9, 0xf9, 0x78, 0xd1, 0xd1, 0xd1, 0x9e, 0x00, 0x00, 0x00, 0xff, +0x5c, 0x5c, 0x5c, 0xee, 0xff, 0xff, 0xff, 0x5b, 0x7a, 0x7a, 0x7a, 0xdd, +0x92, 0x92, 0x92, 0xc3, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x05, +0xfa, 0xfa, 0xfa, 0x63, 0x89, 0x89, 0x89, 0xd5, 0x4b, 0x4b, 0x4b, 0xfc, +0x4b, 0x4b, 0x4b, 0xfe, 0x77, 0x77, 0x77, 0xdf, 0xec, 0xec, 0xec, 0x7a, +0xff, 0xff, 0xff, 0x0c, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x03, 0xd1, 0xd1, 0xd1, 0x86, 0x8e, 0x8e, 0x8e, 0xd1, +0xfd, 0xfd, 0xfd, 0x37, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xeb, 0xeb, 0xeb, 0x5b, 0x81, 0x81, 0x81, 0xd4, 0xef, 0xef, 0xef, 0x5b, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x04, +0xce, 0xce, 0xce, 0x89, 0x91, 0x91, 0x91, 0xcd, 0xfe, 0xfe, 0xfe, 0x31, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xef, 0xef, 0xef, 0x5d, +0x7a, 0x7a, 0x7a, 0xd9, 0xda, 0xda, 0xda, 0x73, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x14, +0xe0, 0xe0, 0xe0, 0x8c, 0x6a, 0x6a, 0x6a, 0xe5, 0x49, 0x49, 0x49, 0xff, +0x4a, 0x4a, 0x4a, 0xfd, 0x7b, 0x7b, 0x7b, 0xdc, 0xf0, 0xf0, 0xf0, 0x77, +0xff, 0xff, 0xff, 0x0c, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0b, 0xbf, 0xbf, 0xbf, 0x9e, +0x9e, 0x9e, 0x9e, 0xbb, 0xff, 0xff, 0xff, 0x22, 0xdd, 0xdd, 0xdd, 0x7d, +0x79, 0x79, 0x79, 0xda, 0xf2, 0xf2, 0xf2, 0x5c, 0xff, 0xff, 0xff, 0x36, +0x8d, 0x8d, 0x8d, 0xd0, 0xd1, 0xd1, 0xd1, 0x80, 0xff, 0xff, 0xff, 0x01, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x2e, 0x8b, 0x8b, 0x8b, 0xcf, 0xc0, 0xc0, 0xc0, 0x97, +0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x4d, +0x9a, 0x9a, 0x9a, 0xcc, 0x4c, 0x4c, 0x4c, 0xfa, 0x49, 0x49, 0x49, 0xff, +0x6a, 0x6a, 0x6a, 0xe6, 0xe2, 0xe2, 0xe2, 0x88, 0xff, 0xff, 0xff, 0x11, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xe1, 0xe1, 0xe1, 0x68, 0x86, 0x86, 0x86, 0xd3, 0xf9, 0xf9, 0xf9, 0x46, +0xff, 0xff, 0xff, 0x46, 0x80, 0x80, 0x80, 0xd7, 0xc5, 0xc5, 0xc5, 0x9a, +0xff, 0xff, 0xff, 0x1c, 0xb7, 0xb7, 0xb7, 0xa0, 0xc5, 0xc5, 0xc5, 0x8a, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x21, 0xff, 0xff, 0xff, 0x44, 0xfe, 0xfe, 0xfe, 0x45, +0xff, 0xff, 0xff, 0x28, 0xff, 0xff, 0xff, 0x02, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x10, 0xff, 0xff, 0xff, 0x1b, 0xff, 0xff, 0xff, 0x05, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0a, +0xff, 0xff, 0xff, 0x1d, 0xff, 0xff, 0xff, 0x0a, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x10, +0xff, 0xff, 0xff, 0x1b, 0xff, 0xff, 0xff, 0x05, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x09, 0xff, 0xff, 0xff, 0x21, +0xff, 0xff, 0xff, 0x11, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x06, +0xff, 0xff, 0xff, 0x2d, 0xfe, 0xfe, 0xfe, 0x47, 0xff, 0xff, 0xff, 0x46, +0xff, 0xff, 0xff, 0x26, 0xff, 0xff, 0xff, 0x02, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x01, 0xff, 0xff, 0xff, 0x13, 0xff, 0xff, 0xff, 0x17, +0xff, 0xff, 0xff, 0x02, 0xff, 0xff, 0xff, 0x0d, 0xff, 0xff, 0xff, 0x21, +0xff, 0xff, 0xff, 0x08, 0xff, 0xff, 0xff, 0x05, 0xff, 0xff, 0xff, 0x1b, +0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x05, +0xff, 0xff, 0xff, 0x1e, 0xff, 0xff, 0xff, 0x14, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x1c, +0xff, 0xff, 0xff, 0x42, 0xfd, 0xfd, 0xfd, 0x48, 0xff, 0xff, 0xff, 0x2e, +0xff, 0xff, 0xff, 0x06, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, +0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x0c, +0xff, 0xff, 0xff, 0x1c, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0x05, +0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0x12, 0xff, 0xff, 0xff, 0x01, +0xff, 0xff, 0xff, 0x11, 0xff, 0xff, 0xff, 0x0e }; + +#endif /* CR_LOGO_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_matrix.h b/src/VBox/GuestHost/OpenGL/include/cr_matrix.h new file mode 100644 index 00000000..7bc2c9d9 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_matrix.h @@ -0,0 +1,96 @@ + +#ifndef CR_MATRIX_H +#define CR_MATRIX_H + +#include "chromium.h" + +#include <iprt/cdefs.h> + +/* + * Note: m[col][row] matches OpenGL's column-major memory layout + */ +typedef struct { + float m00, m01, m02, m03; + float m10, m11, m12, m13; + float m20, m21, m22, m23; + float m30, m31, m32, m33; +} CRmatrix; + +typedef struct { GLfloat x,y,z,w; } GLvectorf; +typedef struct { GLdouble x,y,z,w; } GLvectord; + +#ifdef __cplusplus +extern "C" { +#endif + +extern DECLEXPORT(void) +crMatrixInit(CRmatrix *m); + +extern DECLEXPORT(void) +crMatrixInitFromString(CRmatrix *m, const char *s); + +extern DECLEXPORT(void) +crMatrixInitFromFloats(CRmatrix *m, const float *v); + +extern DECLEXPORT(void) +crMatrixInitFromDoubles(CRmatrix *m, const double *v); + +extern DECLEXPORT(void) +crMatrixPrint(const char *msg, const CRmatrix *m); + +extern DECLEXPORT(void) +crMatrixGetFloats(float *values, const CRmatrix *m); + +extern DECLEXPORT(int) +crMatrixIsEqual(const CRmatrix *m, const CRmatrix *n); + +extern DECLEXPORT(int) +crMatrixIsIdentity(const CRmatrix *m); + +extern DECLEXPORT(int) +crMatrixIsOrthographic(const CRmatrix *m); + +extern DECLEXPORT(void) +crMatrixCopy(CRmatrix *dest, const CRmatrix *src); + +extern DECLEXPORT(void) +crMatrixMultiply(CRmatrix *p, const CRmatrix *a, const CRmatrix *b); + +extern DECLEXPORT(void) +crMatrixTransformPointf(const CRmatrix *m, GLvectorf *p); + +extern DECLEXPORT(void) +crMatrixTransformPointd(const CRmatrix *m, GLvectord *p); + +extern DECLEXPORT(void) +crMatrixInvertTranspose(CRmatrix *inv, const CRmatrix *mat); + +extern DECLEXPORT(void) +crMatrixTranspose(CRmatrix *t, const CRmatrix *m); + +extern DECLEXPORT(void) +crMatrixTranslate(CRmatrix *m, float x, float y, float z); + +extern DECLEXPORT(void) +crMatrixRotate(CRmatrix *m, float angle, float x, float y, float z); + +extern DECLEXPORT(void) +crMatrixScale(CRmatrix *m, float x, float y, float z); + +extern DECLEXPORT(void) +crMatrixFrustum(CRmatrix *m, + float left, float right, + float bottom, float top, + float zNear, float zFar); + +extern DECLEXPORT(void) +crMatrixOrtho(CRmatrix *m, + float left, float right, + float bottom, float top, + float znear, float zfar); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/src/VBox/GuestHost/OpenGL/include/cr_mem.h b/src/VBox/GuestHost/OpenGL/include/cr_mem.h new file mode 100644 index 00000000..a9c776e2 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_mem.h @@ -0,0 +1,38 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_MEM_H +#define CR_MEM_H + +#include <iprt/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define DEBUG_MEM 0 + +void *crAllocDebug( unsigned int nbytes, const char *file, int line ); +void *crCallocDebug( unsigned int nbytes, const char *file, int line ); +#if DEBUG_MEM +#define crAlloc(N) crAllocDebug(N, __FILE__, __LINE__) +#define crCalloc(N) crCallocDebug(N, __FILE__, __LINE__) +#else +extern DECLEXPORT(void *) crAlloc( unsigned int nbytes ); +extern DECLEXPORT(void *) crCalloc( unsigned int nbytes ); +#endif +extern DECLEXPORT(void) crRealloc( void **ptr, unsigned int bytes ); +extern DECLEXPORT(void) crFree( void *ptr ); +extern DECLEXPORT(void) crMemcpy( void *dst, const void *src, unsigned int bytes ); +extern DECLEXPORT(void) crMemset( void *ptr, int value, unsigned int bytes ); +extern DECLEXPORT(void) crMemZero( void *ptr, unsigned int bytes ); +extern DECLEXPORT(int) crMemcmp( const void *p1, const void *p2, unsigned int bytes ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_MEM_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_net.h b/src/VBox/GuestHost/OpenGL/include/cr_net.h new file mode 100644 index 00000000..b95b4268 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_net.h @@ -0,0 +1,360 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_NET_H +#define CR_NET_H + +#ifdef WINDOWS +#define WIN32_LEAN_AND_MEAN +# ifndef VBOX +#pragma warning( push, 3 ) /* shut up about warnings in YOUR OWN HEADER FILES!!! */ +#include <winsock.h> +# else +# include <iprt/win/winsock.h> +# endif /* VBOX */ +#endif + +#include <stdio.h> + +#ifndef WINDOWS +#include <sys/socket.h> +#ifndef DARWIN +#ifdef AF_INET6 +/* getaddrinfo & co appeared with ipv6 */ +#define ADDRINFO +#endif +#endif +#include <netinet/in.h> +#endif + +#ifdef SunOS +#include <sys/types.h> +#endif + +#include "cr_protocol.h" +#include "cr_threads.h" + +#include <iprt/types.h> +#include <iprt/thread.h> +#include <iprt/list.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define DEFAULT_SERVER_PORT 7000 + +/* If you change this, update DefaultMothershipPort in mothership.py */ +#define DEFAULT_MOTHERSHIP_PORT 10000 + +typedef struct CRConnection CRConnection; + +typedef enum { + CR_NO_CONNECTION, + CR_SDP, + CR_TCPIP, + CR_UDPTCPIP, + CR_FILE, + CR_GM, + CR_IB, + CR_TEAC, + CR_TCSCOMM, + CR_VBOXHGCM, + CR_DROP_PACKETS +} CRConnectionType; + +#if defined(WINDOWS) +typedef SOCKET CRSocket; +#else +typedef int CRSocket; +#endif + +typedef void (*CRVoidFunc)( void ); +typedef int (*CRNetReceiveFunc)( CRConnection *conn, CRMessage *msg, unsigned int len ); +typedef int (*CRNetConnectFunc)( CRConnection *conn ); +typedef void (*CRNetCloseFunc)( unsigned int sender_id ); + +typedef struct __recvFuncList { + CRNetReceiveFunc recv; + struct __recvFuncList *next; +} CRNetReceiveFuncList; + +typedef struct __closeFuncList { + CRNetCloseFunc close; + struct __closeFuncList *next; +} CRNetCloseFuncList; + +typedef struct __messageListNode { + CRMessage *mesg; /* the actual message (header + payload) */ + unsigned int len; /* length of message (header + payload) */ + CRConnection *conn; /* some messages are assoc. with specific connections*/ + struct __messageListNode *next; /* next in list */ +} CRMessageListNode; + +typedef struct { + CRMessageListNode *head, *tail; + int numMessages; + CRmutex lock; + CRcondition nonEmpty; +} CRMessageList; + + +/** + * Used to accumulate CR_MESSAGE_MULTI_BODY/TAIL chunks into one big buffer. + */ +typedef struct CRMultiBuffer { + unsigned int len; /* current length (<= max) (with sizeof_buffer_header) */ + unsigned int max; /* size in bytes of data buffer */ + void *buf; /* data buffer */ +} CRMultiBuffer; + +#ifdef VBOX_WITH_CRHGSMI +# ifdef IN_GUEST +typedef struct CRVBOXHGSMI_CLIENT { + struct VBOXUHGSMI *pHgsmi; + struct VBOXUHGSMI_BUFFER *pCmdBuffer; + struct VBOXUHGSMI_BUFFER *pHGBuffer; + void *pvHGBuffer; + struct CRBufferPool_t *bufpool; +} CRVBOXHGSMI_CLIENT, *PCRVBOXHGSMI_CLIENT; +#endif /* IN_GUEST */ +#endif /* #ifdef VBOX_WITH_CRHGSMI */ +/** + * Chromium network connection (bidirectional). + */ +struct CRConnection { + int ignore; + CRConnectionType type; + unsigned int id; /* obtained from the mothership (if brokered) */ + + /* List of messages that we've received on the network connection but + * nobody has yet consumed. + */ + CRMessageList messageList; + + CRMultiBuffer multi; + + unsigned int mtu; /* max transmission unit size (in bytes) */ + unsigned int buffer_size; + unsigned int krecv_buf_size; + int broker; /* is connection brokered through mothership? */ + int threaded; /* is this a threaded connection? */ + int endianness, swap; + int actual_network; /* is this a real network? */ + + unsigned char *userbuf; + int userbuf_len; + + char *hostname; + int port; + + /* To allocate a data buffer of size conn->buffer_size bytes */ + void *(*Alloc)( CRConnection *conn ); + /* To indicate the client's done with a data buffer */ + void (*Free)( CRConnection *conn, void *buf ); + /* To send a data buffer. If bufp is non-null, it must have been obtained + * from Alloc() and it'll be freed when Send() returns. + */ + void (*Send)( CRConnection *conn, void **buf, const void *start, unsigned int len ); + /* To send a data buffer than can optionally be dropped on the floor */ + void (*Barf)( CRConnection *conn, void **buf, const void *start, unsigned int len ); + /* To send 'len' bytes from buffer at 'start', no funny business */ + void (*SendExact)( CRConnection *conn, const void *start, unsigned int len ); + /* To receive data. 'len' bytes will be placed into 'buf'. */ + void (*Recv)( CRConnection *conn, void *buf, unsigned int len ); + /* To receive one message on the connection */ + void (*RecvMsg)( CRConnection *conn ); + /* What's this??? */ + void (*InstantReclaim)( CRConnection *conn, CRMessage *mess ); + /* Called when a full CR_MESSAGE_MULTI_HEAD/TAIL message has been received */ + void (*HandleNewMessage)( CRConnection *conn, CRMessage *mess, unsigned int len ); + /* To accept a new connection from a client */ + void (*Accept)( CRConnection *conn, const char *hostname, unsigned short port ); + /* To connect to a server (return 0 if error, 1 if success) */ + int (*Connect)( CRConnection *conn ); + /* To disconnect from a server */ + void (*Disconnect)( CRConnection *conn ); + + unsigned int sizeof_buffer_header; + + /* logging */ + int total_bytes_sent; + int total_bytes_recv; + int recv_count; + int opcodes_count; + + /* credits for flow control */ + int send_credits; + int recv_credits; + + /* TCP/IP */ + CRSocket tcp_socket; + int index; + + CRSocket sdp_socket; + + /* UDP/IP */ + CRSocket udp_socket; +#ifndef ADDRINFO + struct sockaddr_in remoteaddr; +#else + struct sockaddr_storage remoteaddr; +#endif + + /* UDP/TCP/IP */ + unsigned int seq; + unsigned int ack; + void *udp_packet; + int udp_packetlen; + + /* FILE Tracing */ + enum { CR_FILE_WRITE, CR_FILE_READ } file_direction; + char *filename; + int fd; + + /* Myrinet GM */ + unsigned int gm_node_id; + unsigned int gm_port_num; + + /* Mellanox IB */ + unsigned int ib_node_id; + unsigned int ib_port_num; + + /* Quadrics Elan3 (teac) */ + int teac_id; + int teac_rank; + + /* Quadrics Elan3 (tcscomm) */ + int tcscomm_id; + int tcscomm_rank; + + /* VBox HGCM */ + uint32_t u32ClientID; + uint8_t *pBuffer; + uint32_t cbBuffer; + uint8_t *pHostBuffer; + uint32_t cbHostBufferAllocated; + uint32_t cbHostBuffer; +#ifdef IN_GUEST + uint32_t u32InjectClientID; +# ifdef VBOX_WITH_CRHGSMI + CRVBOXHGSMI_CLIENT HgsmiClient; + struct VBOXUHGSMI *pExternalHgsmi; +# endif +#else +# ifdef VBOX_WITH_CRHGSMI + struct _crclient *pClient; /* back reference, just for simplicity */ + CRVBOXHGSMI_CMDDATA CmdData; +# endif + RTLISTANCHOR PendingMsgList; +#endif + /* Used on host side to indicate that we are not allowed to store above pointers for later use + * in crVBoxHGCMReceiveMessage. As those messages are going to be processed after the corresponding + * HGCM call is finished and memory is freed. So we have to store a copy. + * This happens when message processing for client associated with this connection + * is blocked by another client, which has send us glBegin call and we're waiting to receive glEnd. + */ + uint8_t allow_redir_ptr; + + uint32_t vMajor, vMinor; /*Protocol version*/ +}; + + +/* + * Network functions + */ +extern DECLEXPORT(int) crGetHostname( char *buf, unsigned int len ); + +extern DECLEXPORT(void) crNetInit( CRNetReceiveFunc recvFunc, CRNetCloseFunc closeFunc ); +extern DECLEXPORT(void) crNetTearDown(void); + +extern DECLEXPORT(void) *crNetAlloc( CRConnection *conn ); +extern DECLEXPORT(void) crNetFree( CRConnection *conn, void *buf ); + +extern DECLEXPORT(void) crNetAccept( CRConnection *conn, const char *hostname, unsigned short port ); +extern DECLEXPORT(int) crNetConnect( CRConnection *conn ); +extern DECLEXPORT(void) crNetDisconnect( CRConnection *conn ); +extern DECLEXPORT(void) crNetFreeConnection( CRConnection *conn ); +extern DECLEXPORT(void) crCloseSocket( CRSocket sock ); + +extern DECLEXPORT(void) crNetSend( CRConnection *conn, void **bufp, const void *start, unsigned int len ); +extern DECLEXPORT(void) crNetBarf( CRConnection *conn, void **bufp, const void *start, unsigned int len ); +extern DECLEXPORT(void) crNetSendExact( CRConnection *conn, const void *start, unsigned int len ); +extern DECLEXPORT(void) crNetSingleRecv( CRConnection *conn, void *buf, unsigned int len ); +extern DECLEXPORT(unsigned int) crNetGetMessage( CRConnection *conn, CRMessage **message ); +extern DECLEXPORT(unsigned int) crNetPeekMessage( CRConnection *conn, CRMessage **message ); +extern DECLEXPORT(int) crNetNumMessages(CRConnection *conn); +extern DECLEXPORT(void) crNetReadline( CRConnection *conn, void *buf ); +extern DECLEXPORT(int) crNetRecv( +#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) + CRConnection *conn +#else + void +#endif + ); +#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) +#define CR_WRITEBACK_WAIT(_conn, _writeback) do { \ + while (_writeback) { \ + RTThreadYield(); \ + crNetRecv(_conn); \ + } \ + } while (0) +#else +#define CR_WRITEBACK_WAIT(_conn, _writeback) do { \ + while (_writeback) { \ + RTThreadYield(); \ + crNetRecv(); \ + } \ + } while (0) + +#endif +#ifdef IN_GUEST +extern DECLEXPORT(uint32_t) crNetHostCapsGet(void); +#endif +extern DECLEXPORT(void) crNetDefaultRecv( CRConnection *conn, CRMessage *msg, unsigned int len ); +extern DECLEXPORT(void) crNetDispatchMessage( CRNetReceiveFuncList *rfl, CRConnection *conn, CRMessage *msg, unsigned int len ); + +extern DECLEXPORT(CRConnection *) crNetConnectToServer( const char *server, unsigned short default_port, int mtu, int broker +#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) + , struct VBOXUHGSMI *pHgsmi +#endif +); +extern DECLEXPORT(CRConnection *) crNetAcceptClient( const char *protocol, const char *hostname, unsigned short port, unsigned int mtu, int broker ); + + +extern DECLEXPORT(void) crInitMessageList(CRMessageList *list); +extern DECLEXPORT(void) crEnqueueMessage(CRMessageList *list, CRMessage *msg, unsigned int len, CRConnection *conn); +extern DECLEXPORT(void) crDequeueMessage(CRMessageList *list, CRMessage **msg, unsigned int *len, CRConnection **conn); + +extern DECLEXPORT(void) crNetRecvReadPixels( const CRMessageReadPixels *rp, unsigned int len ); + + +/* + * Quadrics stuff + */ +#define CR_QUADRICS_DEFAULT_LOW_CONTEXT 32 +#define CR_QUADRICS_DEFAULT_HIGH_CONTEXT 35 + +extern DECLEXPORT(void) crNetSetRank( int my_rank ); +extern DECLEXPORT(void) crNetSetContextRange( int low_context, int high_context ); +extern DECLEXPORT(void) crNetSetNodeRange( const char *low_node, const char *high_node ); +extern DECLEXPORT(void) crNetSetKey( const unsigned char* key, const int keyLength ); + + +/* + * Socket callback facility + */ +#define CR_SOCKET_CREATE 1 +#define CR_SOCKET_DESTROY 2 +typedef void (*CRSocketCallbackProc)(int mode, int socket); +extern DECLEXPORT(void) crRegisterSocketCallback(int mode, CRSocketCallbackProc proc); + + +#ifdef __cplusplus +} +#endif + +#endif /* CR_NET_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_netserver.h b/src/VBox/GuestHost/OpenGL/include/cr_netserver.h new file mode 100644 index 00000000..6f80835b --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_netserver.h @@ -0,0 +1,39 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_NETSERVER_H +#define CR_NETSERVER_H + +#include "cr_net.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + char *name; + int buffer_size; + CRConnection *conn; +} CRNetServer; + +DECLEXPORT(void) crNetServerConnect( CRNetServer *ns +#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) + , struct VBOXUHGSMI *pHgsmi +#endif + ); +DECLEXPORT(void) crNetNewClient( CRNetServer *ns +#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) + , struct VBOXUHGSMI *pHgsmi +#endif +); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_NETSERVER_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_pack.h b/src/VBox/GuestHost/OpenGL/include/cr_pack.h new file mode 100644 index 00000000..ad2c6066 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_pack.h @@ -0,0 +1,442 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_PACK_H +#define CR_PACK_H + +#include "cr_compiler.h" +#include "cr_error.h" +#include "cr_protocol.h" +#include "cr_opcodes.h" +#include "cr_endian.h" +#include "state/cr_statetypes.h" +#include "state/cr_currentpointers.h" +#include "state/cr_client.h" +#ifdef CHROMIUM_THREADSAFE +#include "cr_threads.h" +#endif + +#include <iprt/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct CRPackContext_t CRPackContext; + +/** + * Packer buffer + */ +typedef struct +{ + void *pack; /**< the actual storage space/buffer */ + unsigned int size; /**< size of pack[] buffer */ + unsigned int mtu; + unsigned char *data_start, *data_current, *data_end; + unsigned char *opcode_start, *opcode_current, *opcode_end; + GLboolean geometry_only; /**< just used for debugging */ + GLboolean holds_BeginEnd; + GLboolean in_BeginEnd; + GLboolean canBarf; + GLboolean holds_List; + GLboolean in_List; + CRPackContext *context; +} CRPackBuffer; + +typedef void (*CRPackFlushFunc)(void *arg); +typedef void (*CRPackSendHugeFunc)(CROpcode, void *); +typedef void (*CRPackErrorHandlerFunc)(int line, const char *file, GLenum error, const char *info); + +#define CRPACKBLOCKSTATE_OP_BEGIN 0x01 +#define CRPACKBLOCKSTATE_OP_NEWLIST 0x02 +#define CRPACKBLOCKSTATE_OP_BEGINQUERY 0x04 +#define CRPACKBLOCKSTATE_OP_ALL 0x07 + +#define CRPACKBLOCKSTATE_IS_OP_STARTED(_state, _op) (!!((_state) & (_op))) + +#define CRPACKBLOCKSTATE_IS_STARTED(_state) (!!(_state)) + +#define CRPACKBLOCKSTATE_OP_START(_state, _op) do { \ + Assert(!CRPACKBLOCKSTATE_IS_OP_STARTED(_state, _op)); \ + (_state) |= (_op); \ + } while (0) + +#define CRPACKBLOCKSTATE_OP_STOP(_state, _op) do { \ + Assert(CRPACKBLOCKSTATE_IS_OP_STARTED(_state, _op)); \ + (_state) &= ~(_op); \ + } while (0) + +/** + * Packer context + */ +struct CRPackContext_t +{ + CRPackBuffer buffer; /**< not a pointer, see comments in pack_buffer.c */ + CRPackFlushFunc Flush; + void *flush_arg; + CRPackSendHugeFunc SendHuge; + CRPackErrorHandlerFunc Error; + CRCurrentStatePointers current; + uint32_t u32CmdBlockState; + GLvectorf bounds_min, bounds_max; + int updateBBOX; + int swapping; + CRPackBuffer *currentBuffer; +#ifdef CHROMIUM_THREADSAFE + CRmutex mutex; +#endif + char *file; /**< for debugging only */ + int line; /**< for debugging only */ +}; + +#if !defined(IN_RING0) +# define CR_PACKER_CONTEXT_ARGSINGLEDECL void +# define CR_PACKER_CONTEXT_ARGDECL +# define CR_PACKER_CONTEXT_ARG +# define CR_PACKER_CONTEXT_ARG_NOREF() do {} while (0) +# define CR_PACKER_CONTEXT_ARGCTX(C) +# ifdef CHROMIUM_THREADSAFE +extern CRtsd _PackerTSD; +# define CR_GET_PACKER_CONTEXT(C) CRPackContext *C = (CRPackContext *) crGetTSD(&_PackerTSD) +# define CR_LOCK_PACKER_CONTEXT(PC) crLockMutex(&((PC)->mutex)) +# define CR_UNLOCK_PACKER_CONTEXT(PC) crUnlockMutex(&((PC)->mutex)) +# else +extern DLLDATA(CRPackContext) cr_packer_globals; +# define CR_GET_PACKER_CONTEXT(C) CRPackContext *C = &cr_packer_globals +# define CR_LOCK_PACKER_CONTEXT(PC) +# define CR_UNLOCK_PACKER_CONTEXT(PC) +# endif +extern uint32_t cr_packer_cmd_blocks_enabled; +#else /* if defined IN_RING0 */ +# define CR_PACKER_CONTEXT_ARGSINGLEDECL CRPackContext *_pCtx +# define CR_PACKER_CONTEXT_ARGDECL CR_PACKER_CONTEXT_ARGSINGLEDECL, +# define CR_PACKER_CONTEXT_ARG _pCtx, +# define CR_PACKER_CONTEXT_ARG_NOREF() RT_NOREF_PV(_pCtx) +# define CR_PACKER_CONTEXT_ARGCTX(C) C, +# define CR_GET_PACKER_CONTEXT(C) CRPackContext *C = _pCtx +# define CR_LOCK_PACKER_CONTEXT(PC) +# define CR_UNLOCK_PACKER_CONTEXT(PC) +#endif + +extern DECLEXPORT(CRPackContext *) crPackNewContext(int swapping); +extern DECLEXPORT(void) crPackDeleteContext(CRPackContext *pc); +extern DECLEXPORT(void) crPackSetContext( CRPackContext *pc ); +extern DECLEXPORT(CRPackContext *) crPackGetContext( void ); + +extern DECLEXPORT(void) crPackSetBuffer( CRPackContext *pc, CRPackBuffer *buffer ); +extern DECLEXPORT(void) crPackSetBufferDEBUG( const char *file, int line, CRPackContext *pc, CRPackBuffer *buffer ); +extern DECLEXPORT(void) crPackReleaseBuffer( CRPackContext *pc ); +extern DECLEXPORT(void) crPackResetPointers( CRPackContext *pc ); + +extern DECLEXPORT(int) crPackMaxOpcodes( int buffer_size ); +extern DECLEXPORT(int) crPackMaxData( int buffer_size ); +extern DECLEXPORT(void) crPackInitBuffer( CRPackBuffer *buffer, void *buf, int size, int mtu +#ifdef IN_RING0 + , unsigned int num_opcodes +#endif + ); + +extern DECLEXPORT(void) crPackFlushFunc( CRPackContext *pc, CRPackFlushFunc ff ); +extern DECLEXPORT(void) crPackFlushArg( CRPackContext *pc, void *flush_arg ); +extern DECLEXPORT(void) crPackSendHugeFunc( CRPackContext *pc, CRPackSendHugeFunc shf ); +extern DECLEXPORT(void) crPackErrorFunction( CRPackContext *pc, CRPackErrorHandlerFunc errf ); +extern DECLEXPORT(void) crPackOffsetCurrentPointers( int offset ); +extern DECLEXPORT(void) crPackNullCurrentPointers( void ); + +extern DECLEXPORT(void) crPackResetBoundingBox( CRPackContext *pc ); +extern DECLEXPORT(GLboolean) crPackGetBoundingBox( CRPackContext *pc, + GLfloat *xmin, GLfloat *ymin, GLfloat *zmin, + GLfloat *xmax, GLfloat *ymax, GLfloat *zmax); + +extern DECLEXPORT(void) crPackAppendBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *buffer ); +extern DECLEXPORT(void) crPackAppendBoundedBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *buffer, const CRrecti *bounds ); +extern DECLEXPORT(int) crPackCanHoldBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *buffer ); +extern DECLEXPORT(int) crPackCanHoldBoundedBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *buffer ); + +#if defined(LINUX) || defined(WINDOWS) +#define CR_UNALIGNED_ACCESS_OKAY +#else +#undef CR_UNALIGNED_ACCESS_OKAY +#endif +#ifndef IN_RING0 +extern DECLEXPORT(void) crWriteUnalignedDouble( void *buffer, double d ); +extern DECLEXPORT(void) crWriteSwappedDouble( void *buffer, double d ); +#endif + +extern DECLEXPORT(void) *crPackAlloc( CR_PACKER_CONTEXT_ARGDECL unsigned int len ); +extern DECLEXPORT(void) crHugePacket( CR_PACKER_CONTEXT_ARGDECL CROpcode op, void *ptr ); +extern DECLEXPORT(void) crPackFree( CR_PACKER_CONTEXT_ARGDECL void *ptr ); +extern DECLEXPORT(void) crNetworkPointerWrite( CRNetworkPointer *, void * ); + +extern DECLEXPORT(void) crPackExpandDrawArrays(GLenum mode, GLint first, GLsizei count, CRClientState *c, const GLfloat *pZva); +extern DECLEXPORT(void) crPackExpandDrawArraysSWAP(GLenum mode, GLint first, GLsizei count, CRClientState *c, const GLfloat *pZva); + +extern DECLEXPORT(void) crPackUnrollDrawElements(GLsizei count, GLenum type, const GLvoid *indices); +extern DECLEXPORT(void) crPackUnrollDrawElementsSWAP(GLsizei count, GLenum type, const GLvoid *indices); + +extern DECLEXPORT(void) crPackExpandDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, CRClientState *c, const GLfloat *pZva); +extern DECLEXPORT(void) crPackExpandDrawElementsSWAP(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, CRClientState *c, const GLfloat *pZva); + +extern DECLEXPORT(void) crPackExpandDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, CRClientState *c, const GLfloat *pZva); +extern DECLEXPORT(void) crPackExpandDrawRangeElementsSWAP(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, CRClientState *c, const GLfloat *pZva); + +extern DECLEXPORT(void) crPackExpandArrayElement(GLint index, CRClientState *c, const GLfloat *pZva); +extern DECLEXPORT(void) crPackExpandArrayElementSWAP(GLint index, CRClientState *c, const GLfloat *pZva); + +extern DECLEXPORT(void) crPackExpandMultiDrawArraysEXT( GLenum mode, GLint *first, GLsizei *count, GLsizei primcount, CRClientState *c, const GLfloat *pZva ); +extern DECLEXPORT(void) crPackExpandMultiDrawArraysEXTSWAP( GLenum mode, GLint *first, GLsizei *count, GLsizei primcount, CRClientState *c, const GLfloat *pZva ); + +extern DECLEXPORT(void) crPackExpandMultiDrawElementsEXT( GLenum mode, const GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount, CRClientState *c, const GLfloat *pZva ); +extern DECLEXPORT(void) crPackExpandMultiDrawElementsEXTSWAP( GLenum mode, const GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount, CRClientState *c, const GLfloat *pZva ); + +extern DECLEXPORT(void) crPackCapsSet(uint32_t u32Caps); + +/** + * Return number of opcodes in given buffer. + */ +static INLINE int +crPackNumOpcodes(const CRPackBuffer *buffer) +{ + CRASSERT(buffer->opcode_start - buffer->opcode_current >= 0); + return buffer->opcode_start - buffer->opcode_current; +} + +DECLINLINE(bool) crPackBufferIsEmpty(CRPackBuffer *buffer) +{ + return crPackNumOpcodes(buffer) == 0; +} + +/** + * Return amount of data (in bytes) in buffer. + */ +static INLINE int +crPackNumData(const CRPackBuffer *buffer) +{ + CRASSERT(buffer->data_current - buffer->data_start >= 0); + return buffer->data_current - buffer->data_start; /* in bytes */ +} + + +static INLINE int +crPackCanHoldOpcode(const CRPackContext *pc, int num_opcode, int num_data) +{ + int fitsInMTU, opcodesFit, dataFits; + + CRASSERT(pc->currentBuffer); + + fitsInMTU = (((pc->buffer.data_current - pc->buffer.opcode_current - 1 + + num_opcode + num_data + + 0x3 ) & ~0x3) + sizeof(CRMessageOpcodes) + <= pc->buffer.mtu); + opcodesFit = (pc->buffer.opcode_current - num_opcode >= pc->buffer.opcode_end); + dataFits = (pc->buffer.data_current + num_data <= pc->buffer.data_end); + + return fitsInMTU && opcodesFit && dataFits; +} + + +#define CR_PACK_SPECIAL_OP( _pc, _op) \ + do { \ + data_ptr = pc->buffer.data_current; \ + (_pc)->buffer.data_current += 4; \ + WRITE_OPCODE( (_pc), (_op) ); \ + WRITE_DATA( 0, GLuint, 0xdeadbeef ); \ + data_ptr = NULL; /* <- sanity*/ \ + } while (0) + +#define CR_CMDBLOCK_OP( _pc, _op) \ + do { \ + CR_PACK_SPECIAL_OP( _pc, _op); \ + } while (0) + +#define CR_CMDBLOCK_IS_STARTED( pc, op ) CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op) + +#define CR_CMDBLOCK_BEGIN( pc, op ) \ + do { \ + CR_LOCK_PACKER_CONTEXT(pc); \ + if (!cr_packer_cmd_blocks_enabled) break; \ + if (!CRPACKBLOCKSTATE_IS_STARTED((pc)->u32CmdBlockState)) { \ + THREADASSERT( pc ); \ + CRASSERT( (pc)->currentBuffer ); \ + if (!crPackBufferIsEmpty(&(pc)->buffer)) { \ + if ((*(pc)->buffer.opcode_start) != CR_NOP_OPCODE) { \ + (pc)->Flush( (pc)->flush_arg ); \ + Assert(crPackCanHoldOpcode( (pc), 1, 4 ) ); \ + CR_CMDBLOCK_OP( (pc), CR_CMDBLOCKBEGIN_OPCODE ); \ + } \ + else { \ + (*(pc)->buffer.opcode_start) = CR_CMDBLOCKBEGIN_OPCODE; \ + } \ + } \ + else { \ + Assert(crPackCanHoldOpcode( (pc), 1, 4 ) ); \ + CR_CMDBLOCK_OP( (pc), CR_CMDBLOCKBEGIN_OPCODE ); \ + } \ + } \ + Assert(!CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op)); \ + CRPACKBLOCKSTATE_OP_START((pc)->u32CmdBlockState, op); \ + Assert(CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op)); \ + } while (0) + +#define CR_CMDBLOCK_END( pc, op ) \ + do { \ + if (!cr_packer_cmd_blocks_enabled) break; \ + Assert(CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op)); \ + CRPACKBLOCKSTATE_OP_STOP((pc)->u32CmdBlockState, op); \ + Assert(!CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op)); \ + if (!CRPACKBLOCKSTATE_IS_STARTED((pc)->u32CmdBlockState)) { \ + THREADASSERT( pc ); \ + CRASSERT( (pc)->currentBuffer ); \ + if (!crPackBufferIsEmpty(&(pc)->buffer)) { \ + if ((*(pc)->buffer.opcode_start) != CR_CMDBLOCKBEGIN_OPCODE) {\ + if ( !crPackCanHoldOpcode( pc, 1, 4 ) ) { \ + (pc)->Flush( (pc)->flush_arg ); \ + Assert(crPackCanHoldOpcode( pc, 1, 4 ) ); \ + } \ + CR_CMDBLOCK_OP( pc, CR_CMDBLOCKEND_OPCODE ); \ + (pc)->Flush( (pc)->flush_arg ); \ + } \ + else { \ + (*(pc)->buffer.opcode_start) = CR_NOP_OPCODE; \ + } \ + } \ + else { \ + Assert(crPackCanHoldOpcode( pc, 1, 4 ) ); \ + CR_CMDBLOCK_OP( pc, CR_CMDBLOCKEND_OPCODE ); \ + (pc)->Flush( pc->flush_arg ); \ + } \ + } \ + } while (0) + +#define CR_CMDBLOCK_CHECK_FLUSH( pc ) \ + do { \ + if (!(cr_packer_cmd_blocks_enabled & CR_VBOX_CAP_CMDBLOCKS_FLUSH)) break; \ + if(!CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, CRPACKBLOCKSTATE_OP_NEWLIST)) break; \ + THREADASSERT( pc ); \ + CRASSERT( (pc)->currentBuffer ); \ + if ( !crPackCanHoldOpcode( pc, 1, 4 ) ) { \ + (pc)->Flush( (pc)->flush_arg ); \ + Assert(crPackCanHoldOpcode( pc, 1, 4 ) ); \ + } \ + CR_CMDBLOCK_OP( pc, CR_CMDBLOCKFLUSH_OPCODE ); \ + (pc)->Flush( (pc)->flush_arg ); \ + } while (0) + +/** + * Alloc space for a message of 'len' bytes (plus 1 opcode). + * Only flush if buffer is full. + */ +#define CR_GET_BUFFERED_POINTER_NO_BEGINEND_FLUSH(pc, len, lock) \ + do { \ + THREADASSERT( pc ); \ + if (lock) CR_LOCK_PACKER_CONTEXT(pc); \ + CRASSERT( pc->currentBuffer ); \ + if ( !crPackCanHoldOpcode( pc, 1, (len) ) ) { \ + pc->Flush( pc->flush_arg ); \ + CRASSERT(crPackCanHoldOpcode( pc, 1, (len) ) ); \ + } \ + data_ptr = pc->buffer.data_current; \ + pc->buffer.data_current += (len); \ + } while (0) + +/** + * As above, flush if the buffer contains vertex data and we're + * no longer inside glBegin/glEnd. + */ +#define CR_GET_BUFFERED_POINTER( pc, len ) \ + do { \ + CR_LOCK_PACKER_CONTEXT(pc); \ + CRASSERT( pc->currentBuffer ); \ + if ( pc->buffer.holds_BeginEnd && !pc->buffer.in_BeginEnd ) { \ + CRASSERT( 0 ); /* should never be here currently */ \ + pc->Flush( pc->flush_arg ); \ + pc->buffer.holds_BeginEnd = 0; \ + } \ + CR_GET_BUFFERED_POINTER_NO_BEGINEND_FLUSH( pc, len, GL_FALSE ); \ + } while (0) + +/** + * As above, but without lock. + */ +#define CR_GET_BUFFERED_POINTER_NOLOCK( pc, len ) \ + do { \ + CRASSERT( pc->currentBuffer ); \ + if ( pc->buffer.holds_BeginEnd && !pc->buffer.in_BeginEnd ) { \ + CRASSERT( 0 ); /* should never be here currently */ \ + pc->Flush( pc->flush_arg ); \ + pc->buffer.holds_BeginEnd = 0; \ + } \ + CR_GET_BUFFERED_POINTER_NO_BEGINEND_FLUSH( pc, len, GL_FALSE ); \ + } while (0) + + +/** + * As above, but for vertex data between glBegin/End (counts vertices). + */ +#define CR_GET_BUFFERED_COUNT_POINTER( pc, len ) \ + do { \ + CR_LOCK_PACKER_CONTEXT(pc); \ + CRASSERT( pc->currentBuffer ); \ + if ( !crPackCanHoldOpcode( pc, 1, (len) ) ) { \ + pc->Flush( pc->flush_arg ); \ + CRASSERT( crPackCanHoldOpcode( pc, 1, (len) ) ); \ + } \ + data_ptr = pc->buffer.data_current; \ + pc->current.vtx_count++; \ + pc->buffer.data_current += (len); \ + } while (0) + + +/** + * Allocate space for a msg/command that has no arguments, such + * as glFinish(). + */ +#define CR_GET_BUFFERED_POINTER_NO_ARGS( pc ) \ + CR_GET_BUFFERED_POINTER( pc, 4 ); \ + WRITE_DATA( 0, GLuint, 0xdeadbeef ) + +#define WRITE_DATA( offset, type, data ) \ + *( (type *) (data_ptr + (offset))) = (data) + +/* Write data to current location and auto increment */ +#define WRITE_DATA_AI(type, data) \ + { \ + *((type*) (data_ptr)) = (data); \ + data_ptr += sizeof(type); \ + } + +#ifdef CR_UNALIGNED_ACCESS_OKAY +#define WRITE_DOUBLE( offset, data ) \ + WRITE_DATA( offset, GLdouble, data ) +#else +# ifndef IN_RING0 +# define WRITE_DOUBLE( offset, data ) \ + crWriteUnalignedDouble( data_ptr + (offset), (data) ) +# else +# define WRITE_DOUBLE( offset, data ) \ + AssertReleaseFailed() +# endif +#endif + +#ifndef IN_RING0 +#define WRITE_SWAPPED_DOUBLE( offset, data ) \ + crWriteSwappedDouble( data_ptr + (offset), (data) ) +#else +#define WRITE_SWAPPED_DOUBLE( offset, data ) \ + AssertReleaseFailed() +#endif + +#define WRITE_OPCODE( pc, opcode ) \ + *(pc->buffer.opcode_current--) = (unsigned char) opcode + +#define WRITE_NETWORK_POINTER( offset, data ) \ + crNetworkPointerWrite( (CRNetworkPointer *) ( data_ptr + (offset) ), (data) ) + +#ifdef __cplusplus +} +#endif + +#endif /* CR_PACK_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_perf.h b/src/VBox/GuestHost/OpenGL/include/cr_perf.h new file mode 100644 index 00000000..3a3f1728 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_perf.h @@ -0,0 +1,76 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_PERF_H +#define CR_PERF_H + +#ifdef __cplusplus +extern "C" { +#endif + + +/** + * For the performance SPU. Allows application to obtain it's own + * statistics, and reset etc. + */ +typedef struct { + int count; + + int v2d, v2f, v2i, v2s; + int v2dv, v2fv, v2iv, v2sv; + int v3d, v3f, v3i, v3s; + int v3dv, v3fv, v3iv, v3sv; + int v4d, v4f, v4i, v4s; + int v4dv, v4fv, v4iv, v4sv; + + int ipoints; /**< Interpreted points */ + int ilines; /**< Interpreted lines */ + int itris; /**< Interpreted tris */ + int iquads; /**< Interpreted quads */ + int ipolygons; /**< Interpreted polygons */ +} PerfVertex; + +/** + * Primitives data + */ +typedef struct { + PerfVertex points; + PerfVertex lines; + PerfVertex lineloop; + PerfVertex linestrip; + PerfVertex triangles; + PerfVertex tristrip; + PerfVertex trifan; + PerfVertex quads; + PerfVertex quadstrip; + PerfVertex polygon; +} PerfPrim; + +typedef struct { + int draw_pixels; + int read_pixels; + + int teximage1DBytes; /**< bytes given to glTexImage1D */ + int teximage2DBytes; /**< bytes given to glTexImage2D */ + int teximage3DBytes; /**< bytes given to glTexImage3D */ + int texsubimage1DBytes; /**< bytes given to glTexSubImage1D */ + int texsubimage2DBytes; /**< bytes given to glTexSubImage2D */ + int texsubimage3DBytes; /**< bytes given to glTexSubImage3D */ + int newLists; /**< glNewList calls */ + int callLists; /**< glCallList(s) calls */ + + PerfVertex *cur_vertex; + PerfVertex vertex_snapshot; + PerfPrim vertex_data; +} PerfData; + + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* CR_PERF_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_pixeldata.h b/src/VBox/GuestHost/OpenGL/include/cr_pixeldata.h new file mode 100644 index 00000000..da3ebe34 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_pixeldata.h @@ -0,0 +1,54 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_PIXELDATA_H +#define CR_PIXELDATA_H + +#include "chromium.h" +#include "state/cr_client.h" + +#include <iprt/cdefs.h> +#include <stdarg.h> + +#ifdef __cplusplus +extern "C" { +#endif + +DECLEXPORT(int) crPixelSize( GLenum format, GLenum type ); + +DECLEXPORT(unsigned int) crImageSize( GLenum format, GLenum type, + GLsizei width, GLsizei height ); + +DECLEXPORT(unsigned int) crTextureSize( GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth ); + +DECLEXPORT(void) crPixelCopy1D( GLvoid *dstPtr, GLenum dstFormat, GLenum dstType, + const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType, + GLsizei width, const CRPixelPackState *srcPacking ); + +DECLEXPORT(void) crPixelCopy2D( GLsizei width, GLsizei height, + GLvoid *dstPtr, GLenum dstFormat, GLenum dstType, + const CRPixelPackState *dstPacking, + const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType, + const CRPixelPackState *srcPacking ); + +DECLEXPORT(void) crPixelCopy3D( GLsizei width, GLsizei height, GLsizei depth, + GLvoid *dstPtr, GLenum dstFormat, GLenum dstType, + const CRPixelPackState *dstPacking, const GLvoid *srcPtr, + GLenum srcFormat, GLenum srcType, + const CRPixelPackState *srcPacking ); + +DECLEXPORT(void) crBitmapCopy( GLsizei width, GLsizei height, GLubyte *dstPtr, + const GLubyte *srcPtr, const CRPixelPackState *srcPacking ); + +DECLEXPORT(void) crDumpNamedTGA(const char *fname, GLint w, GLint h, GLvoid *data); +DECLEXPORT(void) crDumpNamedTGAV(GLint w, GLint h, GLvoid *data, const char* fname, va_list va); +DECLEXPORT(void) crDumpNamedTGAF(GLint w, GLint h, GLvoid *data, const char* fname, ...); +DECLEXPORT(void) crDumpTGA(GLint w, GLint h, GLvoid *data); +#ifdef __cplusplus +} +#endif + +#endif /* CR_PIXELDATA_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_process.h b/src/VBox/GuestHost/OpenGL/include/cr_process.h new file mode 100644 index 00000000..5fd981e0 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_process.h @@ -0,0 +1,54 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_PROCESS_H +#define CR_PROCESS_H + +#ifdef WINDOWS +#define WIN32_LEAN_AND_MEAN +# ifdef VBOX +# include <iprt/win/windows.h> +# else +#include <windows.h> +# endif +#endif + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Process ID type + */ +#ifdef WINDOWS +typedef HANDLE CRpid; +#else +typedef unsigned long CRpid; +#endif + + +extern DECLEXPORT(void) crSleep( unsigned int seconds ); + +extern DECLEXPORT(void) crMsleep( unsigned int msec ); + +extern DECLEXPORT(CRpid) crSpawn( const char *command, const char *argv[] ); + +extern DECLEXPORT(void) crKill( CRpid pid ); + +extern DECLEXPORT(void) crGetProcName( char *name, int maxLen ); + +extern DECLEXPORT(void) crGetCurrentDir( char *dir, int maxLen ); + +extern DECLEXPORT(CRpid) crGetPID(void); + + +#ifdef __cplusplus +} +#endif + +#endif /* CR_PROCESS_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_protocol.h b/src/VBox/GuestHost/OpenGL/include/cr_protocol.h new file mode 100644 index 00000000..c4c7dd54 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_protocol.h @@ -0,0 +1,291 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_PROTOCOL_H +#define CR_PROTOCOL_H + +#include <iprt/types.h> +#include <iprt/cdefs.h> +#ifdef DEBUG_misha +#include "cr_error.h" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define CR_CMDVBVA_VERSION 1 + +#pragma pack(1) +typedef struct CR_CAPS_INFO +{ + uint32_t u32Caps; + uint32_t u32CmdVbvaVersion; +} CR_CAPS_INFO; +#pragma pack() + + +/*For now guest is allowed to connect host opengl service if protocol version matches exactly*/ +/*Note: that after any change to this file, or glapi_parser\apispec.txt version should be changed*/ +#define CR_PROTOCOL_VERSION_MAJOR 9 +#define CR_PROTOCOL_VERSION_MINOR 1 + +/* new TexPresent mechanism is available */ +#define CR_VBOX_CAP_TEX_PRESENT 0x00000001 +/* vbva command submission mechanism supported */ +#define CR_VBOX_CAP_CMDVBVA 0x00000002 +/* host supports Command Blocks, i.e. CR_CMDBLOCKBEGIN_OPCODE and CR_CMDBLOCKEND_OPCODE opcodes. + * Command Block can be used by guest to prevent clients from blocking each other. + * The Command Block allows multiple command buffers to be processed with one run. + * Command Block commands have to obey to the following rules: + * CR_CMDBLOCKBEGIN_OPCODE - must be the first command in the command buffer, specifying the command block start + * CR_CMDBLOCKEND_OPCODE - must be the last command in the command buffer, specifying the command block end + * If not placed accordingly, CR_CMDBLOCK** commands are ignored. + * Server copies the command block buffer commands to its internal storage + * and processes them with one run when the command block end is signalled + */ +#define CR_VBOX_CAP_CMDBLOCKS 0x00000004 +/* GetAttribsLocations support */ +#define CR_VBOX_CAP_GETATTRIBSLOCATIONS 0x00000008 +/* flush command blocks for execution */ +#define CR_VBOX_CAP_CMDBLOCKS_FLUSH 0x00000010 +/* Notify guest if host reports minimal OpenGL capabilities. */ +#define CR_VBOX_CAP_HOST_CAPS_NOT_SUFFICIENT 0x00000020 + +#define CR_VBOX_CAPS_ALL 0x0000003f + + +#define CR_PRESENT_SCREEN_MASK 0xffff +#define CR_PRESENT_FLAGS_OFFSET 16 +#define CR_PRESENT_FLAGS_MASK 0xffff0000 +#define CR_PRESENT_DEFINE_FLAG(_f) (1 << (CR_PRESENT_FLAGS_OFFSET + _f)) + +#define CR_PRESENT_FLAG_CLEAR_RECTS CR_PRESENT_DEFINE_FLAG(0) +#define CR_PRESENT_FLAG_TEX_NONINVERT_YCOORD CR_PRESENT_DEFINE_FLAG(1) + +#define CR_PRESENT_GET_SCREEN(_cfg) ((_cfg) & CR_PRESENT_SCREEN_MASK) +#define CR_PRESENT_GET_FLAGS(_cfg) ((_cfg) & CR_PRESENT_FLAGS_MASK) + +typedef enum { + /* first message types is 'wGL\001', so we can immediately + recognize bad message types */ + CR_MESSAGE_OPCODES = 0x77474c01, + CR_MESSAGE_WRITEBACK, + CR_MESSAGE_READBACK, + CR_MESSAGE_READ_PIXELS, + CR_MESSAGE_MULTI_BODY, + CR_MESSAGE_MULTI_TAIL, + CR_MESSAGE_FLOW_CONTROL, + CR_MESSAGE_OOB, + CR_MESSAGE_NEWCLIENT, + CR_MESSAGE_GATHER, + CR_MESSAGE_ERROR, + CR_MESSAGE_CRUT, + CR_MESSAGE_REDIR_PTR +} CRMessageType; + +typedef union { + /* pointers are usually 4 bytes, but on 64-bit machines (Alpha, + * SGI-n64, etc.) they are 8 bytes. Pass network pointers around + * as an opaque array of bytes, since the interpretation & size of + * the pointer only matter to the machine which emitted the + * pointer (and will eventually receive the pointer back again) */ + unsigned int ptrAlign[2]; + unsigned char ptrSize[8]; + /* hack to make this packet big */ + /* unsigned int junk[512]; */ +} CRNetworkPointer; + +#if 0 /*def DEBUG_misha*/ +#define CRDBGPTR_SETZ(_p) crMemset((_p), 0, sizeof (CRNetworkPointer)) +#define CRDBGPTR_CHECKZ(_p) do { \ + CRNetworkPointer _ptr = {0}; \ + CRASSERT(!crMemcmp((_p), &_ptr, sizeof (CRNetworkPointer))); \ + } while (0) +#define CRDBGPTR_CHECKNZ(_p) do { \ + CRNetworkPointer _ptr = {0}; \ + CRASSERT(crMemcmp((_p), &_ptr, sizeof (CRNetworkPointer))); \ + } while (0) +# if 0 +# define _CRDBGPTR_PRINT(_tStr, _id, _p) do { \ + crDebug(_tStr "%d:0x%08x%08x", (_id), (_p)->ptrAlign[1], (_p)->ptrAlign[0]); \ + } while (0) +# else +# define _CRDBGPTR_PRINT(_tStr, _id, _p) do { } while (0) +# endif +#define CRDBGPTR_PRINTWB(_id, _p) _CRDBGPTR_PRINT("wbptr:", _id, _p) +#define CRDBGPTR_PRINTRB(_id, _p) _CRDBGPTR_PRINT("rbptr:", _id, _p) +#else +#define CRDBGPTR_SETZ(_p) do { } while (0) +#define CRDBGPTR_CHECKZ(_p) do { } while (0) +#define CRDBGPTR_CHECKNZ(_p) do { } while (0) +#define CRDBGPTR_PRINTWB(_id, _p) do { } while (0) +#define CRDBGPTR_PRINTRB(_id, _p) do { } while (0) +#endif + +#ifdef VBOX_WITH_CRHGSMI +typedef struct CRVBOXHGSMI_CMDDATA { + union + { + struct VBOXVDMACMD_CHROMIUM_CMD *pHgsmiCmd; + struct VBOXCMDVBVA_CRCMD_CMD *pVbvaCmd; + const void *pvCmd; + }; + int *pCmdRc; + char *pWriteback; + unsigned int *pcbWriteback; + unsigned int cbWriteback; + bool fHgsmiCmd; +} CRVBOXHGSMI_CMDDATA, *PCRVBOXHGSMI_CMDDATA; + +#ifdef DEBUG +# define CRVBOXHGSMI_CMDDATA_ASSERT_CONSISTENT(_pData) do { \ + CRASSERT(!(_pData)->pvCmd == !(_pData)->pCmdRc); \ + CRASSERT(!(_pData)->pWriteback == !(_pData)->pcbWriteback); \ + CRASSERT(!(_pData)->pWriteback == !(_pData)->cbWriteback); \ + if ((_pData)->pWriteback) \ + { \ + CRASSERT((_pData)->pvCmd); \ + } \ + } while (0) + +# define CRVBOXHGSMI_CMDDATA_ASSERT_CLEANED(_pData) do { \ + CRASSERT(!(_pData)->pvCmd); \ + CRASSERT(!(_pData)->pCmdRc); \ + CRASSERT(!(_pData)->pWriteback); \ + CRASSERT(!(_pData)->pcbWriteback); \ + CRASSERT(!(_pData)->cbWriteback); \ + } while (0) + +# define CRVBOXHGSMI_CMDDATA_ASSERT_ISSET(_pData) do { \ + CRVBOXHGSMI_CMDDATA_ASSERT_CONSISTENT(_pData); \ + CRASSERT(CRVBOXHGSMI_CMDDATA_IS_SET(_pData)); \ + } while (0) + +# define CRVBOXHGSMI_CMDDATA_ASSERT_ISSETWB(_pData) do { \ + CRVBOXHGSMI_CMDDATA_ASSERT_CONSISTENT(_pData); \ + CRASSERT(CRVBOXHGSMI_CMDDATA_IS_SETWB(_pData)); \ + } while (0) +#else +# define CRVBOXHGSMI_CMDDATA_ASSERT_CONSISTENT(_pData) do { } while (0) +# define CRVBOXHGSMI_CMDDATA_ASSERT_CLEANED(_pData) do { } while (0) +# define CRVBOXHGSMI_CMDDATA_ASSERT_ISSET(_pData) do { } while (0) +# define CRVBOXHGSMI_CMDDATA_ASSERT_ISSETWB(_pData) do { } while (0) +#endif + +#define CRVBOXHGSMI_CMDDATA_IS_HGSMICMD(_pData) (!!(_pData)->fHgsmiCmd) +#define CRVBOXHGSMI_CMDDATA_IS_SET(_pData) (!!(_pData)->pvCmd) +#define CRVBOXHGSMI_CMDDATA_IS_SETWB(_pData) (!!(_pData)->pWriteback) + +#define CRVBOXHGSMI_CMDDATA_CLEANUP(_pData) do { \ + crMemset(_pData, 0, sizeof (CRVBOXHGSMI_CMDDATA)); \ + CRVBOXHGSMI_CMDDATA_ASSERT_CLEANED(_pData); \ + CRVBOXHGSMI_CMDDATA_ASSERT_CONSISTENT(_pData); \ + } while (0) + +#define CRVBOXHGSMI_CMDDATA_SET(_pData, _pCmd, _pHdr, _fHgsmiCmd) do { \ + CRVBOXHGSMI_CMDDATA_ASSERT_CLEANED(_pData); \ + (_pData)->pvCmd = (_pCmd); \ + (_pData)->pCmdRc = &(_pHdr)->result; \ + (_pData)->fHgsmiCmd = (_fHgsmiCmd); \ + CRVBOXHGSMI_CMDDATA_ASSERT_CONSISTENT(_pData); \ + } while (0) + +#define CRVBOXHGSMI_CMDDATA_SETWB(_pData, _pCmd, _pHdr, _pWb, _cbWb, _pcbWb, _fHgsmiCmd) do { \ + CRVBOXHGSMI_CMDDATA_SET(_pData, _pCmd, _pHdr, _fHgsmiCmd); \ + (_pData)->pWriteback = (_pWb); \ + (_pData)->pcbWriteback = (_pcbWb); \ + (_pData)->cbWriteback = (_cbWb); \ + CRVBOXHGSMI_CMDDATA_ASSERT_CONSISTENT(_pData); \ + } while (0) + +#define CRVBOXHGSMI_CMDDATA_RC(_pData, _rc) do { \ + *(_pData)->pCmdRc = (_rc); \ + } while (0) +#endif + +typedef struct { + CRMessageType type; + unsigned int conn_id; +} CRMessageHeader; + +typedef struct CRMessageOpcodes { + CRMessageHeader header; + unsigned int numOpcodes; +} CRMessageOpcodes; + +typedef struct CRMessageRedirPtr { + CRMessageHeader header; + CRMessageHeader* pMessage; +#ifdef VBOX_WITH_CRHGSMI + CRVBOXHGSMI_CMDDATA CmdData; +#endif +} CRMessageRedirPtr; + +typedef struct CRMessageWriteback { + CRMessageHeader header; + CRNetworkPointer writeback_ptr; +} CRMessageWriteback; + +typedef struct CRMessageReadback { + CRMessageHeader header; + CRNetworkPointer writeback_ptr; + CRNetworkPointer readback_ptr; +} CRMessageReadback; + +typedef struct CRMessageMulti { + CRMessageHeader header; +} CRMessageMulti; + +typedef struct CRMessageFlowControl { + CRMessageHeader header; + unsigned int credits; +} CRMessageFlowControl; + +typedef struct CRMessageReadPixels { + CRMessageHeader header; + int width, height; + unsigned int bytes_per_row; + unsigned int stride; + int alignment; + int skipRows; + int skipPixels; + int rowLength; + int format; + int type; + CRNetworkPointer pixels; +} CRMessageReadPixels; + +typedef struct CRMessageNewClient { + CRMessageHeader header; +} CRMessageNewClient; + +typedef struct CRMessageGather { + CRMessageHeader header; + unsigned long offset; + unsigned long len; +} CRMessageGather; + +typedef union { + CRMessageHeader header; + CRMessageOpcodes opcodes; + CRMessageRedirPtr redirptr; + CRMessageWriteback writeback; + CRMessageReadback readback; + CRMessageReadPixels readPixels; + CRMessageMulti multi; + CRMessageFlowControl flowControl; + CRMessageNewClient newclient; + CRMessageGather gather; +} CRMessage; + +DECLEXPORT(void) crNetworkPointerWrite( CRNetworkPointer *dst, void *src ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_PROTOCOL_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_rand.h b/src/VBox/GuestHost/OpenGL/include/cr_rand.h new file mode 100644 index 00000000..73f5e7c5 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_rand.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_RAND_H +#define CR_RAND_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +DECLEXPORT(void) crRandSeed( unsigned long seed ); +DECLEXPORT(void) crRandAutoSeed(void); +DECLEXPORT(float) crRandFloat( float min, float max ); +DECLEXPORT(int) crRandInt( int min, int max ); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* CR_RAND_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_server.h b/src/VBox/GuestHost/OpenGL/include/cr_server.h new file mode 100644 index 00000000..c7fd9814 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_server.h @@ -0,0 +1,594 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef INCLUDE_CR_SERVER_H +#define INCLUDE_CR_SERVER_H + +#include "cr_spu.h" +#include "cr_net.h" +#include "cr_hash.h" +#include "cr_protocol.h" +#include "cr_glstate.h" +#include "cr_vreg.h" +#include "cr_blitter.h" +#include "cr_htable.h" +#include "spu_dispatch_table.h" +#include "cr_dump.h" + +#include "state/cr_currentpointers.h" + +#include <iprt/types.h> +#include <iprt/err.h> +#include <iprt/string.h> +#include <iprt/list.h> +#include <iprt/thread.h> +#include <iprt/critsect.h> +#include <iprt/semaphore.h> +#include <iprt/memcache.h> + +#include <VBox/vmm/ssm.h> + +#include <VBoxVideo.h> +#include <VBoxVideoVBE.h> +#include <VBoxVideo3D.h> +#include <VBoxVideoHost3D.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define CR_MAX_WINDOWS 100 +#define CR_MAX_CLIENTS 64 + +/** @todo must match MaxGuestMonitors from SchemaDefs.h*/ +#define CR_MAX_GUEST_MONITORS VBOX_VIDEO_MAX_SCREENS + +typedef DECLCALLBACKPTR(void, PFNCRSERVERPRESENTFBO) (void *data, int32_t screenId, int32_t x, int32_t y, uint32_t w, uint32_t h); + +/* Callbacks for output of the rendered frames. + * + * This allows to pass rendered frames to an external component rather than draw them on screen. + * + * An external component registers the redirection callbacks using crVBoxServerOutputRedirectSet. + * + * The list of formats supported by the caller is obtained using CRORContextProperty. + * The actual format choosed by the service is passed as a CRORBegin parameter. + */ +typedef struct { + const void *pvContext; /* Supplied by crVBoxServerOutputRedirectSet. */ + DECLR3CALLBACKMEMBER(void, CRORBegin, (const void *pvContext, void **ppvInstance, + const char *pszFormat)); + DECLR3CALLBACKMEMBER(void, CRORGeometry, (void *pvInstance, + int32_t x, int32_t y, uint32_t w, uint32_t h)); + DECLR3CALLBACKMEMBER(void, CRORVisibleRegion, (void *pvInstance, + uint32_t cRects, const RTRECT *paRects)); + DECLR3CALLBACKMEMBER(void, CRORFrame, (void *pvInstance, + void *pvData, uint32_t cbData)); + DECLR3CALLBACKMEMBER(void, CROREnd, (void *pvInstance)); + DECLR3CALLBACKMEMBER(int, CRORContextProperty, (const void *pvContext, uint32_t index, + void *pvBuffer, uint32_t cbBuffer, uint32_t *pcbOut)); +} CROutputRedirect; + +typedef struct { + CRrecti imagewindow; /**< coordinates in mural space */ + CRrectf bounds; /**< normalized coordinates in [-1,-1] x [1,1] */ + CRrecti outputwindow; /**< coordinates in server's rendering window */ + CRrecti clippedImagewindow; /**< imagewindow clipped to current viewport */ + CRmatrix baseProjection; /**< pre-multiplied onto projection matrix */ + CRrecti scissorBox; /**< passed to back-end OpenGL */ + CRrecti viewport; /**< passed to back-end OpenGL */ + GLuint serialNo; /**< an optimization */ +} CRExtent; + +struct BucketingInfo; + +typedef struct { + char *pszDpyName; + GLint visualBits; + int32_t externalID; +} CRCreateInfo_t; + +typedef struct { + char *pszDpyName; + int32_t externalID; + GLint requestedVisualBits; + GLint realVisualBits; +} CRCreateInfoEx_t; + +/* VRAM->RAM worker thread */ + +typedef enum +{ + CR_SERVER_RPW_STATE_UNINITIALIZED = 0, + CR_SERVER_RPW_STATE_INITIALIZING, + CR_SERVER_RPW_STATE_INITIALIZED, + CR_SERVER_RPW_STATE_UNINITIALIZING, +} CR_SERVER_RPW_STATE; + +/* worker control command */ +typedef enum +{ + CR_SERVER_RPW_CTL_TYPE_UNDEFINED = 0, + CR_SERVER_RPW_CTL_TYPE_WAIT_COMPLETE, + CR_SERVER_RPW_CTL_TYPE_TERM +} CR_SERVER_RPW_CTL_TYPE; + +struct CR_SERVER_RPW_ENTRY; + +typedef struct CR_SERVER_RPW_CTL { + CR_SERVER_RPW_CTL_TYPE enmType; + int rc; + RTSEMEVENT hCompleteEvent; + /* valid for *_WAIT_COMPLETE and *_CANCEL */ + struct CR_SERVER_RPW_ENTRY *pEntry; +} CR_SERVER_RPW_CTL; + + +struct CR_SERVER_RPW_ENTRY; + +typedef DECLCALLBACKPTR(void, PFNCR_SERVER_RPW_DATA) (const struct CR_SERVER_RPW_ENTRY* pEntry, void *pvEntryTexData); + +typedef DECLCALLBACKPTR(void, PFNCRSERVERNOTIFYEVENT) (int32_t screenId, uint32_t uEvent, void* pvData, uint32_t cbData); + +typedef struct CR_SERVER_RPW_ENTRY +{ + RTRECTSIZE Size; + /* We have to use 4 textures here. + * + * 1. iDrawTex - the texture clients can draw to and then submit it for contents acquisition via crServerRpwEntrySubmit + * 2. iSubmittedTex - the texture submitted to the worker for processing and, whose processing has not start yet, + * i.e. it is being in the queue and can be safely removed/replaced [from] there + * 3. iWorkerTex - the texture being prepared & passed by the worker to the GPU (stage 1 of a worker contents acquisition process) + * 4. iGpuTex - the texture passed/processed to/by the GPU, whose data is then acquired by the server (stage 2 of a worker contents acquisition process) + * + * - There can be valid distinct iGpuTex, iWorkerTex, iSubmittedTex and iDrawTex present simultaneously. + * - Either or both of iSubmittedTex and iFreeTex are always valid + * + * Detail: + * + * - iSubmittedTex and iFreeTex modifications are performed under CR_SERVER_RPW::CritSect lock. + * + * - iDrawTex can only be changed by client side (i.e. the crServerRpwEntrySubmit caller), this is why client thread can access it w/o a lock + * - iSubmittedTex and iFreeTex can be modified by both client and worker, so lock is always required + * + * - iDrawTex can be accessed by client code only + * - iWorkerTex and iGpuTex can be accessed by worker code only + * - iSubmittedTex and iFreeTex can be accessed under CR_SERVER_RPW::CritSect lock only + * - either or both of iSubmittedTex and iFreeTex are always valid (see below for more explanation), + * this is why client can easily determine the new iDrawTex value on Submit, i.e. : + * + * (if initial iSubmittedTex was valid) + * --------------- + * | ^ + * > | + * Submit-> iDrawTex -> iSubmittedTex + * ^ + * | (if initial iSubmittedTex was NOT valid) + * iFreeTex + * + * - The worker can invalidate the iSubmittedTex (i.e. do iSubmittedTex -> iWorkerTex) only after it is done + * with the last iWorkerTex -> iGpuTex transformation freeing the previously used iGpuTex to iFreeTex. + * + * - A simplified worker iXxxTex transformation logic is: + * 1. iFreeTex is initially valid + * 2. iSubmittedTex -> iWorkerTex; + * 3. submit iWorkerTex acquire request to the GPU + * 4. complete current iGpuTex + * 5. iGpuTex -> iFreeTex + * 6. iWorkerTex -> iGpuTex + * 7. goto 1 + * + * */ + int8_t iTexDraw; + int8_t iTexSubmitted; + int8_t iTexWorker; + int8_t iTexGpu; + int8_t iCurPBO; + GLuint aidWorkerTexs[4]; + GLuint aidPBOs[2]; + RTLISTNODE WorkEntry; + RTLISTNODE WorkerWorkEntry; + RTLISTNODE GpuSubmittedEntry; + PFNCR_SERVER_RPW_DATA pfnData; +} CR_SERVER_RPW_ENTRY; + +typedef struct CR_SERVER_RPW { + RTLISTNODE WorkList; + RTCRITSECT CritSect; + RTSEMEVENT hSubmitEvent; + /* only one outstanding command is supported, + * and ctl requests must be cynchronized, hold it right here */ + CR_SERVER_RPW_CTL Ctl; + int ctxId; + GLint ctxVisBits; + RTTHREAD hThread; +} CR_SERVER_RPW; +/* */ + +/* FRAMEBUFFER */ +typedef struct CR_FRAMEBUFFER *HCR_FRAMEBUFFER; +typedef struct CR_FRAMEBUFFER_ENTRY *HCR_FRAMEBUFFER_ENTRY; +/* */ + +typedef struct CR_FBDATA +{ + HCR_FRAMEBUFFER hFb; + HCR_FRAMEBUFFER_ENTRY hFbEntry; + CR_TEXDATA* apTexDatas[2]; +} CR_FBDATA; +/** + * Mural info + */ +typedef struct { + GLuint width, height; + GLint gX, gY; /*guest coordinates*/ + GLint hX, hY; /*host coordinates, screenID related*/ + + int spuWindow; /*the SPU's corresponding window ID */ + + int screenId; + + GLboolean bVisible; /*guest window is visible*/ + GLubyte u8Unused; /*redirect to FBO instead of real host window*/ + GLboolean bFbDraw; /*GL_FRONT buffer is drawn to directly*/ + GLboolean fIsDummyRefference; + + GLint cVisibleRects; /*count of visible rects*/ + GLint *pVisibleRects; /*visible rects left, top, right, bottom*/ + GLboolean bReceivedRects; /*indicates if guest did any updates for visible regions*/ + + GLuint cBuffers; + GLuint iBbBuffer; + GLuint aidFBOs[2]; + GLuint aidColorTexs[2]; + + void *pvReserved; + + CRCreateInfoEx_t CreateInfo; + + /* to avoid saved state breakage we need to keep RT_OFFSETOF(CRMuralInfo, CreateInfo) intact + * this is why we place some FBO stuff to the tail + * @todo: once we need to increment a saved state version, we could refactor this structure */ + GLint iCurDrawBuffer; + GLint iCurReadBuffer; + + GLuint idDepthStencilRB; + GLuint fboWidth, fboHeight; + + GLboolean fHasParentWindow; + + GLboolean fRedirected; + GLboolean fForcePresentState; + GLboolean fOrPresentOnReenable; + + GLboolean fIsVisible; + + CR_TEXDATA aTexs[2]; + uint32_t cUsedFBDatas; + CR_FBDATA *apUsedFBDatas[CR_MAX_GUEST_MONITORS]; + CR_FBDATA aFBDatas[CR_MAX_GUEST_MONITORS]; + + /* bitfield representing contexts the mural has been ever current with + * we just reuse CR_STATE_SHAREDOBJ_USAGE_XXX API here for simplicity */ + CRbitvalue ctxUsage[CR_MAX_BITARRAY]; +} CRMuralInfo; + +typedef struct { + CRContext *pContext; + int SpuContext; + CRCreateInfoEx_t CreateInfo; + CRMuralInfo * currentMural; +} CRContextInfo; + +/** + * A client is basically an upstream Cr Node (connected via mothership) + */ +typedef struct _crclient { + int spu_id; /**< id of the last SPU in the client's SPU chain */ + CRConnection *conn; /**< network connection from the client */ + int number; /**< a unique number for each client */ + uint64_t pid; /*guest pid*/ + GLint currentContextNumber; + CRContextInfo *currentCtxInfo; + GLint currentWindow; + CRMuralInfo *currentMural; + GLint windowList[CR_MAX_WINDOWS]; + GLint contextList[CR_MAX_CONTEXTS]; +#ifdef VBOXCR_LOGFPS + uint64_t timeUsed; +#endif +} CRClient; + +typedef struct _crclientnode { + CRClient *pClient; + struct _crclientnode *prev, *next; +} CRClientNode; + +typedef struct CRPoly_t { + int npoints; + double *points; + struct CRPoly_t *next; +} CRPoly; + +/** + * There's one of these run queue entries per client + * The run queue is a circular, doubly-linked list of these objects. + */ +typedef struct RunQueue_t { + CRClient *client; + int blocked; + struct RunQueue_t *next; + struct RunQueue_t *prev; +} RunQueue; + +typedef struct { + GLint freeWindowID; + GLint freeContextID; + GLint freeClientID; +} CRServerFreeIDsPool_t; + +typedef struct { + int32_t x, y; + uint32_t w, h; + uint64_t winID; +} CRScreenInfo; + +typedef struct { + RTRECT Rect; +} CRScreenViewportInfo; + +/* BFB (BlitFramebuffer Blitter) flags + * so far only CR_SERVER_BFB_ON_ALWAIS is supported and is alwais used if any flag is set */ +#define CR_SERVER_BFB_DISABLED 0 +#define CR_SERVER_BFB_ON_INVERTED_BLIT 1 +#define CR_SERVER_BFB_ON_STRAIGHT_BLIT 2 +#define CR_SERVER_BFB_ON_ALWAIS (CR_SERVER_BFB_ON_INVERTED_BLIT | CR_SERVER_BFB_ON_STRAIGHT_BLIT) + +typedef struct { + unsigned short tcpip_port; + + CRScreenInfo screen[CR_MAX_GUEST_MONITORS]; + CRScreenViewportInfo screenVieport[CR_MAX_GUEST_MONITORS]; + int screenCount; + + GLboolean fCrCmdEnabled; + + GLboolean fProcessingPendedCommands; + + int numClients; + CRClient *clients[CR_MAX_CLIENTS]; /**< array [numClients] */ + CRClient *curClient; + CRClientNode *pCleanupClient; /*list of clients with pending clean up*/ + CRHTABLE clientTable; + CRCurrentStatePointers current; + + GLboolean firstCallCreateContext; + GLboolean firstCallMakeCurrent; + GLboolean bIsInLoadingState; /* Indicates if we're in process of loading VM snapshot */ + GLboolean bIsInSavingState; /* Indicates if we're in process of saving VM snapshot */ + GLboolean bForceMakeCurrentOnClientSwitch; + CRContextInfo *currentCtxInfo; + GLint currentWindow; + GLint currentNativeWindow; + CRMuralInfo *currentMural; + + CRHashTable *muralTable; /**< hash table where all murals are stored */ + + int client_spu_id; + + int mtu; + int buffer_size; + char protocol[1024]; + + SPU *head_spu; + SPUDispatchTable dispatch; + + CRNetworkPointer return_ptr; + CRNetworkPointer writeback_ptr; + + CRLimitsState limits; /**< GL limits for any contexts we create */ + + CRContextInfo MainContextInfo; + + CRHashTable *contextTable; /**< hash table for rendering contexts */ + + CRHashTable *programTable; /**< for vertex programs */ + GLuint currentProgram; + + /* visBits -> dummy mural association */ + CRHashTable *dummyMuralTable; + + GLboolean fRootVrOn; + VBOXVR_LIST RootVr; + /* we need to translate Root Vr to each window coords, this one cpecifies the current translation point + * note that since window attributes modifications is performed in HGCM thread only and thus is serialized, + * we deal with the global RootVr data directly */ + RTPOINT RootVrCurPoint; + + /* blitter so far used for working around host drivers BlitFramebuffer bugs + * by implementing */ + uint32_t fBlitterMode; + CR_BLITTER Blitter; + + CR_SERVER_RPW RpwWorker; + + VBOXCRCMDCTL_HGCMDISABLE_DATA DisableData; + + RTSEMEVENT hCalloutCompletionEvent; + VBOXCRCMDCTL *pCurrentCalloutCtl; + VBOXCRCLIENT_INFO ClientInfo; + + /** configuration options */ + /*@{*/ + int useL2; + int ignore_papi; + unsigned int maxBarrierCount; + unsigned int clearCount; + int optimizeBucket; + int only_swap_once; + int debug_barriers; + int sharedDisplayLists; + int sharedTextureObjects; + int sharedPrograms; + int sharedWindows; + int uniqueWindows; + int localTileSpec; + int useDMX; + int overlapBlending; + int vpProjectionMatrixParameter; + const char *vpProjectionMatrixVariable; + int stereoView; + int vncMode; /* cmd line option */ + /*@}*/ + /** view_matrix config */ + /*@{*/ + GLboolean viewOverride; + CRmatrix viewMatrix[2]; /**< left and right eye */ + /*@}*/ + /** projection_matrix config */ + /*@{*/ + GLboolean projectionOverride; + CRmatrix projectionMatrix[2]; /**< left and right eye */ + int currentEye; + /*@}*/ + + /** for warped tiles */ + /*@{*/ + GLfloat alignment_matrix[16], unnormalized_alignment_matrix[16]; + /*@}*/ + + /** tile overlap/blending info - this should probably be per-mural */ + /*@{*/ + CRPoly **overlap_geom; + CRPoly *overlap_knockout; + float *overlap_intens; + int num_overlap_intens; + int num_overlap_levels; + /*@}*/ + + CRHashTable *barriers, *semaphores; + + RunQueue *run_queue; + + GLuint currentSerialNo; + + GLuint fVisualBitsDefault; + GLboolean bUsePBOForReadback; /*Use PBO's for data readback*/ + + CROutputRedirect outputRedirect; + + GLboolean bUseMultipleContexts; + + GLboolean bWindowsInitiallyHidden; + + /* OR-ed CR_VBOX_CAP_XXX cap values + * describing VBox Chromium functionality caps visible to guest + * Currently can have only CR_VBOX_CAP_TEX_PRESENT cap to notify + * that the TexPresent mechanism is available and enabled */ + uint32_t u32Caps; + + PFNCRSERVERNOTIFYEVENT pfnNotifyEventCB; + + SPUDispatchTable TmpCtxDispatch; + + VBOXCRCMD_SVRENABLE_INFO CrCmdClientInfo; + +#ifdef VBOX_WITH_CRSERVER_DUMPER + CR_RECORDER Recorder; + CR_BLITTER RecorderBlitter; + CR_DBGPRINT_DUMPER DbgPrintDumper; + CR_HTML_DUMPER HtmlDumper; + CR_DUMPER *pDumper; +#endif + + int RcToGuest; + int RcToGuestOnce; +} CRServer; + + +extern DECLEXPORT(void) crServerInit( int argc, char *argv[] ); +extern DECLEXPORT(int) CRServerMain( int argc, char *argv[] ); +extern DECLEXPORT(void) crServerServiceClients(void); +extern DECLEXPORT(void) crServerAddNewClient(void); +extern DECLEXPORT(SPU*) crServerHeadSPU(void); +extern DECLEXPORT(void) crServerSetPort(int port); + +extern DECLEXPORT(GLboolean) crVBoxServerInit(void); +extern DECLEXPORT(void) crVBoxServerTearDown(void); +extern DECLEXPORT(int32_t) crVBoxServerAddClient(uint32_t u32ClientID); +extern DECLEXPORT(void) crVBoxServerRemoveClient(uint32_t u32ClientID); +extern DECLEXPORT(int32_t) crVBoxServerClientWrite(uint32_t u32ClientID, uint8_t *pBuffer, uint32_t cbBuffer); +extern DECLEXPORT(int32_t) crVBoxServerClientRead(uint32_t u32ClientID, uint8_t *pBuffer, uint32_t *pcbBuffer); +extern DECLEXPORT(int32_t) crVBoxServerClientSetVersion(uint32_t u32ClientID, uint32_t vMajor, uint32_t vMinor); +extern DECLEXPORT(int32_t) crVBoxServerClientGetCapsLegacy(uint32_t u32ClientID, uint32_t *pu32Caps); +extern DECLEXPORT(int32_t) crVBoxServerClientGetCapsNew(uint32_t u32ClientID, CR_CAPS_INFO *pInfo); +extern DECLEXPORT(int32_t) crVBoxServerClientSetPID(uint32_t u32ClientID, uint64_t pid); + +extern DECLEXPORT(int32_t) crVBoxServerSaveState(PSSMHANDLE pSSM); +extern DECLEXPORT(int32_t) crVBoxServerLoadState(PSSMHANDLE pSSM, uint32_t version); + +typedef struct +{ + CR_BLITTER_IMG Img; + uint32_t u32Screen; + uint32_t fDataAllocated; +} CR_SCREENSHOT; + +extern DECLEXPORT(int) crServerVBoxWindowsShow(bool fShow); +extern DECLEXPORT(int) crServerVBoxScreenshotGet(uint32_t u32Screen, uint32_t width, uint32_t height, uint32_t pitch, void *pvBuffer, CR_SCREENSHOT *pScreenshot); +extern DECLEXPORT(void) crServerVBoxScreenshotRelease(CR_SCREENSHOT *pScreenshot); + +extern DECLEXPORT(void) crServerVBoxCompositionSetEnableStateGlobal(GLboolean fEnable); +extern DECLEXPORT(int32_t) crVBoxServerSetScreenCount(int sCount); +extern DECLEXPORT(int32_t) crVBoxServerUnmapScreen(int sIndex); +extern DECLEXPORT(int32_t) crVBoxServerMapScreen(int sIndex, int32_t x, int32_t y, uint32_t w, uint32_t h, uint64_t winID); +extern DECLEXPORT(void) crServerVBoxCompositionSetEnableStateGlobal(GLboolean fEnable); +struct VBVAINFOSCREEN; +extern DECLEXPORT(int) crVBoxServerNotifyResize(const struct VBVAINFOSCREEN *pScreen, void *pvVRAM); +extern DECLEXPORT(int32_t) crVBoxServerSetRootVisibleRegion(GLint cRects, const RTRECT *pRects); + +extern DECLEXPORT(int32_t) crVBoxServerSetOffscreenRendering(GLboolean value); + +extern DECLEXPORT(int32_t) crVBoxServerOutputRedirectSet(const CROutputRedirect *pCallbacks); + +extern DECLEXPORT(int32_t) crVBoxServerSetScreenViewport(int sIndex, int32_t x, int32_t y, uint32_t w, uint32_t h); + +extern DECLEXPORT(void) crServerVBoxSetNotifyEventCB(PFNCRSERVERNOTIFYEVENT pfnCb); + +extern DECLEXPORT(void) crVBoxServerCalloutEnable(VBOXCRCMDCTL *pCtl); +extern DECLEXPORT(void) crVBoxServerCalloutDisable(void); +extern DECLEXPORT(void) crServerSetUnscaledHiDPI(bool fEnable); + +#ifdef VBOX_WITH_CRHGSMI +/* We moved all CrHgsmi command processing to crserverlib to keep the logic of dealing with CrHgsmi commands in one place. + * + * For now we need the notion of CrHgdmi commands in the crserver_lib to be able to complete it asynchronously once it is really processed. + * This help avoiding the "blocked-client" issues. The client is blocked if another client is doing begin-end stuff. + * For now we eliminated polling that could occur on block, which caused a higher-priority thread (in guest) polling for the blocked command complition + * to block the lower-priority thread trying to complete the blocking command. + * And removed extra memcpy done on blocked command arrival. + * + * In the future we will extend CrHgsmi functionality to maintain texture data directly in CrHgsmi allocation to avoid extra memcpy-ing with PBO, + * implement command completion and stuff necessary for GPU scheduling to work properly for WDDM Windows guests, etc. + * + * NOTE: it is ALWAYS responsibility of the crVBoxServerCrHgsmiCmd to complete the command! + * */ +extern DECLEXPORT(int32_t) crVBoxServerCrHgsmiCmd(struct VBOXVDMACMD_CHROMIUM_CMD *pCmd, uint32_t cbCmd); +extern DECLEXPORT(int32_t) crVBoxServerCrHgsmiCtl(struct VBOXVDMACMD_CHROMIUM_CTL *pCtl, uint32_t cbCtl); + +#endif + +extern DECLEXPORT(int32_t) crVBoxServerHgcmEnable(VBOXCRCMDCTL_HGCMENABLE_DATA *pData); +extern DECLEXPORT(int32_t) crVBoxServerHgcmDisable(VBOXCRCMDCTL_HGCMDISABLE_DATA *pData); + +extern int crVBoxServerHostCtl(VBOXCRCMDCTL *pCtl, uint32_t cbCtl); + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/src/VBox/GuestHost/OpenGL/include/cr_sortarray.h b/src/VBox/GuestHost/OpenGL/include/cr_sortarray.h new file mode 100644 index 00000000..8e2bd90d --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_sortarray.h @@ -0,0 +1,102 @@ +/* $Id: cr_sortarray.h $ */ + +/** @file + * Sorted array API + */ + +/* + * Copyright (C) 2014-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ +#ifndef ___cr_sortarray_h_ +#define ___cr_sortarray_h_ + +#include <iprt/types.h> +#include <iprt/assert.h> + +typedef struct CR_SORTARRAY +{ + uint32_t cBufferSize; + uint32_t cSize; + uint64_t *pElements; +} CR_SORTARRAY; + + +#ifndef IN_RING0 +# define VBOXSADECL(_type) DECLEXPORT(_type) +#else +# define VBOXSADECL(_type) RTDECL(_type) +#endif + + +DECLINLINE(uint32_t) CrSaGetSize(const CR_SORTARRAY *pArray) +{ + return pArray->cSize; +} + +DECLINLINE(uint64_t) CrSaGetVal(const CR_SORTARRAY *pArray, uint32_t i) +{ + Assert(i < pArray->cSize); + return pArray->pElements[i]; +} + +DECLINLINE(const uint64_t*) CrSaGetElements(const CR_SORTARRAY *pArray) +{ + return pArray->pElements; +} + +DECLINLINE(void) CrSaClear(CR_SORTARRAY *pArray) +{ + pArray->cSize = 0; +} + +VBOXSADECL(int) CrSaInit(CR_SORTARRAY *pArray, uint32_t cInitBuffer); +VBOXSADECL(void) CrSaCleanup(CR_SORTARRAY *pArray); +/* + * @return true if element is found */ +VBOXSADECL(bool) CrSaContains(const CR_SORTARRAY *pArray, uint64_t element); + +/* + * @return VINF_SUCCESS if element is added + * VINF_ALREADY_INITIALIZED if element was in array already + * VERR_NO_MEMORY - no memory + * */ +VBOXSADECL(int) CrSaAdd(CR_SORTARRAY *pArray, uint64_t element); + +/* + * @return VINF_SUCCESS if element is removed + * VINF_ALREADY_INITIALIZED if element was NOT in array + * */ +VBOXSADECL(int) CrSaRemove(CR_SORTARRAY *pArray, uint64_t element); + +/* + * @return VINF_SUCCESS on success + * VERR_NO_MEMORY - no memory + * */ +VBOXSADECL(void) CrSaIntersect(CR_SORTARRAY *pArray1, const CR_SORTARRAY *pArray2); +VBOXSADECL(int) CrSaIntersected(const CR_SORTARRAY *pArray1, const CR_SORTARRAY *pArray2, CR_SORTARRAY *pResult); + +/* + * @return VINF_SUCCESS on success + * VERR_NO_MEMORY - no memory + * */ +VBOXSADECL(int) CrSaUnited(const CR_SORTARRAY *pArray1, const CR_SORTARRAY *pArray2, CR_SORTARRAY *pResult); + +/* + * @return VINF_SUCCESS on success + * VERR_NO_MEMORY - no memory + * */ +VBOXSADECL(int) CrSaClone(const CR_SORTARRAY *pArray1, CR_SORTARRAY *pResult); + +VBOXSADECL(int) CrSaCmp(const CR_SORTARRAY *pArray1, const CR_SORTARRAY *pArray2); + +VBOXSADECL(bool) CrSaCovers(const CR_SORTARRAY *pArray1, const CR_SORTARRAY *pArray2); + +#endif /* ___cr_sortarray_h_ */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_spu.h b/src/VBox/GuestHost/OpenGL/include/cr_spu.h new file mode 100644 index 00000000..f23a20b1 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_spu.h @@ -0,0 +1,483 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ +#ifndef CR_SPU_H +#define CR_SPU_H + +#ifdef WINDOWS +#define SPULOAD_APIENTRY __stdcall +#else +#define SPULOAD_APIENTRY +#endif + +#include "cr_dll.h" +#include "spu_dispatch_table.h" +#include "cr_net.h" + +#include <iprt/types.h> + +#ifdef DARWIN +# include <OpenGL/OpenGL.h> +# ifdef VBOX_WITH_COCOA_QT +# else +# include <AGL/agl.h> +# endif +#endif + +#define SPU_ENTRY_POINT_NAME "SPULoad" + +#ifdef __cplusplus +extern "C" { +#endif + +#define MAX_THREADS 32 /**< max threads per spu */ + +typedef struct _SPUSTRUCT SPU; + +typedef void (*SPUGenericFunction)(void); + +/** + * SPU Named function descriptor + */ +typedef struct { + char *name; + SPUGenericFunction fn; +} SPUNamedFunctionTable; + +/** + * SPU function table descriptor + */ +typedef struct { + SPUDispatchTable *childCopy; + void *data; + SPUNamedFunctionTable *table; +} SPUFunctions; + +/** + * SPU Option callback + * \param spu + * \param response + */ +typedef void (*SPUOptionCB)( void *spu, const char *response ); + +typedef enum { CR_BOOL, CR_INT, CR_FLOAT, CR_STRING, CR_ENUM } cr_type; + +/** + * SPU Options table + */ +typedef struct { + const char *option; /**< Name of the option */ + cr_type type; /**< Type of option */ + int numValues; /**< usually 1 */ + const char *deflt; /**< comma-separated string of [numValues] defaults */ + const char *min; /**< comma-separated string of [numValues] minimums */ + const char *max; /**< comma-separated string of [numValues] maximums */ + const char *description; /**< Textual description of the option */ + SPUOptionCB cb; /**< Callback function */ +} SPUOptions, *SPUOptionsPtr; + + +/** Init spu */ +typedef SPUFunctions *(*SPUInitFuncPtr)(int id, SPU *child, + SPU *super, unsigned int, unsigned int ); +typedef void (*SPUSelfDispatchFuncPtr)(SPUDispatchTable *); +/** Cleanup spu */ +typedef int (*SPUCleanupFuncPtr)(void); +/** Load spu */ +typedef int (*SPULoadFunction)(char **, char **, void *, void *, void *, + SPUOptionsPtr *, int *); + + +/** + * masks for spu_flags + */ +#define SPU_PACKER_MASK 0x1 +#define SPU_NO_PACKER 0x0 +#define SPU_HAS_PACKER 0x1 +#define SPU_TERMINAL_MASK 0x2 +#define SPU_NOT_TERMINAL 0x0 +#define SPU_IS_TERMINAL 0x2 +#define SPU_MAX_SERVERS_MASK 0xc +#define SPU_MAX_SERVERS_ZERO 0x0 +#define SPU_MAX_SERVERS_ONE 0x4 +#define SPU_MAX_SERVERS_UNLIMITED 0x8 + + +/** + * SPU descriptor + */ +struct _SPUSTRUCT { + char *name; /**< Name of the spu */ + char *super_name; /**< Name of the super class of the spu */ + int id; /**< Id num of the spu */ + int spu_flags; /**< options fags for the SPU */ + struct _SPUSTRUCT *superSPU; /**< Pointer to the descriptor for the super class */ + CRDLL *dll; /**< pointer to shared lib for spu */ + SPULoadFunction entry_point; /**< SPU's entry point (SPULoad()) */ + SPUInitFuncPtr init; /**< SPU init function */ + SPUSelfDispatchFuncPtr self; /**< */ + SPUCleanupFuncPtr cleanup; /**< SPU cleanup func */ + SPUFunctions *function_table; /**< Function table for spu */ + SPUOptions *options; /**< Options table */ + SPUDispatchTable dispatch_table; + void *privatePtr; /**< pointer to SPU-private data */ +}; + + +/** + * These are the OpenGL / window system interface functions + */ +#if defined(WINDOWS) +/** + * Windows/WGL + */ +/*@{*/ +typedef HGLRC (WGL_APIENTRY *wglCreateContextFunc_t)(HDC); +typedef void (WGL_APIENTRY *wglDeleteContextFunc_t)(HGLRC); +typedef BOOL (WGL_APIENTRY *wglShareListsFunc_t)(HGLRC,HGLRC); +typedef BOOL (WGL_APIENTRY *wglMakeCurrentFunc_t)(HDC,HGLRC); +typedef BOOL (WGL_APIENTRY *wglSwapBuffersFunc_t)(HDC); +typedef int (WGL_APIENTRY *wglChoosePixelFormatFunc_t)(HDC, CONST PIXELFORMATDESCRIPTOR *); +typedef BOOL (WGL_APIENTRY *wglChoosePixelFormatEXTFunc_t)(HDC, const int *, const FLOAT *, UINT, int *, UINT *); +typedef int (WGL_APIENTRY *wglDescribePixelFormatFunc_t)(HDC, int, UINT, CONST PIXELFORMATDESCRIPTOR *); +typedef int (WGL_APIENTRY *wglSetPixelFormatFunc_t)(HDC, int, CONST PIXELFORMATDESCRIPTOR *); +typedef HGLRC (WGL_APIENTRY *wglGetCurrentContextFunc_t)(); +typedef PROC (WGL_APIENTRY *wglGetProcAddressFunc_t)(); +typedef BOOL (WGL_APIENTRY *wglChoosePixelFormatEXTFunc_t)(HDC, const int *, const FLOAT *, UINT, int *, UINT *); +typedef BOOL (WGL_APIENTRY *wglGetPixelFormatAttribivEXTFunc_t)(HDC, int, int, UINT, int *, int *); +typedef BOOL (WGL_APIENTRY *wglGetPixelFormatAttribfvEXTFunc_t)(HDC, int, int, UINT, int *, float *); +typedef const GLubyte *(WGL_APIENTRY *glGetStringFunc_t)( GLenum ); +typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringEXTFunc_t)(); +typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringARBFunc_t)(HDC); +/*@}*/ +#elif defined(DARWIN) +# ifndef VBOX_WITH_COCOA_QT +/** + * Apple/AGL + */ +/*@{*/ +typedef AGLContext (*aglCreateContextFunc_t)( AGLPixelFormat, AGLContext ); +typedef GLboolean (*aglDestroyContextFunc_t)( AGLContext ); +typedef GLboolean (*aglSetCurrentContextFunc_t)( AGLContext ); +typedef void (*aglSwapBuffersFunc_t)( AGLContext ); +typedef AGLPixelFormat (*aglChoosePixelFormatFunc_t) (const AGLDevice *, GLint, const GLint *); +typedef GLboolean (*aglDescribePixelFormatFunc_t)( AGLPixelFormat, GLint, GLint * ); +/* <--set pixel format */ +typedef AGLContext (*aglGetCurrentContextFunc_t)(); +/* <--get proc address -- none exists */ +typedef void* (*aglGetProcAddressFunc_t)( const GLubyte *name ); + +/* These are here just in case */ +typedef GLboolean (*aglDescribeRendererFunc_t)( AGLRendererInfo, GLint, GLint * ); +typedef void (*aglDestroyPixelFormatFunc_t)( AGLPixelFormat ); +typedef void (*aglDestroyRendererInfoFunc_t)( AGLRendererInfo ); +typedef AGLDevice* (*aglDevicesOfPixelFormatFunc_t)( AGLPixelFormat, GLint ); +typedef GLboolean (*aglDisableFunc_t)( AGLContext, GLenum ); +typedef GLboolean (*aglEnableFunc_t)( AGLContext, GLenum ); +typedef const GLubyte* (*aglErrorStringFunc_t)( GLenum ); +typedef AGLDrawable (*aglGetDrawableFunc_t)( AGLContext ); +typedef GLenum (*aglGetErrorFunc_t)(); +typedef GLboolean (*aglGetIntegerFunc_t)( AGLContext, GLenum, GLint* ); +typedef void (*aglGetVersionFunc_t)( GLint *, GLint * ); +typedef GLint (*aglGetVirtualScreenFunc_t)( AGLContext ); +typedef GLboolean (*aglIsEnabledFunc_t)( AGLContext, GLenum ); +typedef AGLPixelFormat (*aglNextPixelFormatFunc_t)( AGLPixelFormat ); +typedef AGLRendererInfo (*aglNextRendererInfoFunc_t)( AGLRendererInfo ); +typedef AGLRendererInfo (*aglQueryRendererInfoFunc_t)( const AGLDevice *, GLint ); +typedef void (*aglReserLibraryFunc_t)(); +typedef GLboolean (*aglSetDrawableFunc_t)( AGLContext, AGLDrawable ); +typedef GLboolean (*aglSetFullScreenFunc_t)( AGLContext, GLsizei, GLsizei, GLsizei, GLint ); +typedef GLboolean (*aglSetIntegerFunc_t)( AGLContext, GLenum, const GLint * ); +typedef GLboolean (*aglSetOffScreenFunc_t)( AGLContext, GLsizei, GLsizei, GLsizei, void * ); +typedef GLboolean (*aglSetVirtualScreenFunc_t)( AGLContext, GLint ); +typedef GLboolean (*aglUpdateContextFunc_t)( AGLContext ); +typedef GLboolean (*aglUseFontFunc_t)( AGLContext, GLint, Style, GLint, GLint, GLint, GLint ); +# endif + +typedef const GLubyte *(*glGetStringFunc_t)( GLenum ); +/*@}*/ + +/** + * Apple/CGL + */ +/*@{*/ +typedef CGLError (*CGLSetCurrentContextFunc_t)( CGLContextObj ); +typedef CGLContextObj (*CGLGetCurrentContextFunc_t)(); + +typedef CGLError (*CGLChoosePixelFormatFunc_t)( const CGLPixelFormatAttribute *, CGLPixelFormatObj *, long * ); +typedef CGLError (*CGLDestroyPixelFormatFunc_t)( CGLPixelFormatObj ); +typedef CGLError (*CGLDescribePixelFormatFunc_t)( CGLPixelFormatObj , long , CGLPixelFormatAttribute , long * ); + +typedef CGLError (*CGLQueryRendererInfoFunc_t)( unsigned long, CGLRendererInfoObj *, long * ); +typedef CGLError (*CGLDestroyRendererInfoFunc_t)( CGLRendererInfoObj ); +typedef CGLError (*CGLDescribeRendererFunc_t)( CGLRendererInfoObj, long, CGLRendererProperty, long * ); + +typedef CGLError (*CGLCreateContextFunc_t)( CGLPixelFormatObj, CGLContextObj, CGLContextObj * ); +typedef CGLError (*CGLDestroyContextFunc_t)( CGLContextObj ); +typedef CGLError (*CGLCopyContextFunc_t)( CGLContextObj src, CGLContextObj, unsigned long ); + +typedef CGLError (*CGLCreatePBufferFunc_t)( long, long, unsigned long, unsigned long, long, CGLPBufferObj * ) AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER; +typedef CGLError (*CGLDestroyPBufferFunc_t)( CGLPBufferObj ) AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER; +typedef CGLError (*CGLDescribePBufferFunc_t)( CGLPBufferObj, long *, long *, unsigned long *, unsigned long *, long * ) AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER; +typedef CGLError (*CGLTexImagePBufferFunc_t)( CGLContextObj, CGLPBufferObj, unsigned long ) AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER; + +typedef CGLError (*CGLSetOffScreenFunc_t)( CGLContextObj, long, long, long, void * ); +typedef CGLError (*CGLGetOffScreenFunc_t)( CGLContextObj, long *, long *, long *, void ** ); +typedef CGLError (*CGLSetFullScreenFunc_t)( CGLContextObj ); + +typedef CGLError (*CGLSetPBufferFunc_t)( CGLContextObj, CGLPBufferObj, unsigned long, long, long ) AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER; +typedef CGLError (*CGLGetPBufferFunc_t)( CGLContextObj, CGLPBufferObj *, unsigned long *, long *, long * ) AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER; + +typedef CGLError (*CGLClearDrawableFunc_t)( CGLContextObj ); +typedef CGLError (*CGLFlushDrawableFunc_t)( CGLContextObj ); /* <-- swap buffers */ + +typedef CGLError (*CGLEnableFunc_t)( CGLContextObj, CGLContextEnable ); +typedef CGLError (*CGLDisableFunc_t)( CGLContextObj, CGLContextEnable ); +typedef CGLError (*CGLIsEnabledFunc_t)( CGLContextObj, CGLContextEnable, long * ); + +typedef CGLError (*CGLSetParameterFunc_t)( CGLContextObj, CGLContextParameter, const long * ); +typedef CGLError (*CGLGetParameterFunc_t)( CGLContextObj, CGLContextParameter, long * ); + +typedef CGLError (*CGLSetVirtualScreenFunc_t)( CGLContextObj, long ); +typedef CGLError (*CGLGetVirtualScreenFunc_t)( CGLContextObj, long *); + +typedef CGLError (*CGLSetOptionFunc_t)( CGLGlobalOption, long ); +typedef CGLError (*CGLGetOptionFunc_t)( CGLGlobalOption, long * ); +typedef void (*CGLGetVersionFunc_t)( long *, long * ); + +typedef const char * (*CGLErrorStringFunc_t)( CGLError ); + +/** XXX \todo Undocumented CGL functions. Are these all correct? */ +typedef void *CGSConnectionID; +typedef int CGSWindowID; +typedef int CGSSurfaceID; + +typedef CGLError (*CGLSetSurfaceFunc_t)( CGLContextObj, CGSConnectionID, CGSWindowID, CGSSurfaceID ); +typedef CGLError (*CGLGetSurfaceFunc_t)( CGLContextObj, CGSConnectionID, CGSWindowID, CGSSurfaceID* ); +typedef CGLError (*CGLUpdateContextFunc_t)( CGLContextObj ); +/*@}*/ +#else +/** + * X11/GLX + */ +/*@{*/ +typedef int (*glXGetConfigFunc_t)( Display *, XVisualInfo *, int, int * ); +typedef Bool (*glXQueryExtensionFunc_t) (Display *, int *, int * ); +typedef const char *(*glXQueryExtensionsStringFunc_t) (Display *, int ); +typedef Bool (*glXQueryVersionFunc_t)( Display *dpy, int *maj, int *min ); +typedef XVisualInfo *(*glXChooseVisualFunc_t)( Display *, int, int * ); +typedef GLXContext (*glXCreateContextFunc_t)( Display *, XVisualInfo *, GLXContext, Bool ); +typedef void (*glXUseXFontFunc_t)(Font font, int first, int count, int listBase); +typedef void (*glXDestroyContextFunc_t)( Display *, GLXContext ); +typedef Bool (*glXIsDirectFunc_t)( Display *, GLXContext ); +typedef Bool (*glXMakeCurrentFunc_t)( Display *, GLXDrawable, GLXContext ); +typedef void (*glXSwapBuffersFunc_t)( Display *, GLXDrawable ); +typedef CR_GLXFuncPtr (*glXGetProcAddressARBFunc_t)( const GLubyte *name ); +typedef Display *(*glXGetCurrentDisplayFunc_t)( void ); +typedef GLXContext (*glXGetCurrentContextFunc_t)( void ); +typedef GLXDrawable (*glXGetCurrentDrawableFunc_t)( void ); +typedef char * (*glXGetClientStringFunc_t)( Display *dpy, int name ); +typedef void (*glXWaitGLFunc_t)(void); +typedef void (*glXWaitXFunc_t)(void); +typedef void (*glXCopyContextFunc_t)(Display *dpy, GLXContext src, GLXContext dst, unsigned long mask ); +typedef const GLubyte *(*glGetStringFunc_t)( GLenum ); +typedef Bool (*glXJoinSwapGroupNVFunc_t)(Display *dpy, GLXDrawable drawable, GLuint group); +typedef Bool (*glXBindSwapBarrierNVFunc_t)(Display *dpy, GLuint group, GLuint barrier); +typedef Bool (*glXQuerySwapGroupNVFunc_t)(Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); +typedef Bool (*glXQueryMaxSwapGroupsNVFunc_t)(Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); +typedef Bool (*glXQueryFrameCountNVFunc_t)(Display *dpy, int screen, GLuint *count); +typedef Bool (*glXResetFrameCountNVFunc_t)(Display *dpy, int screen); +#ifdef GLX_VERSION_1_3 +typedef GLXContext (*glXCreateNewContextFunc_t)( Display *dpy, GLXFBConfig config, int renderType, GLXContext shareList, Bool direct ); +typedef GLXWindow (*glXCreateWindowFunc_t)(Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); +typedef Bool (*glXMakeContextCurrentFunc_t)( Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx ); +typedef GLXFBConfig *(*glXChooseFBConfigFunc_t)( Display *dpy, int screen, const int *attribList, int *nitems ); +typedef GLXFBConfig *(*glXGetFBConfigsFunc_t)(Display *dpy, int screen, int *nelements); +typedef int (*glXGetFBConfigAttribFunc_t)(Display *dpy, GLXFBConfig config, int attribute, int *value); +typedef XVisualInfo *(*glXGetVisualFromFBConfigFunc_t)(Display *dpy, GLXFBConfig config); +typedef GLXPbuffer (*glXCreatePbufferFunc_t)( Display *dpy, GLXFBConfig config, const int *attribList ); +typedef void (*glXDestroyPbufferFunc_t)( Display *dpy, GLXPbuffer pbuf ); +typedef int (*glXQueryContextFunc_t)(Display *dpy, GLXContext ctx, int attribute, int *value); +typedef void (*glXQueryDrawableFunc_t)(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); +#endif /* GLX_VERSION_1_3 */ +/*@}*/ +#endif + + +/** + * Package up the WGL/AGL/CGL/GLX function pointers into a struct. We use + * this in a few different places. + */ +typedef struct { +#if defined(WINDOWS) + wglGetProcAddressFunc_t wglGetProcAddress; + wglCreateContextFunc_t wglCreateContext; + wglDeleteContextFunc_t wglDeleteContext; + wglShareListsFunc_t wglShareLists; + wglMakeCurrentFunc_t wglMakeCurrent; + wglSwapBuffersFunc_t wglSwapBuffers; + wglGetCurrentContextFunc_t wglGetCurrentContext; + wglChoosePixelFormatFunc_t wglChoosePixelFormat; + wglDescribePixelFormatFunc_t wglDescribePixelFormat; + wglSetPixelFormatFunc_t wglSetPixelFormat; + wglChoosePixelFormatEXTFunc_t wglChoosePixelFormatEXT; + wglGetPixelFormatAttribivEXTFunc_t wglGetPixelFormatAttribivEXT; + wglGetPixelFormatAttribfvEXTFunc_t wglGetPixelFormatAttribfvEXT; + wglGetExtensionsStringEXTFunc_t wglGetExtensionsStringEXT; +#elif defined(DARWIN) +# ifndef VBOX_WITH_COCOA_QT + aglCreateContextFunc_t aglCreateContext; + aglDestroyContextFunc_t aglDestroyContext; + aglSetCurrentContextFunc_t aglSetCurrentContext; + aglSwapBuffersFunc_t aglSwapBuffers; + aglChoosePixelFormatFunc_t aglChoosePixelFormat; + aglDestroyPixelFormatFunc_t aglDestroyPixelFormat; + aglDescribePixelFormatFunc_t aglDescribePixelFormat; + aglGetCurrentContextFunc_t aglGetCurrentContext; + aglSetDrawableFunc_t aglSetDrawable; + aglGetDrawableFunc_t aglGetDrawable; + aglSetFullScreenFunc_t aglSetFullScreen; + aglGetProcAddressFunc_t aglGetProcAddress; + aglUpdateContextFunc_t aglUpdateContext; + aglUseFontFunc_t aglUseFont; + aglSetIntegerFunc_t aglSetInteger; + aglGetErrorFunc_t aglGetError; + aglGetIntegerFunc_t aglGetInteger; + aglEnableFunc_t aglEnable; + aglDisableFunc_t aglDisable; +# endif + + CGLChoosePixelFormatFunc_t CGLChoosePixelFormat; + CGLDestroyPixelFormatFunc_t CGLDestroyPixelFormat; + CGLDescribePixelFormatFunc_t CGLDescribePixelFormat; + CGLQueryRendererInfoFunc_t CGLQueryRendererInfo; + CGLDestroyRendererInfoFunc_t CGLDestroyRendererInfo; + CGLDescribeRendererFunc_t CGLDescribeRenderer; + CGLCreateContextFunc_t CGLCreateContext; + CGLDestroyContextFunc_t CGLDestroyContext; + CGLCopyContextFunc_t CGLCopyContext; + CGLSetCurrentContextFunc_t CGLSetCurrentContext; + CGLGetCurrentContextFunc_t CGLGetCurrentContext; + CGLCreatePBufferFunc_t CGLCreatePBuffer; + CGLDestroyPBufferFunc_t CGLDestroyPBuffer; + CGLDescribePBufferFunc_t CGLDescribePBuffer; + CGLTexImagePBufferFunc_t CGLTexImagePBuffer; + CGLSetOffScreenFunc_t CGLSetOffScreen; + CGLGetOffScreenFunc_t CGLGetOffScreen; + CGLSetFullScreenFunc_t CGLSetFullScreen; + CGLSetPBufferFunc_t CGLSetPBuffer; + CGLGetPBufferFunc_t CGLGetPBuffer; + CGLClearDrawableFunc_t CGLClearDrawable; + CGLFlushDrawableFunc_t CGLFlushDrawable; + CGLEnableFunc_t CGLEnable; + CGLDisableFunc_t CGLDisable; + CGLIsEnabledFunc_t CGLIsEnabled; + CGLSetParameterFunc_t CGLSetParameter; + CGLGetParameterFunc_t CGLGetParameter; + CGLSetVirtualScreenFunc_t CGLSetVirtualScreen; + CGLGetVirtualScreenFunc_t CGLGetVirtualScreen; + CGLSetOptionFunc_t CGLSetOption; + CGLGetOptionFunc_t CGLGetOption; + CGLGetVersionFunc_t CGLGetVersion; + CGLErrorStringFunc_t CGLErrorString; + + CGLSetSurfaceFunc_t CGLSetSurface; + CGLGetSurfaceFunc_t CGLGetSurface; + CGLUpdateContextFunc_t CGLUpdateContext; +#else + glXGetConfigFunc_t glXGetConfig; + glXQueryExtensionFunc_t glXQueryExtension; + glXQueryVersionFunc_t glXQueryVersion; + glXQueryExtensionsStringFunc_t glXQueryExtensionsString; + glXChooseVisualFunc_t glXChooseVisual; + glXCreateContextFunc_t glXCreateContext; + glXDestroyContextFunc_t glXDestroyContext; + glXUseXFontFunc_t glXUseXFont; + glXIsDirectFunc_t glXIsDirect; + glXMakeCurrentFunc_t glXMakeCurrent; + glXSwapBuffersFunc_t glXSwapBuffers; + glXGetProcAddressARBFunc_t glXGetProcAddressARB; + glXGetCurrentDisplayFunc_t glXGetCurrentDisplay; + glXGetCurrentContextFunc_t glXGetCurrentContext; + glXGetCurrentDrawableFunc_t glXGetCurrentDrawable; + glXGetClientStringFunc_t glXGetClientString; + glXWaitGLFunc_t glXWaitGL; + glXWaitXFunc_t glXWaitX; + glXCopyContextFunc_t glXCopyContext; + /* GLX_NV_swap_group */ + glXJoinSwapGroupNVFunc_t glXJoinSwapGroupNV; + glXBindSwapBarrierNVFunc_t glXBindSwapBarrierNV; + glXQuerySwapGroupNVFunc_t glXQuerySwapGroupNV; + glXQueryMaxSwapGroupsNVFunc_t glXQueryMaxSwapGroupsNV; + glXQueryFrameCountNVFunc_t glXQueryFrameCountNV; + glXResetFrameCountNVFunc_t glXResetFrameCountNV; +#ifdef GLX_VERSION_1_3 + glXCreateNewContextFunc_t glXCreateNewContext; + glXCreateWindowFunc_t glXCreateWindow; + glXMakeContextCurrentFunc_t glXMakeContextCurrent; + glXChooseFBConfigFunc_t glXChooseFBConfig; + glXGetFBConfigsFunc_t glXGetFBConfigs; + glXGetFBConfigAttribFunc_t glXGetFBConfigAttrib; + glXGetVisualFromFBConfigFunc_t glXGetVisualFromFBConfig; + glXCreatePbufferFunc_t glXCreatePbuffer; + glXDestroyPbufferFunc_t glXDestroyPbuffer; + glXQueryContextFunc_t glXQueryContext; + glXQueryDrawableFunc_t glXQueryDrawable; +#endif +#endif + glGetStringFunc_t glGetString; +} crOpenGLInterface; + + +/** This is the one required function in _all_ SPUs */ +DECLEXPORT(int) SPULoad( char **name, char **super, SPUInitFuncPtr *init, + SPUSelfDispatchFuncPtr *self, SPUCleanupFuncPtr *cleanup, + SPUOptionsPtr *options, int *flags ); + +DECLEXPORT(SPU *) crSPULoad( SPU *child, int id, char *name, char *dir, void *server); +DECLEXPORT(SPU *) crSPULoadChain( int count, int *ids, char **names, char *dir, void *server ); +DECLEXPORT(void) crSPUUnloadChain(SPU *headSPU); + +DECLEXPORT(void) crSPUInitDispatchTable( SPUDispatchTable *table ); +DECLEXPORT(void) crSPUCopyDispatchTable( SPUDispatchTable *dst, SPUDispatchTable *src ); +DECLEXPORT(void) crSPUChangeInterface( SPUDispatchTable *table, void *origFunc, void *newFunc ); + + +DECLEXPORT(void) crSPUSetDefaultParams( void *spu, SPUOptions *options ); +DECLEXPORT(int) crSPUGetEnumIndex( const SPUOptions *option, const char *optName, const char *value ); + + +DECLEXPORT(SPUGenericFunction) crSPUFindFunction( const SPUNamedFunctionTable *table, const char *fname ); +DECLEXPORT(void) crSPUInitDispatch( SPUDispatchTable *dispatch, const SPUNamedFunctionTable *table ); +DECLEXPORT(void) crSPUInitDispatchNops(SPUDispatchTable *table); + +DECLEXPORT(int) crLoadOpenGL( crOpenGLInterface *crInterface, SPUNamedFunctionTable table[] ); +DECLEXPORT(void) crUnloadOpenGL( void ); +DECLEXPORT(int) crLoadOpenGLExtensions( const crOpenGLInterface *crInterface, SPUNamedFunctionTable table[] ); +DECLEXPORT(void) crSPUChangeDispatch(SPUDispatchTable *dispatch, const SPUNamedFunctionTable *newtable); + +#if defined(GLX) +DECLEXPORT(XVisualInfo *) +crChooseVisual(const crOpenGLInterface *ws, Display *dpy, int screen, + GLboolean directColor, int visBits); +#else +DECLEXPORT(int) +crChooseVisual(const crOpenGLInterface *ws, int visBits); +#endif + + +#ifdef USE_OSMESA +DECLEXPORT(int) +crLoadOSMesa( OSMesaContext (**createContext)( GLenum format, OSMesaContext sharelist ), + GLboolean (**makeCurrent)( OSMesaContext ctx, GLubyte *buffer, + GLenum type, GLsizei width, GLsizei height ), + void (**destroyContext)( OSMesaContext ctx )); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* CR_SPU_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_string.h b/src/VBox/GuestHost/OpenGL/include/cr_string.h new file mode 100644 index 00000000..824d9f69 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_string.h @@ -0,0 +1,67 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STRING_H +#define CR_STRING_H + +#include <iprt/cdefs.h> +#include <iprt/types.h> + +RT_C_DECLS_BEGIN + +DECLEXPORT(char *) crStrdup( const char *str ); +DECLEXPORT(char *) crStrndup( const char *str, unsigned int len ); +DECLEXPORT(int) crStrlen( const char *str ); +DECLEXPORT(int) crStrcmp( const char *str1, const char *str2 ); +DECLEXPORT(int) crStrncmp( const char *str1, const char *str2, int n ); +DECLEXPORT(int) crStrcasecmp( const char *str1, const char *str2 ); +DECLEXPORT(void) crStrcpy( char *dst, const char *src ); +DECLEXPORT(void) crStrncpy( char *dst, const char *src, unsigned int len ); +DECLEXPORT(void) crStrcat( char *dst, const char *src ); +DECLEXPORT(char *) crStrjoin( const char *src1, const char *src2 ); +DECLEXPORT(char *) crStrjoin3( const char *src1, const char *src2, const char *src3 ); +DECLEXPORT(char *) crStrstr( const char *str, const char *pat ); +DECLEXPORT(char *) crStrchr( const char *str, char c ); +DECLEXPORT(char *) crStrrchr( const char *str, char c ); +DECLEXPORT(int) crStrToInt( const char *str ); +DECLEXPORT(float) crStrToFloat( const char *str ); +DECLEXPORT(char **) crStrSplit( const char *str, const char *splitstr ); +DECLEXPORT(char **) crStrSplitn( const char *str, const char *splitstr, int n ); +DECLEXPORT(void) crFreeStrings( char **strings ); +DECLEXPORT(char *) crStrIntersect( const char *s1, const char *s2 ); +DECLEXPORT(int) crIsDigit( char c ); + +DECLEXPORT(void) crBytesToString( char *string, int nstring, void *data, int ndata ); +DECLEXPORT(void) crWordsToString( char *string, int nstring, void *data, int ndata ); + +#define CR_GLVERSION_OFFSET_MAJOR (24) +#define CR_GLVERSION_OFFSET_MINOR (16) +#define CR_GLVERSION_OFFSET_BUILD (0) + +#define CR_GLVERSION_MAX_MAJOR (0x7f) +#define CR_GLVERSION_MAX_MINOR (0xff) +#define CR_GLVERSION_MAX_BUILD (0xffff) + +#define CR_GLVERSION_MASK_MAJOR (CR_GLVERSION_MAX_MAJOR << CR_GLVERSION_OFFSET_MAJOR) +#define CR_GLVERSION_MASK_MINOR (CR_GLVERSION_MAX_MINOR << CR_GLVERSION_OFFSET_MINOR) +#define CR_GLVERSION_MASK_BUILD (CR_GLVERSION_MAX_BUILD << CR_GLVERSION_OFFSET_BUILD) + +#define CR_GLVERSION_COMPOSE_EL(_val, _type) (((_val) << CR_GLVERSION_OFFSET_##_type) & CR_GLVERSION_MASK_##_type) + +#define CR_GLVERSION_COMPOSE(_maj, _min, _build) (CR_GLVERSION_COMPOSE_EL((_maj), MAJOR) \ + + CR_GLVERSION_COMPOSE_EL((_min), MINOR) \ + + CR_GLVERSION_COMPOSE_EL((_build), BUILD)) + +#define CR_GLVERSION_GET_EL(_val, _type) (((_val) & CR_GLVERSION_MASK_##_type) >> CR_GLVERSION_OFFSET_##_type) +#define CR_GLVERSION_GET_MAJOR(_val) CR_GLVERSION_GET_EL((_val), MAJOR) +#define CR_GLVERSION_GET_MINOR(_val) CR_GLVERSION_GET_EL((_val), MINOR) +#define CR_GLVERSION_GET_BUILD(_val) CR_GLVERSION_GET_EL((_val), BUILD) + +DECLEXPORT(int) crStrParseGlVersion(const char * ver); +DECLEXPORT(int32_t) crStrParseI32(const char *pszStr, const int32_t defaultVal); +RT_C_DECLS_END + +#endif /* CR_STRING_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_threads.h b/src/VBox/GuestHost/OpenGL/include/cr_threads.h new file mode 100644 index 00000000..b3b6a93a --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_threads.h @@ -0,0 +1,118 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_THREADS_H +#define CR_THREADS_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#include "chromium.h" +#include "cr_bits.h" + +#ifdef WINDOWS +#define WIN32_LEAN_AND_MEAN +# ifdef VBOX +# include <iprt/win/windows.h> +# else +#include <windows.h> +# endif +#else +#include <pthread.h> +#include <semaphore.h> +#endif + +#include "cr_error.h" + +#include <iprt/asm.h> +/* + * Handle for Thread-Specific Data + */ +typedef struct { +#ifdef WINDOWS + DWORD key; +#else + pthread_key_t key; +#endif + int initMagic; +} CRtsd; + + +extern DECLEXPORT(void) crInitTSD(CRtsd *tsd); +extern DECLEXPORT(void) crInitTSDF(CRtsd *tsd, void (*destructor)(void *)); +extern DECLEXPORT(void) crFreeTSD(CRtsd *tsd); +extern DECLEXPORT(void) crSetTSD(CRtsd *tsd, void *ptr); +extern DECLEXPORT(void *) crGetTSD(CRtsd *tsd); +extern DECLEXPORT(unsigned long) crThreadID(void); + + +/* Mutex datatype */ +#ifdef WINDOWS +typedef CRITICAL_SECTION CRmutex; +#else +typedef pthread_mutex_t CRmutex; +#endif + +extern DECLEXPORT(void) crInitMutex(CRmutex *mutex); +extern DECLEXPORT(void) crFreeMutex(CRmutex *mutex); +extern DECLEXPORT(void) crLockMutex(CRmutex *mutex); +extern DECLEXPORT(void) crUnlockMutex(CRmutex *mutex); + + +/* Condition variable datatype */ +#ifdef WINDOWS +typedef int CRcondition; +#else +typedef pthread_cond_t CRcondition; +#endif + +extern DECLEXPORT(void) crInitCondition(CRcondition *cond); +extern DECLEXPORT(void) crFreeCondition(CRcondition *cond); +extern DECLEXPORT(void) crWaitCondition(CRcondition *cond, CRmutex *mutex); +extern DECLEXPORT(void) crSignalCondition(CRcondition *cond); + + +/* Barrier datatype */ +typedef struct { + unsigned int count; +#ifdef WINDOWS + HANDLE hEvents[CR_MAX_CONTEXTS]; +#else + unsigned int waiting; + pthread_cond_t cond; + pthread_mutex_t mutex; +#endif +} CRbarrier; + +extern DECLEXPORT(void) crInitBarrier(CRbarrier *b, unsigned int count); +extern DECLEXPORT(void) crFreeBarrier(CRbarrier *b); +extern DECLEXPORT(void) crWaitBarrier(CRbarrier *b); + + +/* Semaphores */ +#ifdef WINDOWS + typedef int CRsemaphore; +#else + typedef sem_t CRsemaphore; +#endif + +extern DECLEXPORT(void) crInitSemaphore(CRsemaphore *s, unsigned int count); +extern DECLEXPORT(void) crWaitSemaphore(CRsemaphore *s); +extern DECLEXPORT(void) crSignalSemaphore(CRsemaphore *s); + +#define VBoxTlsRefGetImpl(_tls) (crGetTSD((CRtsd*)(_tls))) +#define VBoxTlsRefSetImpl(_tls, _val) (crSetTSD((CRtsd*)(_tls), (_val))) +#define VBoxTlsRefAssertImpl CRASSERT +#include <VBoxVideo3D.h> + +#ifdef __cplusplus +} +#endif + +#endif /* CR_THREADS_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_timer.h b/src/VBox/GuestHost/OpenGL/include/cr_timer.h new file mode 100644 index 00000000..9385a76c --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_timer.h @@ -0,0 +1,58 @@ +#ifndef CR_TIMER_H +#define CR_TIMER_H + +#ifndef WINDOWS +#include <sys/time.h> + +#if defined (IRIX) || defined( IRIX64 ) +typedef unsigned long long iotimer64_t; +typedef unsigned int iotimer32_t; +#endif +#else +# ifdef VBOX +# include <iprt/win/windows.h> +# else +#include <windows.h> +# endif +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct Timer +{ + double time0, elapsed; + char running; + + int fd; +#if defined (IRIX) || defined( IRIX64 ) + unsigned long long counter64; + unsigned int counter32; + unsigned int cycleval; + + volatile iotimer64_t *iotimer_addr64; + volatile iotimer32_t *iotimer_addr32; + + void *unmapLocation; + int unmapSize; +#elif defined(WINDOWS) + LARGE_INTEGER performance_counter, performance_frequency; + double one_over_frequency; +#elif defined( Linux ) || defined( FreeBSD ) || defined(DARWIN) || defined(AIX) || defined (SunOS) || defined(OSF1) + struct timeval timeofday; +#endif +} CRTimer; + +CRTimer *crTimerNewTimer( void ); +void crDestroyTimer( CRTimer *t ); +void crStartTimer( CRTimer *t ); +void crStopTimer( CRTimer *t ); +void crResetTimer( CRTimer *t ); +double crTimerTime( CRTimer *t ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_TIMER_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_unpack.h b/src/VBox/GuestHost/OpenGL/include/cr_unpack.h new file mode 100644 index 00000000..61de8fcc --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_unpack.h @@ -0,0 +1,98 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_UNPACK_H +#define CR_UNPACK_H + +#include "cr_compiler.h" +#include "cr_spu.h" +#include "cr_protocol.h" +#include "cr_mem.h" +#include "cr_opcodes.h" + +#include <iprt/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern SPUDispatchTable cr_unpackDispatch; +/*extern DLLDATA(const unsigned char *) cr_unpackData;*/ +extern DECLEXPORT(const unsigned char *) cr_unpackData; +extern DECLEXPORT(const unsigned char *) cr_unpackDataEnd; + +DECLEXPORT(void) crUnpackSetReturnPointer( CRNetworkPointer *ptr ); +DECLEXPORT(void) crUnpackSetWritebackPointer( CRNetworkPointer *ptr ); +DECLEXPORT(void) crUnpack( const void *data, const void *data_end, const void *opcodes, unsigned int num_opcodes, SPUDispatchTable *table ); +DECLEXPORT(void) crUnpackPush(void); +DECLEXPORT(void) crUnpackPop(void); + +typedef enum +{ + CR_UNPACK_BUFFER_TYPE_GENERIC = 0, + CR_UNPACK_BUFFER_TYPE_CMDBLOCK_BEGIN, + CR_UNPACK_BUFFER_TYPE_CMDBLOCK_FLUSH, + CR_UNPACK_BUFFER_TYPE_CMDBLOCK_END +} CR_UNPACK_BUFFER_TYPE; + +DECLEXPORT(CR_UNPACK_BUFFER_TYPE) crUnpackGetBufferType(const void *opcodes, unsigned int num_opcodes); + +extern CRNetworkPointer * return_ptr; +extern CRNetworkPointer * writeback_ptr; + +#if defined(LINUX) || defined(WINDOWS) +#define CR_UNALIGNED_ACCESS_OKAY +#else +#undef CR_UNALIGNED_ACCESS_OKAY +#endif +DECLEXPORT(double) crReadUnalignedDouble( const void *buffer ); + +#define READ_DATA( offset, type ) \ + *( (const type *) (cr_unpackData + (offset))) + +#ifdef CR_UNALIGNED_ACCESS_OKAY +#define READ_DOUBLE( offset ) \ + READ_DATA( offset, GLdouble ) +#else +#define READ_DOUBLE( offset ) \ + crReadUnalignedDouble( cr_unpackData + (offset) ) +#endif + +#define READ_NETWORK_POINTER( offset ) \ + ( cr_unpackData + (offset) ) + +/* XXX make this const */ +#define DATA_POINTER( offset, type ) \ + ( (type *) (cr_unpackData + (offset)) ) + +#define DATA_POINTER_CHECK( offset ) \ + ( (cr_unpackDataEnd >= cr_unpackData) && (size_t)(cr_unpackDataEnd - cr_unpackData) >= (size_t)(offset) ) + +#define INCR_DATA_PTR( delta ) \ + cr_unpackData += (delta) + +#define INCR_DATA_PTR_NO_ARGS() \ + INCR_DATA_PTR( 4 ) + +#define INCR_VAR_PTR() \ + INCR_DATA_PTR( *((int *) cr_unpackData ) ) + +#define SET_RETURN_PTR( offset ) do { \ + CRDBGPTR_CHECKZ(return_ptr); \ + crMemcpy( return_ptr, cr_unpackData + (offset), sizeof( *return_ptr ) ); \ + } while (0); + + +#define SET_WRITEBACK_PTR( offset ) do { \ + CRDBGPTR_CHECKZ(writeback_ptr); \ + crMemcpy( writeback_ptr, cr_unpackData + (offset), sizeof( *writeback_ptr ) ); \ + } while (0); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_UNPACK_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_url.h b/src/VBox/GuestHost/OpenGL/include/cr_url.h new file mode 100644 index 00000000..38a11313 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_url.h @@ -0,0 +1,23 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_URL_H +#define CR_URL_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +DECLEXPORT(int) crParseURL( const char *url, char *protocol, char *hostname, + unsigned short *port, unsigned short default_port ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_URL_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_version.h b/src/VBox/GuestHost/OpenGL/include/cr_version.h new file mode 100644 index 00000000..1c3c2478 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_version.h @@ -0,0 +1,186 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_VERSION_H +#define CR_VERSION_H + +#define SHCROGL_SSM_VERSION_BEFORE_CTXUSAGE_BITS 28 +/* version which might have context usage bits saved */ +#define SHCROGL_SSM_VERSION_WITH_SAVED_CTXUSAGE_BITS SHCROGL_SSM_VERSION_BEFORE_CTXUSAGE_BITS +#define SHCROGL_SSM_VERSION_BEFORE_FRONT_DRAW_TRACKING 29 +/* version that might have corrupted state data */ +#define SHCROGL_SSM_VERSION_WITH_CORUPTED_STATE 30 +/* version with invalid glGetError state */ +#define SHCROGL_SSM_VERSION_WITH_INVALID_ERROR_STATE 30 +/* VBox 4.2.12 had a bug that incorrectly CRMuralInfo data + * in a different format without changing the state version, + * i.e. 30 version can have both "correct" and "incorrect" CRMuralInfo data */ +#define SHCROGL_SSM_VERSION_WITH_BUGGY_MURAL_INFO 30 +/* the saved state has incorrect front and back buffer image data */ +#define SHCROGL_SSM_VERSION_WITH_BUGGY_FB_IMAGE_DATA 31 +#define SHCROGL_SSM_VERSION_WITH_STATE_BITS 33 +#define SHCROGL_SSM_VERSION_WITH_WINDOW_CTX_USAGE 33 +#define SHCROGL_SSM_VERSION_WITH_FIXED_STENCIL 34 +#define SHCROGL_SSM_VERSION_WITH_SAVED_DEPTH_STENCIL_BUFFER 35 +/* some ogl drivers fail to Read/DrawPixels for DEPTH and STENCIL separately + * from DEPTH_STENCIL renderbuffer we used for offscreen rendering + * this is why we switched to glReadDrawPixels(GL_DEPTH_STENCIL) in one run */ +#define SHCROGL_SSM_VERSION_WITH_SINGLE_DEPTH_STENCIL 36 +#define SHCROGL_SSM_VERSION_WITH_PRESENT_STATE 37 +/* older state did not have glPointParameter ( GL_POINT_SPRITE_COORD_ORIGIN ) implementation */ +#define SHCROGL_SSM_VERSION_WITH_SPRITE_COORD_ORIGIN 38 +/* dirty bits are not needed for now, remove */ +#define SHCROGL_SSM_VERSION_WITHOUT_DIRTY_BITS 38 +/* dummy windows and contexts have 0 external IDs, so never get stored to the state */ +#define SHCROGL_SSM_VERSION_WITH_FIXED_DUMMYIDS 39 +#define SHCROGL_SSM_VERSION_WITH_SCREEN_INFO 40 +#define SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS 41 +#define SHCROGL_SSM_VERSION_WITH_FB_INFO 42 +#define SHCROGL_SSM_VERSION_WITH_BUGGY_KEYS 42 +#define SHCROGL_SSM_VERSION_CRCMD 44 +#define SHCROGL_SSM_VERSION_WITH_SCREEN_MAP 45 +#define SHCROGL_SSM_VERSION_WITH_SCREEN_MAP_REORDERED 46 +#define SHCROGL_SSM_VERSION_WITH_PEND_CMD_INFO 47 +#define SHCROGL_SSM_VERSION_WITH_SEPARATE_DEPTH_STENCIL_BUFFERS 48 +#define SHCROGL_SSM_VERSION_WITH_DISPLAY_LISTS 49 +#define SHCROGL_SSM_VERSION 49 + +/* These define the Chromium release number. + * Alpha Release = 0.1.0, Beta Release = 0.2.0 + */ +#define CR_MAJOR_VERSION 1 +#define CR_MINOR_VERSION 9 +#define CR_PATCH_VERSION 0 + +#define CR_VERSION_STRING "1.9" /* Chromium version, not OpenGL version */ + + +/* These define the OpenGL version that Chromium supports. + * This lets users easily recompile Chromium with/without OpenGL 1.x support. + * We use OpenGL's GL_VERSION_1_x convention. + */ +#define CR_OPENGL_VERSION_1_0 1 +#define CR_OPENGL_VERSION_1_1 1 +#define CR_OPENGL_VERSION_1_2 1 +#define CR_OPENGL_VERSION_1_2_1 1 +#define CR_OPENGL_VERSION_1_3 1 +#define CR_OPENGL_VERSION_1_4 1 +#define CR_OPENGL_VERSION_1_5 1 +#define CR_OPENGL_VERSION_2_0 1 +#define CR_OPENGL_VERSION_2_1 1 + +/* Version (string) of OpenGL functionality supported by Chromium */ +#ifdef CR_OPENGL_VERSION_2_1 +# define CR_OPENGL_VERSION_STRING "2.1" +#elif defined(CR_OPENGL_VERSION_2_0) +# define CR_OPENGL_VERSION_STRING "2.0" +#else +# define CR_OPENGL_VERSION_STRING "1.5" +#endif + + +/* These define the OpenGL extensions that Chromium supports. + * Users can enable/disable support for particular OpenGL extensions here. + * Again, use OpenGL's convention. + * WARNING: if you add new extensions here, also update this file: + * state_tracker/state_limits.c + */ + +/*#define CR_ARB_imaging 1 not yet */ +#define CR_ARB_depth_texture 1 +#define CR_ARB_fragment_program 1 +#define CR_ARB_multitexture 1 +#define CR_ARB_multisample 1 +#define CR_ARB_occlusion_query 1 +#define CR_ARB_point_parameters 1 +#define CR_ARB_point_sprite 1 +#define CR_ARB_shadow 1 +#define CR_ARB_shadow_ambient 1 +#define CR_ARB_texture_border_clamp 1 +#define CR_ARB_texture_compression 1 +#define CR_ARB_texture_cube_map 1 +#define CR_ARB_texture_env_add 1 +#define CR_ARB_texture_env_combine 1 +#define CR_ARB_texture_env_crossbar 1 +#define CR_ARB_texture_env_dot3 1 +#define CR_ARB_texture_mirrored_repeat 1 +#define CR_ATI_texture_mirror_once 1 +#define CR_ARB_texture_non_power_of_two 1 +#define CR_ARB_transpose_matrix 1 +#define CR_ARB_vertex_buffer_object 1 +#define CR_ARB_vertex_program 1 +#define CR_ARB_window_pos 1 + +#define CR_EXT_blend_color 1 +#define CR_EXT_blend_equation 1 +#define CR_EXT_blend_minmax 1 +#define CR_EXT_blend_logic_op 1 +#define CR_EXT_blend_subtract 1 +#define CR_EXT_blend_func_separate 1 +#define CR_EXT_clip_volume_hint 1 +#define CR_EXT_fog_coord 1 +#define CR_EXT_multi_draw_arrays 1 +#define CR_EXT_shadow_funcs 1 +#define CR_EXT_secondary_color 1 +#ifndef CR_OPENGL_VERSION_1_2 +#define CR_EXT_separate_specular_color 1 +#endif +#define CR_EXT_stencil_wrap 1 +#define CR_EXT_texture_cube_map 1 +#define CR_EXT_texture_edge_clamp 1 +#define CR_EXT_texture_env_add 1 +#define CR_EXT_texture_filter_anisotropic 1 +#define CR_EXT_texture_lod_bias 1 +#define CR_EXT_texture_object 1 +#define CR_EXT_texture3D 1 + +#define CR_IBM_rasterpos_clip 1 + +#define CR_NV_fog_distance 1 +#define CR_NV_register_combiners 1 +#define CR_NV_register_combiners2 1 +#define CR_NV_texgen_reflection 1 +#define CR_NV_texture_rectangle 1 +#define CR_NV_vertex_program 1 +#define CR_NV_vertex_program1_1 1 +#define CR_NV_vertex_program2 1 +#define CR_NV_vertex_program2_option 1 +#define CR_NV_vertex_program3 1 +#define CR_NV_fragment_program 1 +#define CR_NV_fragment_program_option 1 +#define CR_NV_fragment_program2 1 + +#define CR_SGIS_texture_border_clamp 1 +#define CR_SGIS_texture_edge_clamp 1 +#define CR_SGIS_generate_mipmap 1 + +#define CR_EXT_texture_from_pixmap 1 +#define CR_EXT_draw_range_elements 1 +#define CR_EXT_texture_compression_s3tc 1 + +#define CR_ARB_shader_objects 1 +#define CR_ARB_vertex_shader 1 +#define CR_ARB_fragment_shader 1 +#define CR_ARB_shading_language_100 1 + +#define CR_EXT_framebuffer_object 1 +#define CR_EXT_compiled_vertex_array 1 + +#define CR_ARB_pixel_buffer_object 1 +#define CR_EXT_texture_sRGB 1 + +#define CR_EXT_framebuffer_blit 1 +#define CR_EXT_blend_equation_separate 1 +#define CR_EXT_stencil_two_side 1 + +#define CR_GREMEDY_string_marker 1 + +#define CR_ARB_texture_float 1 +#define CR_ARB_draw_buffers 1 + +#define CR_ARB_shader_texture_lod 1 + +#endif /* CR_VERSION_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/cr_vreg.h b/src/VBox/GuestHost/OpenGL/include/cr_vreg.h new file mode 100644 index 00000000..46a0d59f --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_vreg.h @@ -0,0 +1,411 @@ +/* $Id: cr_vreg.h $ */ +/** @file + * Visible Regions processing API + */ + +/* + * Copyright (C) 2012-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ + +#ifndef ___cr_vreg_h_ +#define ___cr_vreg_h_ + +#include <iprt/list.h> +#include <iprt/types.h> +#include <iprt/mem.h> +#include <iprt/string.h> +#include <iprt/assert.h> +#include <iprt/critsect.h> +#include <iprt/asm.h> + +#ifndef IN_RING0 +# define VBOXVREGDECL(_type) DECLEXPORT(_type) +#else +/** @todo r=bird: Using RTDECL is just SOO wrong! */ +# define VBOXVREGDECL(_type) RTDECL(_type) +#endif + + + +RT_C_DECLS_BEGIN + +typedef struct VBOXVR_LIST +{ + RTLISTANCHOR ListHead; + uint32_t cEntries; +} VBOXVR_LIST; +typedef VBOXVR_LIST *PVBOXVR_LIST; +typedef VBOXVR_LIST const *PCVBOXVR_LIST; + +DECLINLINE(int) VBoxRectCmp(PCRTRECT pRect1, PCRTRECT pRect2) +{ + return memcmp(pRect1, pRect2, sizeof(*pRect1)); +} + +#ifndef IN_RING0 +# define CR_FLOAT_RCAST(_t, _v) ((_t)((float)(_v) + 0.5)) + +DECLINLINE(void) VBoxRectScale(PRTRECT pRect, float xScale, float yScale) +{ + pRect->xLeft = CR_FLOAT_RCAST(int32_t, pRect->xLeft * xScale); + pRect->yTop = CR_FLOAT_RCAST(int32_t, pRect->yTop * yScale); + pRect->xRight = CR_FLOAT_RCAST(int32_t, pRect->xRight * xScale); + pRect->yBottom = CR_FLOAT_RCAST(int32_t, pRect->yBottom * yScale); +} + +DECLINLINE(void) VBoxRectScaled(PCRTRECT pRect, float xScale, float yScale, PRTRECT pResult) +{ + *pResult = *pRect; + VBoxRectScale(pResult, xScale, yScale); +} + +DECLINLINE(void) VBoxRectUnscale(PRTRECT pRect, float xScale, float yScale) +{ + pRect->xLeft = CR_FLOAT_RCAST(int32_t, pRect->xLeft / xScale); + pRect->yTop = CR_FLOAT_RCAST(int32_t, pRect->yTop / yScale); + pRect->xRight = CR_FLOAT_RCAST(int32_t, pRect->xRight / xScale); + pRect->yBottom = CR_FLOAT_RCAST(int32_t, pRect->yBottom / yScale); +} + +DECLINLINE(void) VBoxRectUnscaled(PCRTRECT pRect, float xScale, float yScale, PRTRECT pResult) +{ + *pResult = *pRect; + VBoxRectUnscale(pResult, xScale, yScale); +} + +#endif /* IN_RING0 */ + +DECLINLINE(void) VBoxRectIntersect(PRTRECT pRect1, PCRTRECT pRect2) +{ + Assert(pRect1); + Assert(pRect2); + pRect1->xLeft = RT_MAX(pRect1->xLeft, pRect2->xLeft); + pRect1->yTop = RT_MAX(pRect1->yTop, pRect2->yTop); + pRect1->xRight = RT_MIN(pRect1->xRight, pRect2->xRight); + pRect1->yBottom = RT_MIN(pRect1->yBottom, pRect2->yBottom); + /* ensure the rect is valid */ + pRect1->xRight = RT_MAX(pRect1->xRight, pRect1->xLeft); + pRect1->yBottom = RT_MAX(pRect1->yBottom, pRect1->yTop); +} + +DECLINLINE(void) VBoxRectIntersected(PCRTRECT pRect1, PCRTRECT pRect2, PRTRECT pResult) +{ + *pResult = *pRect1; + VBoxRectIntersect(pResult, pRect2); +} + + +DECLINLINE(void) VBoxRectTranslate(PRTRECT pRect, int32_t x, int32_t y) +{ + pRect->xLeft += x; + pRect->yTop += y; + pRect->xRight += x; + pRect->yBottom += y; +} + +DECLINLINE(void) VBoxRectTranslated(PCRTRECT pRect, int32_t x, int32_t y, PRTRECT pResult) +{ + *pResult = *pRect; + VBoxRectTranslate(pResult, x, y); +} + +DECLINLINE(void) VBoxRectInvertY(PRTRECT pRect) +{ + int32_t y = pRect->yTop; + pRect->yTop = pRect->yBottom; + pRect->yBottom = y; +} + +DECLINLINE(void) VBoxRectInvertedY(PCRTRECT pRect, PRTRECT pResult) +{ + *pResult = *pRect; + VBoxRectInvertY(pResult); +} + +DECLINLINE(void) VBoxRectMove(PRTRECT pRect, int32_t x, int32_t y) +{ + int32_t cx = pRect->xRight - pRect->xLeft; + int32_t cy = pRect->yBottom - pRect->yTop; + pRect->xLeft = x; + pRect->yTop = y; + pRect->xRight = cx + x; + pRect->yBottom = cy + y; +} + +DECLINLINE(void) VBoxRectMoved(PCRTRECT pRect, int32_t x, int32_t y, PRTRECT pResult) +{ + *pResult = *pRect; + VBoxRectMove(pResult, x, y); +} + +DECLINLINE(bool) VBoxRectCovers(PCRTRECT pRect, PCRTRECT pCovered) +{ + AssertPtr(pRect); + AssertPtr(pCovered); + if (pRect->xLeft > pCovered->xLeft) + return false; + if (pRect->yTop > pCovered->yTop) + return false; + if (pRect->xRight < pCovered->xRight) + return false; + if (pRect->yBottom < pCovered->yBottom) + return false; + return true; +} + +DECLINLINE(bool) VBoxRectIsZero(PCRTRECT pRect) +{ + return pRect->xLeft == pRect->xRight || pRect->yTop == pRect->yBottom; +} + +DECLINLINE(bool) VBoxRectIsIntersect(PCRTRECT pRect1, PCRTRECT pRect2) +{ + return !( (pRect1->xLeft < pRect2->xLeft && pRect1->xRight <= pRect2->xLeft) + || (pRect2->xLeft < pRect1->xLeft && pRect2->xRight <= pRect1->xLeft) + || (pRect1->yTop < pRect2->yTop && pRect1->yBottom <= pRect2->yTop) + || (pRect2->yTop < pRect1->yTop && pRect2->yBottom <= pRect1->yTop) ); +} + +DECLINLINE(uint32_t) VBoxVrListRectsCount(PCVBOXVR_LIST pList) +{ + return pList->cEntries; +} + +DECLINLINE(bool) VBoxVrListIsEmpty(PCVBOXVR_LIST pList) +{ + return !VBoxVrListRectsCount(pList); +} + +DECLINLINE(void) VBoxVrListInit(PVBOXVR_LIST pList) +{ + RTListInit(&pList->ListHead); + pList->cEntries = 0; +} + +VBOXVREGDECL(void) VBoxVrListClear(PVBOXVR_LIST pList); + +/* moves list data to pDstList and empties the pList */ +VBOXVREGDECL(void) VBoxVrListMoveTo(PVBOXVR_LIST pList, PVBOXVR_LIST pDstList); + +VBOXVREGDECL(void) VBoxVrListTranslate(PVBOXVR_LIST pList, int32_t x, int32_t y); + +VBOXVREGDECL(int) VBoxVrListCmp(PCVBOXVR_LIST pList1, PCVBOXVR_LIST pList2); + +VBOXVREGDECL(int) VBoxVrListRectsSet(PVBOXVR_LIST pList, uint32_t cRects, PCRTRECT paRects, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrListRectsAdd(PVBOXVR_LIST pList, uint32_t cRects, PCRTRECT paRects, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrListRectsSubst(PVBOXVR_LIST pList, uint32_t cRects, PCRTRECT paRects, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrListRectsGet(PVBOXVR_LIST pList, uint32_t cRects, PRTRECT paRects); + +VBOXVREGDECL(int) VBoxVrListClone(PCVBOXVR_LIST pList, VBOXVR_LIST *pDstList); + +/* NOTE: with the current implementation the VBoxVrListIntersect is faster than VBoxVrListRectsIntersect, + * i.e. VBoxVrListRectsIntersect is actually a convenience function that create a temporary list and calls + * VBoxVrListIntersect internally. */ +VBOXVREGDECL(int) VBoxVrListRectsIntersect(PVBOXVR_LIST pList, uint32_t cRects, PCRTRECT paRects, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrListIntersect(PVBOXVR_LIST pList, PCVBOXVR_LIST pList2, bool *pfChanged); + +VBOXVREGDECL(int) VBoxVrInit(void); +VBOXVREGDECL(void) VBoxVrTerm(void); + +typedef struct VBOXVR_LIST_ITERATOR +{ + PVBOXVR_LIST pList; + PRTLISTNODE pNextEntry; +} VBOXVR_LIST_ITERATOR; +typedef VBOXVR_LIST_ITERATOR *PVBOXVR_LIST_ITERATOR; +typedef VBOXVR_LIST_ITERATOR const *PCVBOXVR_LIST_ITERATOR; + +DECLINLINE(void) VBoxVrListIterInit(PVBOXVR_LIST pList, PVBOXVR_LIST_ITERATOR pIter) +{ + pIter->pList = pList; + pIter->pNextEntry = pList->ListHead.pNext; +} + +typedef struct VBOXVR_REG +{ + RTLISTNODE ListEntry; + RTRECT Rect; +} VBOXVR_REG; +typedef VBOXVR_REG *PVBOXVR_REG; +typedef VBOXVR_REG const *PCVBOXVR_REG; + +#define PVBOXVR_REG_FROM_ENTRY(_pEntry) RT_FROM_MEMBER(_pEntry, VBOXVR_REG, ListEntry) + +DECLINLINE(PCRTRECT) VBoxVrListIterNext(PVBOXVR_LIST_ITERATOR pIter) +{ + PRTLISTNODE pNextEntry = pIter->pNextEntry; + if (pNextEntry != &pIter->pList->ListHead) + { + PCRTRECT pRect = &PVBOXVR_REG_FROM_ENTRY(pNextEntry)->Rect; + pIter->pNextEntry = pNextEntry->pNext; + return pRect; + } + return NULL; +} + +typedef struct VBOXVR_COMPOSITOR_ENTRY +{ + RTLISTNODE Node; + VBOXVR_LIST Vr; + uint32_t cRefs; +} VBOXVR_COMPOSITOR_ENTRY; +typedef VBOXVR_COMPOSITOR_ENTRY *PVBOXVR_COMPOSITOR_ENTRY; +typedef VBOXVR_COMPOSITOR_ENTRY const *PCVBOXVR_COMPOSITOR_ENTRY; + +struct VBOXVR_COMPOSITOR; + +typedef DECLCALLBACK(void) FNVBOXVRCOMPOSITOR_ENTRY_RELEASED(const struct VBOXVR_COMPOSITOR *pCompositor, + PVBOXVR_COMPOSITOR_ENTRY pEntry, + PVBOXVR_COMPOSITOR_ENTRY pReplacingEntry); +typedef FNVBOXVRCOMPOSITOR_ENTRY_RELEASED *PFNVBOXVRCOMPOSITOR_ENTRY_RELEASED; + +typedef struct VBOXVR_COMPOSITOR +{ + RTLISTANCHOR List; + PFNVBOXVRCOMPOSITOR_ENTRY_RELEASED pfnEntryReleased; +} VBOXVR_COMPOSITOR; +typedef VBOXVR_COMPOSITOR *PVBOXVR_COMPOSITOR; +typedef VBOXVR_COMPOSITOR const *PCVBOXVR_COMPOSITOR; + +typedef DECLCALLBACK(bool) FNVBOXVRCOMPOSITOR_VISITOR(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry, + void *pvVisitor); +typedef FNVBOXVRCOMPOSITOR_VISITOR *PFNVBOXVRCOMPOSITOR_VISITOR; + +VBOXVREGDECL(void) VBoxVrCompositorInit(PVBOXVR_COMPOSITOR pCompositor, PFNVBOXVRCOMPOSITOR_ENTRY_RELEASED pfnEntryReleased); +VBOXVREGDECL(void) VBoxVrCompositorClear(PVBOXVR_COMPOSITOR pCompositor); +VBOXVREGDECL(void) VBoxVrCompositorRegionsClear(PVBOXVR_COMPOSITOR pCompositor, bool *pfChanged); +VBOXVREGDECL(void) VBoxVrCompositorEntryInit(PVBOXVR_COMPOSITOR_ENTRY pEntry); + +DECLINLINE(bool) VBoxVrCompositorEntryIsInList(PCVBOXVR_COMPOSITOR_ENTRY pEntry) +{ + return !VBoxVrListIsEmpty(&pEntry->Vr); +} + +#define CRBLT_F_LINEAR 0x00000001 +#define CRBLT_F_INVERT_SRC_YCOORDS 0x00000002 +#define CRBLT_F_INVERT_DST_YCOORDS 0x00000004 +#define CRBLT_F_INVERT_YCOORDS (CRBLT_F_INVERT_SRC_YCOORDS | CRBLT_F_INVERT_DST_YCOORDS) +/* the blit operation with discard the source alpha channel values and set the destination alpha values to 1.0 */ +#define CRBLT_F_NOALPHA 0x00000010 + +#define CRBLT_FTYPE_XOR CRBLT_F_INVERT_YCOORDS +#define CRBLT_FTYPE_OR (CRBLT_F_LINEAR | CRBLT_F_NOALPHA) +#define CRBLT_FOP_COMBINE(_f1, _f2) ((((_f1) ^ (_f2)) & CRBLT_FTYPE_XOR) | (((_f1) | (_f2)) & CRBLT_FTYPE_OR)) + +#define CRBLT_FLAGS_FROM_FILTER(_f) ( ((_f) & GL_LINEAR) ? CRBLT_F_LINEAR : 0) +#define CRBLT_FILTER_FROM_FLAGS(_f) (((_f) & CRBLT_F_LINEAR) ? GL_LINEAR : GL_NEAREST) + +/* compositor regions changed */ +#define VBOXVR_COMPOSITOR_CF_REGIONS_CHANGED 0x00000001 +/* other entries changed along while doing current entry modification + * always comes with VBOXVR_COMPOSITOR_CF_ENTRY_REGIONS_CHANGED */ +#define VBOXVR_COMPOSITOR_CF_OTHER_ENTRIES_REGIONS_CHANGED 0x00000002 +/* only current entry regions changed + * can come wither with VBOXVR_COMPOSITOR_CF_REGIONS_CHANGED or with VBOXVR_COMPOSITOR_CF_ENTRY_REPLACED */ +#define VBOXVR_COMPOSITOR_CF_ENTRY_REGIONS_CHANGED 0x00000004 +/* the given entry has replaced some other entry, while overal regions did NOT change. + * always comes with VBOXVR_COMPOSITOR_CF_ENTRY_REGIONS_CHANGED */ +#define VBOXVR_COMPOSITOR_CF_ENTRY_REPLACED 0x00000008 + + +VBOXVREGDECL(bool) VBoxVrCompositorEntryRemove(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry); +VBOXVREGDECL(bool) VBoxVrCompositorEntryReplace(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry, + PVBOXVR_COMPOSITOR_ENTRY pNewEntry); +VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsAdd(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry, + uint32_t cRegions, PCRTRECT paRegions, + PVBOXVR_COMPOSITOR_ENTRY *ppReplacedEntry, uint32_t *pfChangeFlags); +VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsSubst(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry, + uint32_t cRegions, PCRTRECT paRegions, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsSet(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry, + uint32_t cRegions, PCRTRECT paRegions, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsIntersect(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry, + uint32_t cRegions, PCRTRECT paRegions, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrCompositorEntryListIntersect(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry, + PCVBOXVR_LIST pList2, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsIntersectAll(PVBOXVR_COMPOSITOR pCompositor, uint32_t cRegions, PCRTRECT paRegions, + bool *pfChanged); +VBOXVREGDECL(int) VBoxVrCompositorEntryListIntersectAll(PVBOXVR_COMPOSITOR pCompositor, PCVBOXVR_LIST pList2, bool *pfChanged); +VBOXVREGDECL(int) VBoxVrCompositorEntryRegionsTranslate(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ENTRY pEntry, + int32_t x, int32_t y, bool *pfChanged); +VBOXVREGDECL(void) VBoxVrCompositorVisit(PVBOXVR_COMPOSITOR pCompositor, PFNVBOXVRCOMPOSITOR_VISITOR pfnVisitor, void *pvVisitor); + +DECLINLINE(bool) VBoxVrCompositorIsEmpty(PCVBOXVR_COMPOSITOR pCompositor) +{ + return RTListIsEmpty(&pCompositor->List); +} + +typedef struct VBOXVR_COMPOSITOR_ITERATOR +{ + PVBOXVR_COMPOSITOR pCompositor; + PRTLISTNODE pNextEntry; +} VBOXVR_COMPOSITOR_ITERATOR; +typedef VBOXVR_COMPOSITOR_ITERATOR *PVBOXVR_COMPOSITOR_ITERATOR; + +typedef struct VBOXVR_COMPOSITOR_CONST_ITERATOR +{ + PCVBOXVR_COMPOSITOR pCompositor; + PCRTLISTNODE pNextEntry; +} VBOXVR_COMPOSITOR_CONST_ITERATOR; +typedef VBOXVR_COMPOSITOR_CONST_ITERATOR *PVBOXVR_COMPOSITOR_CONST_ITERATOR; + +DECLINLINE(void) VBoxVrCompositorIterInit(PVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_ITERATOR pIter) +{ + pIter->pCompositor = pCompositor; + pIter->pNextEntry = pCompositor->List.pNext; +} + +DECLINLINE(void) VBoxVrCompositorConstIterInit(PCVBOXVR_COMPOSITOR pCompositor, PVBOXVR_COMPOSITOR_CONST_ITERATOR pIter) +{ + pIter->pCompositor = pCompositor; + pIter->pNextEntry = pCompositor->List.pNext; +} + +#define VBOXVR_COMPOSITOR_ENTRY_FROM_NODE(_p) RT_FROM_MEMBER(_p, VBOXVR_COMPOSITOR_ENTRY, Node) +#define VBOXVR_COMPOSITOR_CONST_ENTRY_FROM_NODE(_p) RT_FROM_MEMBER(_p, const VBOXVR_COMPOSITOR_ENTRY, Node) + +DECLINLINE(PVBOXVR_COMPOSITOR_ENTRY) VBoxVrCompositorIterNext(PVBOXVR_COMPOSITOR_ITERATOR pIter) +{ + PRTLISTNODE pNextEntry = pIter->pNextEntry; + if (pNextEntry != &pIter->pCompositor->List) + { + PVBOXVR_COMPOSITOR_ENTRY pEntry = VBOXVR_COMPOSITOR_ENTRY_FROM_NODE(pNextEntry); + pIter->pNextEntry = pNextEntry->pNext; + return pEntry; + } + return NULL; +} + +DECLINLINE(PCVBOXVR_COMPOSITOR_ENTRY) VBoxVrCompositorConstIterNext(PVBOXVR_COMPOSITOR_CONST_ITERATOR pIter) +{ + PCRTLISTNODE pNextEntry = pIter->pNextEntry; + if (pNextEntry != &pIter->pCompositor->List) + { + PCVBOXVR_COMPOSITOR_ENTRY pEntry = VBOXVR_COMPOSITOR_CONST_ENTRY_FROM_NODE(pNextEntry); + pIter->pNextEntry = pNextEntry->pNext; + return pEntry; + } + return NULL; +} + +typedef struct VBOXVR_TEXTURE +{ + int32_t width; + int32_t height; + uint32_t target; + uint32_t hwid; +} VBOXVR_TEXTURE; +typedef VBOXVR_TEXTURE *PVBOXVR_TEXTURE; +typedef VBOXVR_TEXTURE const *PCVBOXVR_TEXTURE; + +RT_C_DECLS_END + +#endif + diff --git a/src/VBox/GuestHost/OpenGL/include/cr_warp.h b/src/VBox/GuestHost/OpenGL/include/cr_warp.h new file mode 100644 index 00000000..1048a851 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/cr_warp.h @@ -0,0 +1,22 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_WARP_H +#define CR_WARP_H + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +DECLEXPORT(void) crWarpPoint(const float *align, const float *point, float *result); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_BBOX_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/crut_api.h b/src/VBox/GuestHost/OpenGL/include/crut_api.h new file mode 100644 index 00000000..67f80756 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/crut_api.h @@ -0,0 +1,211 @@ +#ifndef CRUTAPI_H +#define CRUTAPI_H + +#ifdef WINDOWS +#define CRUT_APIENTRY __stdcall +#else +#define CRUT_APIENTRY +#endif + +#include "cr_net.h" +#include "cr_protocol.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Compile-time version tests */ +#define CRUT_MAJOR_VERSION 1 +#define CRUT_MINOR_VERSION 9 +#define CRUT_PATCH_VERSION 0 + +/* Display mode bit masks. */ +#define CRUT_RGB 0 +#define CRUT_RGBA GLUT_RGB +#define CRUT_INDEX 1 +#define CRUT_SINGLE 0 +#define CRUT_DOUBLE 2 +#define CRUT_ACCUM 4 +#define CRUT_ALPHA 8 +#define CRUT_DEPTH 16 +#define CRUT_STENCIL 32 + +/* Mouse buttons. */ +/* CRUT_NO_BUTTON provided for menu definition. Not every menu will + have a button associated with it. */ +#define CRUT_NO_BUTTON -1 +#define CRUT_LEFT_BUTTON 0 +#define CRUT_MIDDLE_BUTTON 1 +#define CRUT_RIGHT_BUTTON 2 + +/* Mouse button state. */ +#define CRUT_DOWN 0 +#define CRUT_UP 1 + +/* Visibility state. */ +#define CRUT_NOT_VISIBLE 0 +#define CRUT_VISIBLE 1 + +/* function keys */ +#define CRUT_KEY_F1 1 +#define CRUT_KEY_F2 2 +#define CRUT_KEY_F3 3 +#define CRUT_KEY_F4 4 +#define CRUT_KEY_F5 5 +#define CRUT_KEY_F6 6 +#define CRUT_KEY_F7 7 +#define CRUT_KEY_F8 8 +#define CRUT_KEY_F9 9 +#define CRUT_KEY_F10 10 +#define CRUT_KEY_F11 11 +#define CRUT_KEY_F12 12 +/* directional keys */ +#define CRUT_KEY_LEFT 100 +#define CRUT_KEY_UP 101 +#define CRUT_KEY_RIGHT 102 +#define CRUT_KEY_DOWN 103 +#define CRUT_KEY_PAGE_UP 104 +#define CRUT_KEY_PAGE_DOWN 105 +#define CRUT_KEY_HOME 106 +#define CRUT_KEY_END 107 +#define CRUT_KEY_INSERT 108 + +/* event types */ +#define CRUT_NO_EVENT 0 +#define CRUT_MOUSE_EVENT 1 +#define CRUT_RESHAPE_EVENT 2 +#define CRUT_KEYBOARD_EVENT 3 +#define CRUT_MOTION_EVENT 4 +#define CRUT_PASSIVE_MOTION_EVENT 5 +#define CRUT_MENU_EVENT 6 +#define CRUT_VISIBILITY_EVENT 7 + +#define DEFAULT_CRUT_PORT 9000 + +#define MENU_MAX_SIZE 1024 +#define MENU_ITEM_REGULAR 0 +#define MENU_ITEM_SUBMENU 1 + +/* CRUTMessage is just a placeholder to find the msg_type */ +typedef struct +{ + CRMessageHeader header; + int msg_type; + +} CRUTMessage; + +typedef struct +{ + CRMessageHeader header; + int msg_type; + int button; + int state; + int x; + int y; + +} CRUTMouseMsg; + +typedef struct +{ + CRMessageHeader header; + int msg_type; + int width; + int height; + +} CRUTReshapeMsg; + +typedef struct +{ + CRMessageHeader header; + int msg_type; + int state; + +} CRUTVisibilityMsg; + +typedef struct +{ + CRMessageHeader header; + int msg_type; + unsigned char key; + int x; + int y; + +} CRUTKeyboardMsg; + +typedef struct +{ + CRMessageHeader header; + int msg_type; + int x; + int y; + +} CRUTMotionMsg; + +typedef struct +{ + CRMessageHeader header; + int msg_type; + int x; + int y; + +} CRUTPassiveMotionMsg; + +typedef struct +{ + CRMessageHeader header; + int msg_type; + int menuID; + int value; + +} CRUTMenuMsg; + +typedef struct +{ + unsigned short tcpip_port; + int mtu; + char protocol[1024]; + CRConnection *send_conn; + +} CRUTClientPointer; + +typedef struct +{ + CRUTClientPointer *crutclients; + CRConnection *mothershipConn; + int numclients; + int winX; + int winY; + int winWidth; + int winHeight; + + int compositeAlpha; + int compositeDepth; + + char menuBuffer[MENU_MAX_SIZE]; + +} CRUTAPI; + +#define MAX_MSG_SIZE sizeof(CRUTMouseMsg) + + +/* extern CRUTAPI crut_api;*/ + +void CRUT_APIENTRY crutInitAPI( CRUTAPI *crut_api, const char *mothership ); +void CRUT_APIENTRY crutGetWindowParams( CRUTAPI *crut_api ); +void CRUT_APIENTRY crutGetMenuXML( CRUTAPI *crut_api ); +void CRUT_APIENTRY crutSetWindowID( CRUTAPI *crut_api, int windowID ); +void CRUT_APIENTRY crutConnectToClients( CRUTAPI *crut_api ); +void crutSendEvent( CRUTAPI *crut_api, void *msg, int size ); +void CRUT_APIENTRY crutSendMouseEvent( CRUTAPI *crut_api, int button, int state, int x, int y ); +void CRUT_APIENTRY crutSendKeyboardEvent( CRUTAPI *crut_api, int key, int x, int y ); +void CRUT_APIENTRY crutSendReshapeEvent( CRUTAPI *crut_api, int width, int height ); +void CRUT_APIENTRY crutSendVisibilityEvent( CRUTAPI *crut_api, int state ); +void CRUT_APIENTRY crutSendMotionEvent( CRUTAPI *crut_api, int x, int y ); +void CRUT_APIENTRY crutSendPassiveMotionEvent( CRUTAPI *crut_api, int x, int y ); +void CRUT_APIENTRY crutSendMenuEvent( CRUTAPI *crut_api, int menuID, int value ); + +#ifdef __cplusplus +} +#endif + +#endif /* CRUTAPI_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/crut_clientapi.h b/src/VBox/GuestHost/OpenGL/include/crut_clientapi.h new file mode 100644 index 00000000..570c2be7 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/crut_clientapi.h @@ -0,0 +1,45 @@ +#ifndef CRUT_CLIENTAPI_H +#define CRUT_CLEINTAPI_H + +#ifdef WINDOWS +#define CRUT_CLIENT_APIENTRY __stdcall +#else +#define CRUT_CLIENT_APIENTRY +#endif + +#include "chromium.h" +#include "crut_api.h" + +#ifdef __cplusplus +extern "C" { +#endif + +void CRUT_CLIENT_APIENTRY crutInitClient(void); +void CRUT_CLIENT_APIENTRY crutReceiveEventType(int type); +void CRUT_CLIENT_APIENTRY crutMouseFunc( void (*func)(int button, int state, int x, int y) ); +void CRUT_CLIENT_APIENTRY crutKeyboardFunc( void (*func) (unsigned char key, int x, int y) ); +void CRUT_CLIENT_APIENTRY crutReshapeFunc( void (*func) (int width, int height) ); +void CRUT_CLIENT_APIENTRY crutVisibilityFunc( void (*func) (int state) ); +void CRUT_CLIENT_APIENTRY crutMotionFunc( void (*func) (int x, int y) ); +void CRUT_CLIENT_APIENTRY crutPassiveMotionFunc( void (*func) (int x, int y) ); +void CRUT_CLIENT_APIENTRY crutIdleFunc( void (*func)(void)); +void CRUT_CLIENT_APIENTRY crutDisplayFunc(void (*func)(void)); +void CRUT_CLIENT_APIENTRY crutPostRedisplay(void); +void CRUT_CLIENT_APIENTRY crutMainLoop(void); +int CRUT_CLIENT_APIENTRY crutCreateContext ( unsigned int visual ); +int CRUT_CLIENT_APIENTRY crutCreateWindow ( unsigned int visual ); +void CRUT_CLIENT_APIENTRY crutMakeCurrent( int window, int context ); +void CRUT_CLIENT_APIENTRY crutSwapBuffers( int window, int flags ); +void CRUT_CLIENT_APIENTRY crutReceiveEvent(CRUTMessage **msg); +int CRUT_CLIENT_APIENTRY crutCheckEvent( void ); +int CRUT_CLIENT_APIENTRY crutPeekNextEvent( void ); +int CRUT_CLIENT_APIENTRY crutCreateMenu( void (*func) (int val) ); +void CRUT_CLIENT_APIENTRY crutAddMenuEntry( char* name, int value ); +void CRUT_CLIENT_APIENTRY crutAddSubMenu( char* name, int menuID ); +void CRUT_CLIENT_APIENTRY crutAttachMenu( int button ); + +#ifdef __cplusplus +} +#endif + +#endif /* CRUT_CLIENTAPI_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_attrib.h b/src/VBox/GuestHost/OpenGL/include/state/cr_attrib.h new file mode 100644 index 00000000..579e71dd --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_attrib.h @@ -0,0 +1,405 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_ATTRIB_H +#define CR_STATE_ATTRIB_H + +#include "state/cr_limits.h" +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; +} CRAttribBits; + +typedef struct { + GLcolorf accumClearValue; +} CRAccumBufferStack; + +typedef struct { + GLboolean blend; + GLboolean alphaTest; + GLboolean logicOp; + GLboolean indexLogicOp; + GLboolean dither; + + GLenum alphaTestFunc; + GLfloat alphaTestRef; + GLenum blendSrcRGB; + GLenum blendDstRGB; + GLenum blendSrcA; + GLenum blendDstA; + GLcolorf blendColor; + GLenum blendEquation; + GLenum logicOpMode; + GLenum drawBuffer; + GLint indexWriteMask; + GLcolorb colorWriteMask; + GLcolorf colorClearValue; + GLfloat indexClearValue; +} CRColorBufferStack; + +typedef struct { + GLboolean rasterValid; + GLfloat attrib[CR_MAX_VERTEX_ATTRIBS][4]; + GLfloat rasterAttrib[CR_MAX_VERTEX_ATTRIBS][4]; + GLboolean edgeFlag; + GLfloat colorIndex; +} CRCurrentStack; + +typedef struct { + GLboolean depthTest; + GLboolean depthMask; + GLenum depthFunc; + GLdefault depthClearValue; +} CRDepthBufferStack; + +typedef struct { + GLboolean alphaTest; + GLboolean autoNormal; + GLboolean blend; + GLboolean *clip; + GLboolean colorMaterial; + GLboolean cullFace; + GLboolean depthTest; + GLboolean dither; + GLboolean fog; + GLboolean *light; + GLboolean lighting; + GLboolean lineSmooth; + GLboolean lineStipple; + GLboolean logicOp; + GLboolean indexLogicOp; + GLboolean map1[GLEVAL_TOT]; + GLboolean map2[GLEVAL_TOT]; + GLboolean normalize; + GLboolean pointSmooth; +#ifdef CR_ARB_point_sprite + GLboolean pointSprite; + GLboolean coordReplacement[CR_MAX_TEXTURE_UNITS]; +#endif + GLboolean polygonOffsetLine; + GLboolean polygonOffsetFill; + GLboolean polygonOffsetPoint; + GLboolean polygonSmooth; + GLboolean polygonStipple; +#ifdef CR_OPENGL_VERSION_1_2 + GLboolean rescaleNormals; +#endif + GLboolean scissorTest; + GLboolean stencilTest; + GLboolean texture1D[CR_MAX_TEXTURE_UNITS]; + GLboolean texture2D[CR_MAX_TEXTURE_UNITS]; + GLboolean texture3D[CR_MAX_TEXTURE_UNITS]; +#ifdef CR_ARB_texture_cube_map + GLboolean textureCubeMap[CR_MAX_TEXTURE_UNITS]; +#endif +#ifdef CR_NV_texture_rectangle + GLboolean textureRect[CR_MAX_TEXTURE_UNITS]; +#endif + GLboolean textureGenS[CR_MAX_TEXTURE_UNITS]; + GLboolean textureGenT[CR_MAX_TEXTURE_UNITS]; + GLboolean textureGenR[CR_MAX_TEXTURE_UNITS]; + GLboolean textureGenQ[CR_MAX_TEXTURE_UNITS]; +} CREnableStack; + +typedef struct { + GLboolean enable1D[GLEVAL_TOT]; + GLboolean enable2D[GLEVAL_TOT]; + GLboolean autoNormal; + CREvaluator1D eval1D[GLEVAL_TOT]; + CREvaluator2D eval2D[GLEVAL_TOT]; + GLint un1D; + GLfloat u11D, u21D; + GLint un2D; + GLint vn2D; + GLfloat u12D, u22D; + GLfloat v12D, v22D; +} CREvalStack; + +typedef struct { + GLboolean lighting; + GLboolean colorMaterial; + GLenum shadeModel; + GLenum colorMaterialMode; + GLenum colorMaterialFace; + GLcolorf ambient[2]; + GLcolorf diffuse[2]; + GLcolorf specular[2]; + GLcolorf emission[2]; + GLfloat shininess[2]; + GLint indexes[2][3]; + GLcolorf lightModelAmbient; + GLboolean lightModelLocalViewer; + GLboolean lightModelTwoSide; +#if defined(CR_EXT_separate_specular_color) || defined(CR_OPENGL_VERSION_1_2) + GLenum lightModelColorControlEXT; +#endif + CRLight *light; +} CRLightingStack; + +typedef struct { + GLcolorf color; + GLint index; + GLfloat density; + GLfloat start; + GLfloat end; + GLint mode; + GLboolean enable; +} CRFogStack; + +typedef struct { + GLenum perspectiveCorrection; + GLenum pointSmooth; + GLenum lineSmooth; + GLenum polygonSmooth; + GLenum fog; +#ifdef CR_EXT_clip_volume_hint + GLenum clipVolumeClipping; +#endif +#ifdef CR_ARB_texture_compression + GLenum textureCompression; +#endif +#ifdef CR_SGIS_generate_mipmap + GLenum generateMipmap; +#endif +} CRHintStack; + +typedef struct { + GLboolean lineSmooth; + GLboolean lineStipple; + GLfloat width; + GLushort pattern; + GLint repeat; +} CRLineStack; + +typedef struct { + GLuint base; +} CRListStack; + +typedef struct { + GLboolean mapColor; + GLboolean mapStencil; + GLint indexShift; + GLint indexOffset; + GLcolorf scale; + GLfloat depthScale; + GLcolorf bias; + GLfloat depthBias; + GLfloat xZoom; + GLfloat yZoom; + GLenum readBuffer; +} CRPixelModeStack; + +typedef struct { + GLboolean pointSmooth; + GLfloat pointSize; +#if CR_ARB_point_sprite + GLboolean pointSprite; + GLboolean coordReplacement[CR_MAX_TEXTURE_UNITS]; +#endif +} CRPointStack; + +typedef struct { + GLboolean polygonSmooth; + GLboolean polygonOffsetFill; + GLboolean polygonOffsetLine; + GLboolean polygonOffsetPoint; + GLboolean polygonStipple; + GLboolean cullFace; + GLfloat offsetFactor; + GLfloat offsetUnits; + GLenum cullFaceMode; + GLenum frontFace; + GLenum frontMode; + GLenum backMode; +} CRPolygonStack; + +typedef struct { + GLint pattern[32]; +} CRPolygonStippleStack; + +typedef struct { + GLboolean scissorTest; + GLint scissorX; + GLint scissorY; + GLsizei scissorW; + GLsizei scissorH; +} CRScissorStack; + +typedef struct { + GLboolean stencilTest; + GLenum func; + GLint mask; + GLint ref; + GLenum fail; + GLenum passDepthFail; + GLenum passDepthPass; + GLint clearValue; + GLint writeMask; +} CRStencilBufferStack_v_33; + +typedef struct { + /* true if stencil test is enabled */ + GLboolean stencilTest; + /* true if GL_EXT_stencil_two_side is enabled (glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT)) */ + GLboolean stencilTwoSideEXT; + /* GL_FRONT or GL_BACK */ + GLenum activeStencilFace; + GLint clearValue; + GLint writeMask; + CRStencilBufferState buffers[CRSTATE_STENCIL_BUFFER_COUNT]; +} CRStencilBufferStack; + +typedef struct { +#if 111 + GLuint curTextureUnit; + CRTextureUnit unit[CR_MAX_TEXTURE_UNITS]; + +#else + GLboolean enabled1D[CR_MAX_TEXTURE_UNITS]; + GLboolean enabled2D[CR_MAX_TEXTURE_UNITS]; + GLboolean enabled3D[CR_MAX_TEXTURE_UNITS]; +# ifdef CR_ARB_texture_cube_map + GLboolean enabledCubeMap[CR_MAX_TEXTURE_UNITS]; +# endif + CRTextureObj *current1D[CR_MAX_TEXTURE_UNITS]; + CRTextureObj *current2D[CR_MAX_TEXTURE_UNITS]; + CRTextureObj *current3D[CR_MAX_TEXTURE_UNITS]; +# ifdef CR_ARB_texture_cube_map + CRTextureObj *currentCubeMap[CR_MAX_TEXTURE_UNITS]; +# endif + GLcolorf borderColor[4]; /* 4 = 1D, 2D, 3D and cube map textures */ + GLenum minFilter[4]; + GLenum magFilter[4]; + GLenum wrapS[4]; + GLenum wrapT[4]; +# ifdef CR_OPENGL_VERSION_1_2 + GLenum wrapR[4]; + GLfloat priority[4]; + GLfloat minLod[4]; + GLfloat maxLod[4]; + GLint baseLevel[4]; + GLint maxLevel[4]; +# endif + + GLuint curTextureUnit; + GLenum envMode[CR_MAX_TEXTURE_UNITS]; + GLcolorf envColor[CR_MAX_TEXTURE_UNITS]; + + GLtexcoordb textureGen[CR_MAX_TEXTURE_UNITS]; + GLvectorf objSCoeff[CR_MAX_TEXTURE_UNITS]; + GLvectorf objTCoeff[CR_MAX_TEXTURE_UNITS]; + GLvectorf objRCoeff[CR_MAX_TEXTURE_UNITS]; + GLvectorf objQCoeff[CR_MAX_TEXTURE_UNITS]; + GLvectorf eyeSCoeff[CR_MAX_TEXTURE_UNITS]; + GLvectorf eyeTCoeff[CR_MAX_TEXTURE_UNITS]; + GLvectorf eyeRCoeff[CR_MAX_TEXTURE_UNITS]; + GLvectorf eyeQCoeff[CR_MAX_TEXTURE_UNITS]; + GLtexcoorde gen[CR_MAX_TEXTURE_UNITS]; +#endif +} CRTextureStack; + +typedef struct { + GLenum matrixMode; + GLvectord *clipPlane; + GLboolean *clip; + GLboolean normalize; +#ifdef CR_OPENGL_VERSION_1_2 + GLboolean rescaleNormals; +#endif +} CRTransformStack; + +typedef struct { + GLint viewportX; + GLint viewportY; + GLint viewportW; + GLint viewportH; + GLclampd nearClip; + GLclampd farClip; +} CRViewportStack; + +typedef struct { + GLint attribStackDepth; + CRbitvalue pushMaskStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint accumBufferStackDepth; + CRAccumBufferStack accumBufferStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint colorBufferStackDepth; + CRColorBufferStack colorBufferStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint currentStackDepth; + CRCurrentStack currentStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint depthBufferStackDepth; + CRDepthBufferStack depthBufferStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint enableStackDepth; + CREnableStack enableStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint evalStackDepth; + CREvalStack evalStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint fogStackDepth; + CRFogStack fogStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint hintStackDepth; + CRHintStack hintStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint lightingStackDepth; + CRLightingStack lightingStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint lineStackDepth; + CRLineStack lineStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint listStackDepth; + CRListStack listStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint pixelModeStackDepth; + CRPixelModeStack pixelModeStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint pointStackDepth; + CRPointStack pointStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint polygonStackDepth; + CRPolygonStack polygonStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint polygonStippleStackDepth; + CRPolygonStippleStack polygonStippleStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint scissorStackDepth; + CRScissorStack scissorStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint stencilBufferStackDepth; + CRStencilBufferStack stencilBufferStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint textureStackDepth; + CRTextureStack textureStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint transformStackDepth; + CRTransformStack transformStack[CR_MAX_ATTRIB_STACK_DEPTH]; + + GLint viewportStackDepth; + CRViewportStack viewportStack[CR_MAX_ATTRIB_STACK_DEPTH]; +} CRAttribState; + +DECLEXPORT(void) crStateAttribInit(CRAttribState *a); + +/* No diff! */ +DECLEXPORT(void) crStateAttribSwitch(CRAttribBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_ATTRIB_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_buffer.h b/src/VBox/GuestHost/OpenGL/include/state/cr_buffer.h new file mode 100644 index 00000000..7a57aae9 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_buffer.h @@ -0,0 +1,95 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_BUFFER_H +#define CR_STATE_BUFFER_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue alphaFunc[CR_MAX_BITARRAY]; + CRbitvalue depthFunc[CR_MAX_BITARRAY]; + CRbitvalue blendFunc[CR_MAX_BITARRAY]; + CRbitvalue logicOp[CR_MAX_BITARRAY]; + CRbitvalue indexLogicOp[CR_MAX_BITARRAY]; + CRbitvalue drawBuffer[CR_MAX_BITARRAY]; + CRbitvalue readBuffer[CR_MAX_BITARRAY]; + CRbitvalue indexMask[CR_MAX_BITARRAY]; + CRbitvalue colorWriteMask[CR_MAX_BITARRAY]; + CRbitvalue clearColor[CR_MAX_BITARRAY]; + CRbitvalue clearIndex[CR_MAX_BITARRAY]; + CRbitvalue clearDepth[CR_MAX_BITARRAY]; + CRbitvalue clearAccum[CR_MAX_BITARRAY]; + CRbitvalue depthMask[CR_MAX_BITARRAY]; +#ifdef CR_EXT_blend_color + CRbitvalue blendColor[CR_MAX_BITARRAY]; +#endif +#if defined(CR_EXT_blend_minmax) || defined(CR_EXT_blend_subtract) || defined(CR_EXT_blend_logic_op) + CRbitvalue blendEquation[CR_MAX_BITARRAY]; +#endif +#if defined(CR_EXT_blend_func_separate) + CRbitvalue blendFuncSeparate[CR_MAX_BITARRAY]; +#endif +} CRBufferBits; + +typedef struct { + GLboolean depthTest; + GLboolean blend; + GLboolean alphaTest; + GLboolean logicOp; + GLboolean indexLogicOp; + GLboolean dither; + GLboolean depthMask; + + GLenum alphaTestFunc; + GLfloat alphaTestRef; + GLenum depthFunc; + GLenum blendSrcRGB; + GLenum blendDstRGB; + GLenum blendSrcA; + GLenum blendDstA; + GLenum logicOpMode; + GLenum drawBuffer; + GLenum readBuffer; + GLint indexWriteMask; + GLcolorb colorWriteMask; + GLcolorf colorClearValue; + GLfloat indexClearValue; + GLdefault depthClearValue; + GLcolorf accumClearValue; +#ifdef CR_EXT_blend_color + GLcolorf blendColor; +#endif +#if defined(CR_EXT_blend_minmax) || defined(CR_EXT_blend_subtract) + GLenum blendEquation; +#endif + + GLint width, height; + GLint storedWidth, storedHeight; + GLvoid *pFrontImg; + GLvoid *pBackImg; +} CRBufferState; + +DECLEXPORT(void) crStateBufferInit(CRContext *ctx); + +DECLEXPORT(void) crStateBufferDiff(CRBufferBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateBufferSwitch(CRBufferBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_BUFFER_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_bufferobject.h b/src/VBox/GuestHost/OpenGL/include/state/cr_bufferobject.h new file mode 100644 index 00000000..8584adc0 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_bufferobject.h @@ -0,0 +1,71 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_BUFFEROBJECT_H +#define CR_STATE_BUFFEROBJECT_H + +#include "cr_hash.h" +#include "state/cr_statetypes.h" +#include "state/cr_statefuncs.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue arrayBinding[CR_MAX_BITARRAY]; + CRbitvalue elementsBinding[CR_MAX_BITARRAY]; + CRbitvalue packBinding[CR_MAX_BITARRAY]; + CRbitvalue unpackBinding[CR_MAX_BITARRAY]; +} CRBufferObjectBits; + + +/* + * Buffer object, like a texture object, but encapsulates arbitrary + * data (vertex, image, etc). + */ +typedef struct { + GLuint refCount; + GLuint id; + GLuint hwid; + GLenum usage; + GLenum access; + GLuint size; /* buffer size in bytes */ + GLvoid *pointer; /* only valid while buffer is mapped */ + GLvoid *data; /* the buffer data, if retainBufferData is true */ + GLboolean bResyncOnRead; /* buffer data could be changed on server side, + so we need to resync every time guest wants to read from it*/ + CRbitvalue dirty[CR_MAX_BITARRAY]; /* dirty data or state */ + GLintptrARB dirtyStart, dirtyLength; /* dirty region */ + /* bitfield representing the object usage. 1 means the object is used by the context with the given bitid */ + CRbitvalue ctxUsage[CR_MAX_BITARRAY]; +} CRBufferObject; + +typedef struct { + GLboolean retainBufferData; /* should state tracker retain buffer data? */ + CRBufferObject *arrayBuffer; + CRBufferObject *elementsBuffer; + CRBufferObject *packBuffer; + CRBufferObject *unpackBuffer; + + CRBufferObject *nullBuffer; /* name = 0 */ +} CRBufferObjectState; + +DECLEXPORT(CRBufferObject *) crStateGetBoundBufferObject(GLenum target, CRBufferObjectState *b); +DECLEXPORT(GLboolean) crStateIsBufferBound(GLenum target); +struct CRContext; +DECLEXPORT(GLboolean) crStateIsBufferBoundForCtx(struct CRContext *g, GLenum target); + +DECLEXPORT(GLuint) STATE_APIENTRY crStateBufferHWIDtoID(GLuint hwid); +DECLEXPORT(GLuint) STATE_APIENTRY crStateGetBufferHWID(GLuint id); + +DECLEXPORT(void) crStateRegBuffers(GLsizei n, GLuint *buffers); +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_BUFFEROBJECT_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_client.h b/src/VBox/GuestHost/OpenGL/include/state/cr_client.h new file mode 100644 index 00000000..a727f260 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_client.h @@ -0,0 +1,143 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_CLIENT_H +#define CR_STATE_CLIENT_H + +#include "state/cr_statetypes.h" +#include "state/cr_limits.h" +#include "state/cr_bufferobject.h" +#include "cr_bits.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + /* pixel pack/unpack */ + CRbitvalue pack[CR_MAX_BITARRAY]; + CRbitvalue unpack[CR_MAX_BITARRAY]; + /* vertex array */ + CRbitvalue enableClientState[CR_MAX_BITARRAY]; + CRbitvalue clientPointer[CR_MAX_BITARRAY]; + CRbitvalue *v; /* vertex */ + CRbitvalue *n; /* normal */ + CRbitvalue *c; /* color */ + CRbitvalue *i; /* index */ + CRbitvalue *t[CR_MAX_TEXTURE_UNITS]; /* texcoord */ + CRbitvalue *e; /* edgeflag */ + CRbitvalue *s; /* secondary color */ + CRbitvalue *f; /* fog coord */ +#ifdef CR_NV_vertex_program + CRbitvalue *a[CR_MAX_VERTEX_ATTRIBS]; /* NV_vertex_program */ +#endif +} CRClientBits; + +/* + * NOTE!!!! If you change this structure, search through the code for + * occurrences of 'defaultPacking' and fix the static initializations!!!! + */ +typedef struct { + GLint rowLength; + GLint skipRows; + GLint skipPixels; + GLint alignment; + GLint imageHeight; + GLint skipImages; + GLboolean swapBytes; + GLboolean psLSBFirst; /* don't conflict with crap from Xlib.h */ +} CRPixelPackState; + +typedef struct { + unsigned char *p; + GLint size; + GLint type; + GLint stride; + GLboolean enabled; + GLboolean normalized; /* Added with GL_ARB_vertex_program */ + int bytesPerIndex; +#ifdef CR_ARB_vertex_buffer_object + CRBufferObject *buffer; +#endif +#ifdef CR_EXT_compiled_vertex_array + GLboolean locked; + unsigned char *prevPtr; + GLint prevStride; +#endif +} CRClientPointer; + +typedef struct { + CRClientPointer v; /* vertex */ + CRClientPointer n; /* normal */ + CRClientPointer c; /* color */ + CRClientPointer i; /* color index */ + CRClientPointer t[CR_MAX_TEXTURE_UNITS]; /* texcoords */ + CRClientPointer e; /* edge flags */ + CRClientPointer s; /* secondary color */ + CRClientPointer f; /* fog coord */ +#ifdef CR_NV_vertex_program + CRClientPointer a[CR_MAX_VERTEX_ATTRIBS]; /* vertex attribs */ +#endif +#ifdef CR_NV_vertex_array_range + GLboolean arrayRange; + GLboolean arrayRangeValid; + void *arrayRangePointer; + GLuint arrayRangeLength; +#endif +#ifdef CR_EXT_compiled_vertex_array + GLint lockFirst; + GLint lockCount; + GLboolean locked; +# ifdef IN_GUEST + GLboolean synced; +# endif +#endif +} CRVertexArrays; + +#define CRSTATECLIENT_MAX_VERTEXARRAYS (7+CR_MAX_TEXTURE_UNITS+CR_MAX_VERTEX_ATTRIBS) + +typedef struct { + /* pixel pack/unpack */ + CRPixelPackState pack; + CRPixelPackState unpack; + + CRVertexArrays array; + + GLint curClientTextureUnit; + + /* state stacks (glPush/PopClientState) */ + GLint attribStackDepth; + CRbitvalue pushMaskStack[CR_MAX_CLIENT_ATTRIB_STACK_DEPTH]; + + GLint pixelStoreStackDepth; + CRPixelPackState pixelPackStoreStack[CR_MAX_CLIENT_ATTRIB_STACK_DEPTH]; + CRPixelPackState pixelUnpackStoreStack[CR_MAX_CLIENT_ATTRIB_STACK_DEPTH]; + + GLint vertexArrayStackDepth; + CRVertexArrays vertexArrayStack[CR_MAX_CLIENT_ATTRIB_STACK_DEPTH]; +} CRClientState; + +extern const CRPixelPackState crStateNativePixelPacking; + +struct CRContext; + +DECLEXPORT(void) crStateClientInitBits(CRClientBits *c); +DECLEXPORT(void) crStateClientDestroyBits(CRClientBits *c); +DECLEXPORT(void) crStateClientInit(struct CRContext *g); +DECLEXPORT(void) crStateClientDestroy(struct CRContext *g); + +DECLEXPORT(GLboolean) crStateUseServerArrays(void); +DECLEXPORT(GLboolean) crStateUseServerArrayElements(void); +DECLEXPORT(CRClientPointer*) crStateGetClientPointerByIndex(int index, CRVertexArrays *array); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_CLIENT_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_current.h b/src/VBox/GuestHost/OpenGL/include/state/cr_current.h new file mode 100644 index 00000000..d4a05708 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_current.h @@ -0,0 +1,107 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_CURRENT_H +#define CR_STATE_CURRENT_H + +#include "state/cr_currentpointers.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + + +#define VERT_ATTRIB_POS 0 +#define VERT_ATTRIB_WEIGHT 1 +#define VERT_ATTRIB_NORMAL 2 +#define VERT_ATTRIB_COLOR0 3 +#define VERT_ATTRIB_COLOR1 4 +#define VERT_ATTRIB_FOG 5 +#define VERT_ATTRIB_SIX 6 +#define VERT_ATTRIB_SEVEN 7 +#define VERT_ATTRIB_TEX0 8 +#define VERT_ATTRIB_TEX1 9 +#define VERT_ATTRIB_TEX2 10 +#define VERT_ATTRIB_TEX3 11 +#define VERT_ATTRIB_TEX4 12 +#define VERT_ATTRIB_TEX5 13 +#define VERT_ATTRIB_TEX6 14 +#define VERT_ATTRIB_TEX7 15 +#define VERT_ATTRIB_MAX 16 + + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + /* Regardless of NV_vertex_program, we use this array */ + CRbitvalue vertexAttrib[CR_MAX_VERTEX_ATTRIBS][CR_MAX_BITARRAY]; + CRbitvalue edgeFlag[CR_MAX_BITARRAY]; + CRbitvalue colorIndex[CR_MAX_BITARRAY]; + CRbitvalue rasterPos[CR_MAX_BITARRAY]; +} CRCurrentBits; + + +typedef struct { + /* Pre-transform values */ + /* Regardless of NV_vertex_program, we use this array */ + GLfloat attrib[CR_MAX_VERTEX_ATTRIBS][4]; + GLboolean edgeFlag; + GLfloat colorIndex; + /* Post-transform values */ + GLvectorf eyePos; + GLvectorf clipPos; + GLvectorf winPos; +} CRVertex; + + +typedef struct { + /* Regardless of NV_vertex_program, we use this array */ + GLfloat vertexAttrib[CR_MAX_VERTEX_ATTRIBS][4]; + GLfloat vertexAttribPre[CR_MAX_VERTEX_ATTRIBS][4]; + + CRCurrentStatePointers *current; + + GLboolean rasterValid; + GLfloat rasterAttrib[CR_MAX_VERTEX_ATTRIBS][4]; + GLfloat rasterAttribPre[CR_MAX_VERTEX_ATTRIBS][4]; + + GLdouble rasterIndex; + GLboolean edgeFlag; + GLboolean edgeFlagPre; + GLfloat colorIndex; + GLfloat colorIndexPre; + + /* XXX this isn't really "current" state - move someday */ + GLuint attribsUsedMask; /* for ARB_vertex_program */ + GLboolean inBeginEnd; + GLenum mode; + GLuint beginEndMax; + GLuint beginEndNum; + GLuint flushOnEnd; + +} CRCurrentState; + +DECLEXPORT(void) crStateCurrentInit( CRContext *ctx ); + +DECLEXPORT(void) crStateCurrentRecover( void ); + +DECLEXPORT(void) crStateCurrentRecoverNew(CRContext *g, CRCurrentStatePointers *current); + +DECLEXPORT(void) crStateCurrentDiff(CRCurrentBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateCurrentSwitch(CRCurrentBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +DECLEXPORT(void) crStateRasterPosUpdate(GLfloat x, GLfloat y, GLfloat z, GLfloat w); + +DECLEXPORT(GLuint) crStateNeedDummyZeroVertexArray(CRContext *g, CRCurrentStatePointers *current, GLfloat *pZva); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_CURRENT_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_evaluators.h b/src/VBox/GuestHost/OpenGL/include/state/cr_evaluators.h new file mode 100644 index 00000000..2a3d7836 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_evaluators.h @@ -0,0 +1,91 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_EVALUATORS +#define CR_STATE_EVALUATORS + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#define GLEVAL_TOT 9 +#define MAX_EVAL_ORDER 30 + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue eval1D[GLEVAL_TOT][CR_MAX_BITARRAY]; + CRbitvalue eval2D[GLEVAL_TOT][CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue enable1D[GLEVAL_TOT][CR_MAX_BITARRAY]; + CRbitvalue enable2D[GLEVAL_TOT][CR_MAX_BITARRAY]; + CRbitvalue grid1D[CR_MAX_BITARRAY]; + CRbitvalue grid2D[CR_MAX_BITARRAY]; + CRbitvalue dirty[CR_MAX_BITARRAY]; +#ifdef CR_NV_vertex_program + CRbitvalue enableAttrib1D[CR_MAX_VERTEX_ATTRIBS]; + CRbitvalue enableAttrib2D[CR_MAX_VERTEX_ATTRIBS]; +#endif +} CREvaluatorBits; + +typedef struct { + GLfloat u1, u2; + GLfloat du; + GLint order; + GLfloat *coeff; +} CREvaluator1D; + +typedef struct { + GLfloat u1, u2; + GLfloat v1, v2; + GLfloat du, dv; + GLint uorder; + GLint vorder; + GLfloat *coeff; +} CREvaluator2D; + +typedef struct { + GLboolean enable1D[GLEVAL_TOT]; + GLboolean enable2D[GLEVAL_TOT]; +#ifdef CR_NV_vertex_program + GLboolean enableAttrib1D[CR_MAX_VERTEX_ATTRIBS]; + GLboolean enableAttrib2D[CR_MAX_VERTEX_ATTRIBS]; +#endif + GLboolean autoNormal; + + CREvaluator1D eval1D[GLEVAL_TOT]; + CREvaluator2D eval2D[GLEVAL_TOT]; +#ifdef CR_NV_vertex_program + CREvaluator1D attribEval1D[CR_MAX_VERTEX_ATTRIBS]; + CREvaluator2D attribEval2D[CR_MAX_VERTEX_ATTRIBS]; +#endif + + GLint un1D; /* GL_MAP1_GRID_SEGMENTS */ + GLfloat u11D, u21D; /* GL_MAP1_GRID_DOMAIN */ + + GLint un2D; /* GL_MAP2_GRID_SEGMENTS (u) */ + GLint vn2D; /* GL_MAP2_GRID_SEGMENTS (v) */ + GLfloat u12D, u22D; /* GL_MAP2_GRID_DOMAIN (u) */ + GLfloat v12D, v22D; /* GL_MAP2_GRID_DOMAIN (v) */ +} CREvaluatorState; + +extern const int gleval_sizes[]; + +DECLEXPORT(void) crStateEvaluatorInit (CRContext *ctx); +DECLEXPORT(void) crStateEvaluatorDestroy (CRContext *ctx); + +DECLEXPORT(void) crStateEvaluatorDiff(CREvaluatorBits *e, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateEvaluatorSwitch(CREvaluatorBits *e, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_EVALUATORS */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_feedback.h b/src/VBox/GuestHost/OpenGL/include/state/cr_feedback.h new file mode 100644 index 00000000..168f20eb --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_feedback.h @@ -0,0 +1,56 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_FEEDBACK_H +#define CR_STATE_FEEDBACK_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define MAX_NAME_STACK_DEPTH 64 + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; +} CRFeedbackBits; + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; +} CRSelectionBits; + +typedef struct { + GLenum type; + GLuint mask; + GLfloat *buffer; + GLuint bufferSize; + GLuint count; +} CRFeedbackState; + +typedef struct { + GLuint *buffer; + GLuint bufferSize; + GLuint bufferCount; + GLuint hits; + GLuint nameStackDepth; + GLuint nameStack[MAX_NAME_STACK_DEPTH]; + GLboolean hitFlag; + GLfloat hitMinZ, hitMaxZ; +} CRSelectionState; + +extern DECLEXPORT(void) crStateFeedbackDiff(CRFeedbackState *from, CRFeedbackState *to, + CRFeedbackBits *bb, CRbitvalue *bitID); +extern DECLEXPORT(void) crStateFeedbackSwitch(CRFeedbackBits *bb, CRbitvalue *bitID, + CRFeedbackState *from, CRFeedbackState *to); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_FEEDBACK_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_fog.h b/src/VBox/GuestHost/OpenGL/include/state/cr_fog.h new file mode 100644 index 00000000..f0f85129 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_fog.h @@ -0,0 +1,62 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_FOG_H +#define CR_STATE_FOG_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue color[CR_MAX_BITARRAY]; + CRbitvalue index[CR_MAX_BITARRAY]; + CRbitvalue density[CR_MAX_BITARRAY]; + CRbitvalue start[CR_MAX_BITARRAY]; + CRbitvalue end[CR_MAX_BITARRAY]; + CRbitvalue mode[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; +#ifdef CR_NV_fog_distance + CRbitvalue fogDistanceMode[CR_MAX_BITARRAY]; +#endif +#ifdef CR_EXT_fog_coord + CRbitvalue fogCoordinateSource[CR_MAX_BITARRAY]; +#endif +} CRFogBits; + +typedef struct { + GLcolorf color; + GLint index; + GLfloat density; + GLfloat start; + GLfloat end; + GLint mode; + GLboolean enable; +#ifdef CR_NV_fog_distance + GLenum fogDistanceMode; +#endif +#ifdef CR_EXT_fog_coord + GLenum fogCoordinateSource; +#endif +} CRFogState; + +DECLEXPORT(void) crStateFogInit(CRContext *ctx); + +DECLEXPORT(void) crStateFogDiff(CRFogBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateFogSwitch(CRFogBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_FOG_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_framebuffer.h b/src/VBox/GuestHost/OpenGL/include/state/cr_framebuffer.h new file mode 100644 index 00000000..13dd6e02 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_framebuffer.h @@ -0,0 +1,108 @@ +/* $Id: cr_framebuffer.h $ */ + +/** @file + * VBox crOpenGL: FBO related state info + */ + +/* + * Copyright (C) 2009-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ + + +#ifndef CR_STATE_FRAMEBUFFEROBJECT_H +#define CR_STATE_FRAMEBUFFEROBJECT_H + +#include "cr_hash.h" +#include "state/cr_statetypes.h" +#include "state/cr_statefuncs.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define CR_MAX_COLOR_ATTACHMENTS 16 + +typedef struct { + GLenum type; /*one of GL_NONE GL_TEXTURE GL_RENDERBUFFER_EXT*/ + GLuint name; + GLint level; + GLint face; + GLint zoffset; +} CRFBOAttachmentPoint; + +typedef struct { + GLuint id, hwid; + CRFBOAttachmentPoint color[CR_MAX_COLOR_ATTACHMENTS]; + CRFBOAttachmentPoint depth; + CRFBOAttachmentPoint stencil; + GLenum readbuffer; + /*@todo: we don't support drawbufferS yet, so it's a stub*/ + GLenum drawbuffer[1]; +#ifdef IN_GUEST + GLenum status; +#endif + /* bitfield representing the object usage. 1 means the object is used by the context with the given bitid */ + CRbitvalue ctxUsage[CR_MAX_BITARRAY]; +} CRFramebufferObject; + +typedef struct { + GLuint id, hwid; + GLsizei width, height; + GLenum internalformat; + GLuint redBits, greenBits, blueBits, alphaBits, depthBits, stencilBits; + /* bitfield representing the object usage. 1 means the object is used by the context with the given bitid */ + CRbitvalue ctxUsage[CR_MAX_BITARRAY]; +} CRRenderbufferObject; + +typedef struct { + CRFramebufferObject *readFB, *drawFB; + CRRenderbufferObject *renderbuffer; +} CRFramebufferObjectState; + +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferObjectInit(CRContext *ctx); +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferObjectDestroy(CRContext *ctx); +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferObjectSwitch(CRContext *from, CRContext *to); + +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferObjectDisableHW(CRContext *ctx, GLuint idDrawFBO, GLuint idReadFBO); +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferObjectReenableHW(CRContext *fromCtx, CRContext *toCtx, GLuint idDrawFBO, GLuint idReadFBO); + +DECLEXPORT(GLuint) STATE_APIENTRY crStateGetFramebufferHWID(GLuint id); +DECLEXPORT(GLuint) STATE_APIENTRY crStateGetRenderbufferHWID(GLuint id); + +DECLEXPORT(void) STATE_APIENTRY crStateBindRenderbufferEXT(GLenum target, GLuint renderbuffer); +DECLEXPORT(void) STATE_APIENTRY crStateDeleteRenderbuffersEXT(GLsizei n, const GLuint *renderbuffers); +DECLEXPORT(void) STATE_APIENTRY crStateRenderbufferStorageEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +DECLEXPORT(void) STATE_APIENTRY crStateGetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint *params); +DECLEXPORT(void) STATE_APIENTRY crStateBindFramebufferEXT(GLenum target, GLuint framebuffer); +DECLEXPORT(void) STATE_APIENTRY crStateDeleteFramebuffersEXT(GLsizei n, const GLuint *framebuffers); +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferTexture1DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +DECLEXPORT(void) STATE_APIENTRY crStateFramebufferRenderbufferEXT(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +DECLEXPORT(void) STATE_APIENTRY crStateGetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment, GLenum pname, GLint *params); +DECLEXPORT(void) STATE_APIENTRY crStateGenerateMipmapEXT(GLenum target); + +DECLEXPORT(GLuint) STATE_APIENTRY crStateFBOHWIDtoID(GLuint hwid); +DECLEXPORT(GLuint) STATE_APIENTRY crStateRBOHWIDtoID(GLuint hwid); + +DECLEXPORT(void) crStateRegFramebuffers(GLsizei n, GLuint *buffers); +DECLEXPORT(void) crStateRegRenderbuffers(GLsizei n, GLuint *buffers); + +#ifdef IN_GUEST +DECLEXPORT(GLenum) STATE_APIENTRY crStateCheckFramebufferStatusEXT(GLenum target); +DECLEXPORT(GLenum) STATE_APIENTRY crStateSetFramebufferStatus(GLenum target, GLenum status); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_FRAMEBUFFEROBJECT_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_glsl.h b/src/VBox/GuestHost/OpenGL/include/state/cr_glsl.h new file mode 100644 index 00000000..32c3a80c --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_glsl.h @@ -0,0 +1,122 @@ +/* $Id: cr_glsl.h $ */ + +/** @file + * VBox crOpenGL: GLSL related state info + */ + +/* + * Copyright (C) 2009-2019 Oracle Corporation + * + * This file is part of VirtualBox Open Source Edition (OSE), as + * available from http://www.virtualbox.org. This file is free software; + * you can redistribute it and/or modify it under the terms of the GNU + * General Public License (GPL) as published by the Free Software + * Foundation, in version 2 as it comes in the "COPYING" file of the + * VirtualBox OSE distribution. VirtualBox OSE is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + */ + +#ifndef CR_STATE_GLSL_H +#define CR_STATE_GLSL_H + +#include "cr_hash.h" +#include "state/cr_statetypes.h" +#include "state/cr_statefuncs.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* We can't go the "easy" way of just extracting all the required data when taking snapshots. + Shader objects might be modified *after* program linkage and wouldn't affect program until it's relinked. + So we have to keep track of shaders statuses right before each program was linked as well as their "current" status. +*/ + +/*@todo: check rare case when successfully linked and active program is relinked with failure*/ + +typedef struct { + GLuint id, hwid; + GLenum type; /*GL_VERTEX_SHADER or GL_FRAGMENT_SHADER*/ + GLchar* source; /*NULL after context loading unless in program's "active" hash*/ + GLboolean compiled, deleted; + GLuint refCount; /*valid only for shaders in CRGLSLState's hash*/ +} CRGLSLShader; + +typedef struct { + GLchar* name; + GLuint index; +} CRGLSLAttrib; + +/*Note: active state will hold copies of shaders while current state references shaders in the CRGLSLState hashtable*/ +/*@todo: probably don't need a hashtable here*/ +typedef struct { + CRHashTable *attachedShaders; + CRGLSLAttrib *pAttribs; /*several names could be bound to the same index*/ + GLuint cAttribs; +} CRGLSLProgramState; + +typedef struct{ + GLchar *name; + GLenum type; + GLvoid *data; +#ifdef IN_GUEST + GLint location; +#endif +} CRGLSLUniform; + +typedef struct { + GLuint id, hwid; + GLboolean validated, linked, deleted; + CRGLSLProgramState activeState, currentState; + CRGLSLUniform *pUniforms; + GLuint cUniforms; +#ifdef IN_GUEST + CRGLSLAttrib *pAttribs; + GLuint cAttribs; + GLboolean bUniformsSynced; /*uniforms info is updated since last link program call.*/ + GLboolean bAttribsSynced; /*attribs info is updated since last link program call.*/ +#endif +} CRGLSLProgram; + +typedef struct { + CRHashTable *shaders; + CRHashTable *programs; + + CRGLSLProgram *activeProgram; + + /* Indicates that we have to resend GLSL data to GPU on first glMakeCurrent call with owning context */ + GLboolean bResyncNeeded; +} CRGLSLState; + +DECLEXPORT(void) STATE_APIENTRY crStateGLSLInit(CRContext *ctx); +DECLEXPORT(void) STATE_APIENTRY crStateGLSLDestroy(CRContext *ctx); +DECLEXPORT(void) STATE_APIENTRY crStateGLSLSwitch(CRContext *from, CRContext *to); + +DECLEXPORT(GLuint) STATE_APIENTRY crStateGetShaderHWID(GLuint id); +DECLEXPORT(GLuint) STATE_APIENTRY crStateGetProgramHWID(GLuint id); +DECLEXPORT(GLuint) STATE_APIENTRY crStateGLSLProgramHWIDtoID(GLuint hwid); +DECLEXPORT(GLuint) STATE_APIENTRY crStateGLSLShaderHWIDtoID(GLuint hwid); + +DECLEXPORT(GLint) STATE_APIENTRY crStateGetUniformSize(GLenum type); +DECLEXPORT(GLboolean) STATE_APIENTRY crStateIsIntUniform(GLenum type); + +DECLEXPORT(GLuint) STATE_APIENTRY crStateCreateShader(GLuint id, GLenum type); +DECLEXPORT(GLuint) STATE_APIENTRY crStateCreateProgram(GLuint id); +DECLEXPORT(GLuint) STATE_APIENTRY crStateDeleteObjectARB( VBoxGLhandleARB obj ); + +DECLEXPORT(GLboolean) STATE_APIENTRY crStateIsProgramUniformsCached(GLuint program); +DECLEXPORT(GLboolean) STATE_APIENTRY crStateIsProgramAttribsCached(GLuint program); + +#ifdef IN_GUEST +DECLEXPORT(void) STATE_APIENTRY crStateGLSLProgramCacheUniforms(GLuint program, GLsizei cbData, GLvoid *pData); +DECLEXPORT(void) STATE_APIENTRY crStateGLSLProgramCacheAttribs(GLuint program, GLsizei cbData, GLvoid *pData); +#else +DECLEXPORT(void) STATE_APIENTRY crStateGLSLProgramCacheUniforms(GLuint program, GLsizei maxcbData, GLsizei *cbData, GLvoid *pData); +DECLEXPORT(void) STATE_APIENTRY crStateGLSLProgramCacheAttribs(GLuint program, GLsizei maxcbData, GLsizei *cbData, GLvoid *pData); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_GLSL_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_hint.h b/src/VBox/GuestHost/OpenGL/include/state/cr_hint.h new file mode 100644 index 00000000..f6b64492 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_hint.h @@ -0,0 +1,62 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_HINT_H +#define CR_STATE_HINT_H + +#include "state/cr_statetypes.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue perspectiveCorrection[CR_MAX_BITARRAY]; + CRbitvalue pointSmooth[CR_MAX_BITARRAY]; + CRbitvalue lineSmooth[CR_MAX_BITARRAY]; + CRbitvalue polygonSmooth[CR_MAX_BITARRAY]; + CRbitvalue fog[CR_MAX_BITARRAY]; +#ifdef CR_EXT_clip_volume_hint + CRbitvalue clipVolumeClipping[CR_MAX_BITARRAY]; +#endif +#ifdef CR_ARB_texture_compression + CRbitvalue textureCompression[CR_MAX_BITARRAY]; +#endif +#ifdef CR_SGIS_generate_mipmap + CRbitvalue generateMipmap[CR_MAX_BITARRAY]; +#endif +} CRHintBits; + +typedef struct { + GLenum perspectiveCorrection; + GLenum pointSmooth; + GLenum lineSmooth; + GLenum polygonSmooth; + GLenum fog; +#ifdef CR_EXT_clip_volume_hint + GLenum clipVolumeClipping; +#endif +#ifdef CR_ARB_texture_compression + GLenum textureCompression; +#endif +#ifdef CR_SGIS_generate_mipmap + GLenum generateMipmap; +#endif +} CRHintState; + +DECLEXPORT(void) crStateHintInit(CRContext *ctx); + +DECLEXPORT(void) crStateHintDiff(CRHintBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateHintSwitch(CRHintBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_HINT_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_lighting.h b/src/VBox/GuestHost/OpenGL/include/state/cr_lighting.h new file mode 100644 index 00000000..f10f10ec --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_lighting.h @@ -0,0 +1,92 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_LIGHTING_H +#define CR_STATE_LIGHTING_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue ambient[CR_MAX_BITARRAY]; + CRbitvalue diffuse[CR_MAX_BITARRAY]; + CRbitvalue specular[CR_MAX_BITARRAY]; + CRbitvalue position[CR_MAX_BITARRAY]; + CRbitvalue attenuation[CR_MAX_BITARRAY]; + CRbitvalue spot[CR_MAX_BITARRAY]; +} CRLightBits; + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue shadeModel[CR_MAX_BITARRAY]; + CRbitvalue colorMaterial[CR_MAX_BITARRAY]; + CRbitvalue lightModel[CR_MAX_BITARRAY]; + CRbitvalue material[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRLightBits *light; +} CRLightingBits; + +typedef struct { + GLboolean enable; + GLcolorf ambient; + GLcolorf diffuse; + GLcolorf specular; + GLvectorf position; + GLvectorf objPosition; + GLfloat constantAttenuation; + GLfloat linearAttenuation; + GLfloat quadraticAttenuation; + GLvectorf spotDirection; + GLfloat spotExponent; + GLfloat spotCutoff; +} CRLight; + +typedef struct { + GLboolean lighting; + GLboolean colorMaterial; + GLenum shadeModel; + GLenum colorMaterialMode; + GLenum colorMaterialFace; + GLcolorf ambient[2]; /* material front/back */ + GLcolorf diffuse[2]; /* material front/back */ + GLcolorf specular[2]; /* material front/back */ + GLcolorf emission[2]; /* material front/back */ + GLfloat shininess[2]; /* material front/back */ + GLint indexes[2][3]; /* material front/back amb/diff/spec */ + GLcolorf lightModelAmbient; + GLboolean lightModelLocalViewer; + GLboolean lightModelTwoSide; +#if defined(CR_EXT_separate_specular_color) || defined(CR_OPENGL_VERSION_1_2) + GLenum lightModelColorControlEXT; /* CR_EXT_separate_specular_color */ +#endif + GLboolean colorSumEXT; /* CR_EXT_secondary_color */ + CRLight *light; +} CRLightingState; + +DECLEXPORT(void) crStateLightingInitBits (CRLightingBits *l); +DECLEXPORT(void) crStateLightingDestroyBits (CRLightingBits *l); +DECLEXPORT(void) crStateLightingInit (CRContext *ctx); +DECLEXPORT(void) crStateLightingDestroy (CRContext *ctx); + +DECLEXPORT(void) crStateLightingDiff(CRLightingBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateLightingSwitch(CRLightingBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +DECLEXPORT(void) crStateColorMaterialRecover( void ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_LIGHTING_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_limits.h b/src/VBox/GuestHost/OpenGL/include/state/cr_limits.h new file mode 100644 index 00000000..0378ff07 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_limits.h @@ -0,0 +1,285 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_LIMITS_H +#define CR_LIMITS_H + +#include "chromium.h" +#include "cr_version.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + + +/* glGetString strings */ +#define CR_RENDERER "Chromium" +#define CR_VENDOR "Humper" + + +#define CR_MAX_TEXTURE_UNITS 8 +#define CR_MAX_GENERAL_COMBINERS 8 +#define CR_MAX_TEXTURE_SIZE 8192 +#define CR_MAX_3D_TEXTURE_SIZE 512 +#define CR_MAX_CUBE_TEXTURE_SIZE 4096 +#define CR_MAX_RECTANGLE_TEXTURE_SIZE 4096 +#define CR_MAX_TEXTURE_ANISOTROPY 8.0 +#define CR_MAX_LIGHTS 8 +#define CR_MAX_CLIP_PLANES 8 +#define CR_MAX_PROJECTION_STACK_DEPTH 32 +#define CR_MAX_MODELVIEW_STACK_DEPTH 32 +#define CR_MAX_TEXTURE_STACK_DEPTH 10 +#define CR_MAX_COLOR_STACK_DEPTH 2 +#define CR_MAX_ATTRIB_STACK_DEPTH 16 +#define CR_MAX_CLIENT_ATTRIB_STACK_DEPTH 16 +#define CR_MAX_NAME_STACK_DEPTH 64 +#define CR_MAX_ELEMENTS_INDICES 16384 +#define CR_MAX_ELEMENTS_VERTICES 16384 +#define CR_MAX_EVAL_ORDER 8 +#define CR_MAX_LIST_NESTING 64 +#define CR_MAX_PIXEL_MAP_TABLE 256 +#define CR_MAX_VIEWPORT_DIM 16384 +#define CR_SUBPIXEL_BITS 8 +#define CR_ALIASED_POINT_SIZE_MIN 1.0 +#define CR_ALIASED_POINT_SIZE_MAX 64.0 +#define CR_SMOOTH_POINT_SIZE_MIN 1.0 +#define CR_SMOOTH_POINT_SIZE_MAX 64.0 +#define CR_POINT_SIZE_GRANULARITY 0.5 +#define CR_ALIASED_LINE_WIDTH_MIN 1.0 +#define CR_ALIASED_LINE_WIDTH_MAX 64.0 +#define CR_SMOOTH_LINE_WIDTH_MIN 1.0 +#define CR_SMOOTH_LINE_WIDTH_MAX 64.0 +#define CR_LINE_WIDTH_GRANULARITY 0.5 +#define CR_MAX_VERTEX_ATTRIBS 16 +#define CR_MAX_TEXTURE_LOD_BIAS 8.0 +#ifdef CR_NV_fragment_program +#define CR_MAX_TEXTURE_COORDS 2 +#define CR_MAX_TEXTURE_IMAGE_UNITS 2 +#define CR_MAX_FRAGMENT_LOCAL_PARAMS 64 +#endif +#ifdef CR_NV_vertex_program +#define CR_MAX_PROGRAM_MATRICES 8 +#define CR_MAX_PROGRAM_MATRIX_STACK_DEPTH 4 +#endif +#ifdef CR_ARB_fragment_program +#define CR_MAX_FRAGMENT_PROGRAM_INSTRUCTIONS 72 +#define CR_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMS 24 +#define CR_MAX_FRAGMENT_PROGRAM_ENV_PARAMS 256 +#define CR_MAX_FRAGMENT_PROGRAM_TEMPS 16 +#define CR_MAX_FRAGMENT_PROGRAM_ATTRIBS 10 +#define CR_MAX_FRAGMENT_PROGRAM_ADDRESS_REGS 1 +#define CR_MAX_FRAGMENT_PROGRAM_ALU_INSTRUCTIONS 48 +#define CR_MAX_FRAGMENT_PROGRAM_TEX_INSTRUCTIONS 24 +#define CR_MAX_FRAGMENT_PROGRAM_TEX_INDIRECTIONS 4 +#endif +#ifdef CR_ARB_vertex_program +#define CR_MAX_VERTEX_PROGRAM_INSTRUCTIONS 128 +#define CR_MAX_VERTEX_PROGRAM_LOCAL_PARAMS 96 +#define CR_MAX_VERTEX_PROGRAM_ENV_PARAMS 256 /* for GL_NV_vertex_program2 */ +#define CR_MAX_VERTEX_PROGRAM_TEMPS 12 +#define CR_MAX_VERTEX_PROGRAM_ATTRIBS 16 +#define CR_MAX_VERTEX_PROGRAM_ADDRESS_REGS 1 +#endif + +#if defined(CR_ARB_vertex_program) || defined(CR_ARB_fragment_program) +/* These must be the max of the fragment and vertex program limits */ +#define CR_MAX_PROGRAM_LOCAL_PARAMS (CR_MAX_VERTEX_PROGRAM_LOCAL_PARAMS > CR_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMS ? CR_MAX_VERTEX_PROGRAM_LOCAL_PARAMS : CR_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMS) + +#define CR_MAX_PROGRAM_ENV_PARAMS (CR_MAX_VERTEX_PROGRAM_ENV_PARAMS > CR_MAX_FRAGMENT_PROGRAM_ENV_PARAMS ? CR_MAX_VERTEX_PROGRAM_ENV_PARAMS : CR_MAX_FRAGMENT_PROGRAM_ENV_PARAMS) +#endif + + +/* Just need these for autogenerated code in state_get.c, etc */ +#if defined(CR_ARB_vertex_program) || defined(CR_NV_vertex_program) +#define CR_any_vertex_program 1 +#endif + +#if defined(CR_ARB_fragment_program) || defined(CR_NV_fragment_program) +#define CR_any_fragment_program 1 +#endif + +#if defined(CR_any_vertex_program) || defined(CR_any_fragment_program) +#define CR_any_program 1 +#endif + + + +/* + * OpenGL's implementation-dependent values (not part of any attribute group). + */ +typedef struct { + GLuint maxTextureUnits; + GLuint maxTextureSize; + GLuint max3DTextureSize; /* OpenGL 1.2 */ +#ifdef CR_ARB_texture_cube_map + GLuint maxCubeMapTextureSize; +#endif + GLuint maxLights; + GLuint maxClipPlanes; + GLuint maxProjectionStackDepth; + GLuint maxModelviewStackDepth; + GLuint maxTextureStackDepth; + GLuint maxColorStackDepth; /* OpenGL 1.2 */ + GLuint maxAttribStackDepth; + GLuint maxClientAttribStackDepth; + GLuint maxNameStackDepth; + GLuint maxElementsIndices; + GLuint maxElementsVertices; + GLuint maxEvalOrder; + GLuint maxListNesting; + GLuint maxPixelMapTable; + GLint maxViewportDims[2]; + GLuint subpixelBits; + GLfloat aliasedPointSizeRange[2]; + GLfloat smoothPointSizeRange[2]; + GLfloat pointSizeGranularity; + GLfloat aliasedLineWidthRange[2]; + GLfloat smoothLineWidthRange[2]; + GLfloat lineWidthGranularity; +#ifdef CR_EXT_texture_lod_bias + GLfloat maxTextureLodBias; +#endif +#ifdef CR_EXT_texture_filter_anisotropic + GLfloat maxTextureAnisotropy; +#endif +#ifdef CR_ARB_texture_compression + GLuint numCompressedFormats; + GLenum compressedFormats[10]; +#endif +#ifdef CR_NV_register_combiners + GLuint maxGeneralCombiners; +#endif +#ifdef CR_NV_texture_rectangle + GLuint maxRectTextureSize; +#endif +#ifdef CR_NV_fragment_program + GLuint maxTextureCoords; + GLuint maxTextureImageUnits; + /*GLuint maxFragmentProgramLocalParams;*/ +#endif +#ifdef CR_NV_vertex_program + GLuint maxProgramMatrixStackDepth; + GLuint maxProgramMatrices; +#endif +#ifdef CR_ARB_fragment_program + GLuint maxFragmentProgramInstructions; + GLuint maxFragmentProgramLocalParams; + GLuint maxFragmentProgramEnvParams; + GLuint maxFragmentProgramTemps; + GLuint maxFragmentProgramAttribs; + GLuint maxFragmentProgramAddressRegs; + GLuint maxFragmentProgramAluInstructions; + GLuint maxFragmentProgramTexInstructions; + GLuint maxFragmentProgramTexIndirections; +#endif +#ifdef CR_ARB_vertex_program + GLuint maxVertexProgramInstructions; + GLuint maxVertexProgramLocalParams; + GLuint maxVertexProgramEnvParams; + GLuint maxVertexProgramTemps; + GLuint maxVertexProgramAttribs; + GLuint maxVertexProgramAddressRegs; +#endif + const GLubyte *extensions; + + /* Framebuffer/visual attributes */ + GLuint redBits, greenBits, blueBits, alphaBits; + GLuint depthBits, stencilBits, indexBits; + GLuint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits; + GLuint auxBuffers; + GLboolean rgbaMode; + GLboolean doubleBuffer; + GLboolean stereo; + GLuint sampleBuffers; + GLuint samples; + GLuint level; + +} CRLimitsState; + + +/* Booleans to indicate which OpenGL extensions are supported at runtime. + * XXX might merge this into the above structure someday. + */ +typedef struct { + GLboolean ARB_depth_texture; + GLboolean ARB_fragment_program; + GLboolean ARB_imaging; + GLboolean ARB_multisample; + GLboolean ARB_multitexture; + GLboolean ARB_occlusion_query; + GLboolean ARB_point_parameters; + GLboolean ARB_point_sprite; + GLboolean ARB_shadow; + GLboolean ARB_shadow_ambient; + GLboolean ARB_texture_border_clamp; /* or SGIS_texture_border_clamp */ + GLboolean ARB_texture_compression; + GLboolean ARB_texture_cube_map; /* or EXT_texture_cube_map */ + GLboolean ARB_texture_env_add; /* standard in OpenGL 1.3 */ + GLboolean ARB_texture_env_combine; /* standard in OpenGL 1.3 */ + GLboolean ARB_texture_env_crossbar; /* standard in OpenGL 1.4 */ + GLboolean ARB_texture_env_dot3; /* standard in OpenGL 1.3 */ + GLboolean ARB_texture_mirrored_repeat; + GLboolean ARB_texture_non_power_of_two; /* standard in 1.5 */ + GLboolean ARB_transpose_matrix; + GLboolean ARB_vertex_buffer_object; + GLboolean ARB_pixel_buffer_object; + GLboolean ARB_vertex_program; + GLboolean ARB_window_pos; + GLboolean EXT_blend_color; + GLboolean EXT_blend_logic_op; + GLboolean EXT_blend_func_separate; + GLboolean EXT_blend_minmax; + GLboolean EXT_blend_subtract; + GLboolean EXT_clip_volume_hint; + GLboolean EXT_fog_coord; + GLboolean EXT_multi_draw_arrays; + GLboolean EXT_secondary_color; + GLboolean EXT_separate_specular_color; + GLboolean EXT_shadow_funcs; + GLboolean EXT_stencil_wrap; + GLboolean EXT_texture_edge_clamp; /* or SGIS_texture_edge_clamp */ + GLboolean EXT_texture_filter_anisotropic; + GLboolean EXT_texture_lod_bias; + GLboolean EXT_texture3D; + GLboolean IBM_rasterpos_clip; + GLboolean NV_fog_distance; + GLboolean NV_fragment_program; + GLboolean NV_register_combiners; + GLboolean NV_register_combiners2; + GLboolean NV_texgen_reflection; + GLboolean NV_texture_rectangle; + GLboolean NV_vertex_program; + GLboolean NV_vertex_program1_1; + GLboolean NV_vertex_program2; + GLboolean SGIS_generate_mipmap; + GLboolean EXT_texture_from_pixmap; + GLboolean ATI_texture_mirror_once; + + /* derived from above */ + GLboolean any_vertex_program; /* NV or ARB */ + GLboolean any_fragment_program; /* NV or ARB */ + GLboolean any_program; /* vertex or fragment */ +} CRExtensionState; + +extern DECLEXPORT(void) crStateLimitsInit(CRLimitsState *limits); +extern DECLEXPORT(void) crStateLimitsDestroy(CRLimitsState *limits); + +extern DECLEXPORT(void) crStateLimitsPrint(const CRLimitsState *limits); + +extern DECLEXPORT(GLfloat) crStateComputeVersion(float minVersion); + +extern DECLEXPORT(GLubyte *) crStateMergeExtensions(GLuint n, const GLubyte **extensions); + +extern DECLEXPORT(void) crStateExtensionsInit( CRLimitsState *limits, CRExtensionState *extensions ); + + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_FOG_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_line.h b/src/VBox/GuestHost/OpenGL/include/state/cr_line.h new file mode 100644 index 00000000..98a0bd26 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_line.h @@ -0,0 +1,44 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_LINE_H +#define CR_STATE_LINE_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue width[CR_MAX_BITARRAY]; + CRbitvalue stipple[CR_MAX_BITARRAY]; + CRbitvalue dirty[CR_MAX_BITARRAY]; +} CRLineBits; + +typedef struct { + GLboolean lineSmooth; + GLboolean lineStipple; + GLfloat width; + GLushort pattern; + GLint repeat; +} CRLineState; + +DECLEXPORT(void) crStateLineInit (CRContext *ctx); + +DECLEXPORT(void) crStateLineDiff(CRLineBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateLineSwitch(CRLineBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_LINE_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_lists.h b/src/VBox/GuestHost/OpenGL/include/state/cr_lists.h new file mode 100644 index 00000000..f8608db7 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_lists.h @@ -0,0 +1,45 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_LISTS_H +#define CR_STATE_LISTS_H + +#include "cr_hash.h" +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue base[CR_MAX_BITARRAY]; +} CRListsBits; + +typedef struct { + GLboolean newEnd; + GLuint base; /* set by glListBase */ + GLuint currentIndex; /* list currently being built (or zero) */ + GLenum mode; /* GL_COMPILE, GL_COMPILE_AND_EXECUTE or zero */ +} CRListsState; + + +DECLEXPORT(void) crStateListsInit(CRContext *ctx); +DECLEXPORT(void) crStateListsDestroy(CRContext *ctx); + +DECLEXPORT(void) crStateListsDiff(CRListsBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateListsSwitch(CRListsBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_multisample.h b/src/VBox/GuestHost/OpenGL/include/state/cr_multisample.h new file mode 100644 index 00000000..38634ed0 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_multisample.h @@ -0,0 +1,47 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_MULTISAMPLE_H +#define CR_STATE_MULTISAMPLE_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue sampleAlphaToCoverage[CR_MAX_BITARRAY]; + CRbitvalue sampleAlphaToOne[CR_MAX_BITARRAY]; + CRbitvalue sampleCoverage[CR_MAX_BITARRAY]; + CRbitvalue sampleCoverageValue[CR_MAX_BITARRAY]; /* and invert */ +} CRMultisampleBits; + +typedef struct { + GLboolean enabled; + GLboolean sampleAlphaToCoverage; + GLboolean sampleAlphaToOne; + GLboolean sampleCoverage; + GLfloat sampleCoverageValue; + GLboolean sampleCoverageInvert; +} CRMultisampleState; + +DECLEXPORT(void) crStateMultisampleInit(CRContext *ctx); + +DECLEXPORT(void) crStateMultisampleDiff(CRMultisampleBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateMultisampleSwitch(CRMultisampleBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_MULTISAMPLE_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_occlude.h b/src/VBox/GuestHost/OpenGL/include/state/cr_occlude.h new file mode 100644 index 00000000..9791ec6a --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_occlude.h @@ -0,0 +1,58 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_OCCLUSION_H +#define CR_OCCLUSION_H + +#include "cr_hash.h" +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; +} CROcclusionBits; + + +/* + * Occlusion query object. + */ +typedef struct { + GLenum target; + GLuint name; + GLuint refCount; + GLuint passedCounter; + GLboolean active; + CRbitvalue dirty[CR_MAX_BITARRAY]; /* dirty data or state */ + GLintptrARB dirtyStart, dirtyLength; /* dirty region */ +} CROcclusionObject; + + +typedef struct { + CRHashTable *objects; + GLuint currentQueryObject; +} CROcclusionState; + + +DECLEXPORT(void) crStateOcclusionInit(CRContext *ctx); + +DECLEXPORT(void) crStateOcclusionDestroy(CRContext *ctx); + +DECLEXPORT(void) crStateOcclusionDiff(CROcclusionBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateOcclusionSwitch(CROcclusionBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + + +#ifdef __cplusplus +} +#endif + +#endif /* CR_OCCLUSION_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_pixel.h b/src/VBox/GuestHost/OpenGL/include/state/cr_pixel.h new file mode 100644 index 00000000..1afed66e --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_pixel.h @@ -0,0 +1,74 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_PIXEL_H +#define CR_STATE_PIXEL_H + +#include "state/cr_statetypes.h" +#include "state/cr_limits.h" +#include "cr_bits.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue transfer[CR_MAX_BITARRAY]; + CRbitvalue zoom[CR_MAX_BITARRAY]; + CRbitvalue maps[CR_MAX_BITARRAY]; +} CRPixelBits; + +typedef struct { + GLboolean mapColor; + GLboolean mapStencil; + GLint indexShift; + GLint indexOffset; + GLcolorf scale; + GLfloat depthScale; + GLcolorf bias; + GLfloat depthBias; + GLfloat xZoom; + GLfloat yZoom; + + GLint mapItoI[CR_MAX_PIXEL_MAP_TABLE]; + GLint mapStoS[CR_MAX_PIXEL_MAP_TABLE]; + GLfloat mapItoR[CR_MAX_PIXEL_MAP_TABLE]; + GLfloat mapItoG[CR_MAX_PIXEL_MAP_TABLE]; + GLfloat mapItoB[CR_MAX_PIXEL_MAP_TABLE]; + GLfloat mapItoA[CR_MAX_PIXEL_MAP_TABLE]; + GLfloat mapRtoR[CR_MAX_PIXEL_MAP_TABLE]; + GLfloat mapGtoG[CR_MAX_PIXEL_MAP_TABLE]; + GLfloat mapBtoB[CR_MAX_PIXEL_MAP_TABLE]; + GLfloat mapAtoA[CR_MAX_PIXEL_MAP_TABLE]; + + GLint mapItoIsize; + GLint mapStoSsize; + GLint mapItoRsize; + GLint mapItoGsize; + GLint mapItoBsize; + GLint mapItoAsize; + GLint mapRtoRsize; + GLint mapGtoGsize; + GLint mapBtoBsize; + GLint mapAtoAsize; +} CRPixelState; + +DECLEXPORT(void) crStatePixelInit( CRContext *ctx ); + +DECLEXPORT(void) crStatePixelDiff(CRPixelBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStatePixelSwitch(CRPixelBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + + +#endif /* CR_STATE_PIXEL_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_point.h b/src/VBox/GuestHost/OpenGL/include/state/cr_point.h new file mode 100644 index 00000000..1db3f7a1 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_point.h @@ -0,0 +1,62 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_POINT_H +#define CR_STATE_POINT_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue enableSmooth[CR_MAX_BITARRAY]; + CRbitvalue size[CR_MAX_BITARRAY]; +#ifdef CR_ARB_point_parameters + CRbitvalue minSize[CR_MAX_BITARRAY]; + CRbitvalue maxSize[CR_MAX_BITARRAY]; + CRbitvalue fadeThresholdSize[CR_MAX_BITARRAY]; + CRbitvalue distanceAttenuation[CR_MAX_BITARRAY]; +#endif +#ifdef CR_ARB_point_sprite + CRbitvalue enableSprite[CR_MAX_BITARRAY]; + CRbitvalue coordReplacement[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY]; +#endif + CRbitvalue spriteCoordOrigin[CR_MAX_BITARRAY]; + CRbitvalue dirty[CR_MAX_BITARRAY]; +} CRPointBits; + +typedef struct { + GLboolean pointSmooth; + GLfloat pointSize; +#ifdef CR_ARB_point_parameters + GLfloat minSize, maxSize; + GLfloat fadeThresholdSize; + GLfloat distanceAttenuation[3]; +#endif +#ifdef CR_ARB_point_sprite + GLboolean pointSprite; + GLboolean coordReplacement[CR_MAX_TEXTURE_UNITS]; +#endif + GLfloat spriteCoordOrigin; + GLfloat reserved; /* added to make sure alignment of sttructures following CRPointState in CRContext does not change */ +} CRPointState; + +DECLEXPORT(void) crStatePointInit (CRContext *ctx); + +DECLEXPORT(void) crStatePointDiff(CRPointBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStatePointSwitch(CRPointBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_POINT_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h b/src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h new file mode 100644 index 00000000..33cdf79d --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h @@ -0,0 +1,53 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_POLYGON_H +#define CR_STATE_POLYGON_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue offset[CR_MAX_BITARRAY]; + CRbitvalue mode[CR_MAX_BITARRAY]; + CRbitvalue stipple[CR_MAX_BITARRAY]; + CRbitvalue dirty[CR_MAX_BITARRAY]; +} CRPolygonBits; + +typedef struct { + GLboolean polygonSmooth; + GLboolean polygonOffsetFill; + GLboolean polygonOffsetLine; + GLboolean polygonOffsetPoint; + GLboolean polygonStipple; + GLboolean cullFace; + GLfloat offsetFactor; + GLfloat offsetUnits; + GLenum cullFaceMode; + GLenum frontFace; + GLenum frontMode; + GLenum backMode; + GLint stipple[32]; +} CRPolygonState; + +DECLEXPORT(void) crStatePolygonInit(CRContext *ctx); + +DECLEXPORT(void) crStatePolygonDiff(CRPolygonBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStatePolygonSwitch(CRPolygonBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_program.h b/src/VBox/GuestHost/OpenGL/include/state/cr_program.h new file mode 100644 index 00000000..e43dcacd --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_program.h @@ -0,0 +1,142 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_PROGRAM_H +#define CR_STATE_PROGRAM_H + +#include "cr_hash.h" +#include "state/cr_statetypes.h" +#include "state/cr_limits.h" + +#include <iprt/cdefs.h> + +/* + * Dirty bits for per-context program state. Per-program dirty bits + * are in the CRProgram structure. + */ +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue vpEnable[CR_MAX_BITARRAY]; + CRbitvalue fpEnable[CR_MAX_BITARRAY]; + CRbitvalue vpBinding[CR_MAX_BITARRAY]; + CRbitvalue fpBinding[CR_MAX_BITARRAY]; + CRbitvalue vertexAttribArrayEnable[CR_MAX_VERTEX_ATTRIBS][CR_MAX_BITARRAY]; + CRbitvalue map1AttribArrayEnable[CR_MAX_VERTEX_ATTRIBS][CR_MAX_BITARRAY]; + CRbitvalue map2AttribArrayEnable[CR_MAX_VERTEX_ATTRIBS][CR_MAX_BITARRAY]; + /* per-param flags: */ + CRbitvalue vertexEnvParameter[CR_MAX_VERTEX_PROGRAM_ENV_PARAMS][CR_MAX_BITARRAY]; + CRbitvalue fragmentEnvParameter[CR_MAX_FRAGMENT_PROGRAM_ENV_PARAMS][CR_MAX_BITARRAY]; + /* any param flags: */ + CRbitvalue vertexEnvParameters[CR_MAX_BITARRAY]; + CRbitvalue fragmentEnvParameters[CR_MAX_BITARRAY]; + CRbitvalue trackMatrix[CR_MAX_VERTEX_PROGRAM_ENV_PARAMS / 4][CR_MAX_BITARRAY]; +} CRProgramBits; + + +/* + * Fragment programs have named symbols which are defined/declared + * within the fragment program that can also be set with the + * glProgramNamedParameter4*NV() functions. + * We keep a linked list of these CRProgramSymbol structures to implement + * a symbol table. A simple linked list is sufficient since a fragment + * program typically has just a few symbols. + */ +typedef struct CRProgramSymbol { + const char *name; + GLuint cbName; + GLfloat value[4]; + CRbitvalue dirty[CR_MAX_BITARRAY]; + struct CRProgramSymbol *next; +} CRProgramSymbol; + + +/* + * A vertex or fragment program. + */ +typedef struct { + GLenum target; + GLuint id; + GLboolean isARBprogram; /* to distinguish between NV and ARB programs */ + const GLubyte *string; + GLsizei length; + GLboolean resident; + GLenum format; + + /* Set with ProgramNamedParameterNV */ + struct CRProgramSymbol *symbolTable; + + /* Set with ProgramLocalParameterARB: */ + GLfloat parameters[CR_MAX_PROGRAM_LOCAL_PARAMS][4]; + + /* ARB info (this could be impossible to implement without parsing */ + GLint numInstructions; + GLint numTemporaries; + GLint numParameters; + GLint numAttributes; + GLint numAddressRegs; + GLint numAluInstructions; + GLint numTexInstructions; + GLint numTexIndirections; + + CRbitvalue dirtyNamedParams[CR_MAX_BITARRAY]; + CRbitvalue dirtyParam[CR_MAX_PROGRAM_LOCAL_PARAMS][CR_MAX_BITARRAY]; + CRbitvalue dirtyParams[CR_MAX_BITARRAY]; + CRbitvalue dirtyProgram[CR_MAX_BITARRAY]; +} CRProgram; + + + +typedef struct { + CRProgram *currentVertexProgram; + CRProgram *currentFragmentProgram; + GLint errorPos; + const GLubyte *errorString; + GLboolean loadedProgram; /* XXX temporary */ + + CRProgram *defaultVertexProgram; + CRProgram *defaultFragmentProgram; + + /* tracking matrices for vertex programs */ +#ifdef VBOX /* see state_program.c */ + GLenum TrackMatrix[CR_MAX_VERTEX_PROGRAM_ENV_PARAMS / 4]; + GLenum TrackMatrixTransform[CR_MAX_VERTEX_PROGRAM_ENV_PARAMS / 4]; +#else + GLenum TrackMatrix[CR_MAX_VERTEX_PROGRAM_LOCAL_PARAMS / 4]; + GLenum TrackMatrixTransform[CR_MAX_VERTEX_PROGRAM_LOCAL_PARAMS / 4]; +#endif + + /* global/env params shared by all programs */ + GLfloat fragmentParameters[CR_MAX_FRAGMENT_PROGRAM_ENV_PARAMS][4]; + GLfloat vertexParameters[CR_MAX_VERTEX_PROGRAM_ENV_PARAMS][4]; + + CRHashTable *programHash; /* XXX belongs in shared state, actually */ + + GLuint vpProgramBinding; + GLuint fpProgramBinding; + GLboolean vpEnabled; /* GL_VERTEX_PROGRAM_NV / ARB*/ + GLboolean fpEnabled; /* GL_FRAGMENT_PROGRAM_NV */ + GLboolean fpEnabledARB; /* GL_FRAGMENT_PROGRAM_ARB */ + GLboolean vpPointSize; /* GL_VERTEX_PROGRAM_NV */ + GLboolean vpTwoSide; /* GL_VERTEX_PROGRAM_NV */ + + /* Indicates that we have to resend program data to GPU on first glMakeCurrent call with owning context */ + GLboolean bResyncNeeded; + +} CRProgramState; + + + +extern DECLEXPORT(void) crStateProgramInit(CRContext *ctx); +extern DECLEXPORT(void) crStateProgramDestroy(CRContext *ctx); + +extern DECLEXPORT(void) crStateProgramDiff(CRProgramBits *b, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +extern DECLEXPORT(void) crStateProgramSwitch(CRProgramBits *b, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +DECLEXPORT(void) crStateDiffAllPrograms(CRContext *g, CRbitvalue *bitID, GLboolean bForceUpdate); + +#endif /* CR_STATE_PROGRAM_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_regcombiner.h b/src/VBox/GuestHost/OpenGL/include/state/cr_regcombiner.h new file mode 100644 index 00000000..69af2a93 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_regcombiner.h @@ -0,0 +1,71 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_REGCOMBINER_H +#define CR_STATE_REGCOMBINER_H + +#include "state/cr_statetypes.h" +#include "state/cr_limits.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + GLenum a, b, c, d; + GLenum aMapping, bMapping, cMapping, dMapping; + GLenum aPortion, bPortion, cPortion, dPortion; + GLenum scale, bias; + GLenum abOutput, cdOutput, sumOutput; + GLboolean abDotProduct, cdDotProduct, muxSum; +} CRRegCombinerPortionState; + +typedef struct { + GLboolean enabledRegCombiners; + GLboolean enabledPerStageConstants; + + GLcolorf constantColor0; + GLcolorf constantColor1; + GLcolorf stageConstantColor0[CR_MAX_GENERAL_COMBINERS]; + GLcolorf stageConstantColor1[CR_MAX_GENERAL_COMBINERS]; + GLboolean colorSumClamp; + GLint numGeneralCombiners; + + CRRegCombinerPortionState rgb[CR_MAX_GENERAL_COMBINERS]; + CRRegCombinerPortionState alpha[CR_MAX_GENERAL_COMBINERS]; + + GLenum a, b, c, d, e, f, g; + GLenum aMapping, bMapping, cMapping, dMapping, eMapping, fMapping, gMapping; + GLenum aPortion, bPortion, cPortion, dPortion, ePortion, fPortion, gPortion; +} CRRegCombinerState; + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue regCombinerVars[CR_MAX_BITARRAY]; /* numGeneralCombiners, colorSumClamp */ + CRbitvalue regCombinerColor0[CR_MAX_BITARRAY]; + CRbitvalue regCombinerColor1[CR_MAX_BITARRAY]; + CRbitvalue regCombinerStageColor0[CR_MAX_GENERAL_COMBINERS][CR_MAX_BITARRAY]; + CRbitvalue regCombinerStageColor1[CR_MAX_GENERAL_COMBINERS][CR_MAX_BITARRAY]; + CRbitvalue regCombinerInput[CR_MAX_GENERAL_COMBINERS][CR_MAX_BITARRAY]; /* rgb/alpha[].a/b/c/d, .aMapping, .aPortion */ + CRbitvalue regCombinerOutput[CR_MAX_GENERAL_COMBINERS][CR_MAX_BITARRAY]; /* rgb/alpha[].abOutput, .cdOutput, .sumOutput, .scale, .bias, .abDotProduct, .cdDotProduct, .muxSum */ + CRbitvalue regCombinerFinalInput[CR_MAX_BITARRAY]; /* a/b/c/d/e/f/g, aMapping, aPortion */ +} CRRegCombinerBits; + +DECLEXPORT(void) crStateRegCombinerInit( CRContext *ctx ); + +DECLEXPORT(void) crStateRegCombinerDiff(CRRegCombinerBits *b, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateRegCombinerSwitch( CRRegCombinerBits *b, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx ); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_REGCOMBINER_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_stateerror.h b/src/VBox/GuestHost/OpenGL/include/state/cr_stateerror.h new file mode 100644 index 00000000..d903e8a9 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_stateerror.h @@ -0,0 +1,16 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_ERROR_H +#define CR_STATE_ERROR_H + +#include "chromium.h" + +#include <iprt/cdefs.h> + +DECLEXPORT(void) crStateError( int line, const char *file, GLenum err, const char *format, ... ); + +#endif /* CR_STATE_ERROR_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_statetypes.h b/src/VBox/GuestHost/OpenGL/include/state/cr_statetypes.h new file mode 100644 index 00000000..4dad5ca6 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_statetypes.h @@ -0,0 +1,209 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_TYPES_H +#define CR_STATE_TYPES_H + +#include "chromium.h" +#include "cr_bits.h" +#include "cr_matrix.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef GLfloat GLdefault; +#define CR_DEFAULTTYPE_FLOAT + +#define CR_MAXBYTE ((GLbyte) 0x7F) +#define CR_MAXUBYTE ((GLubyte) 0xFF) +#define CR_MAXSHORT ((GLshort) 0x7FFF) +#define CR_MAXUSHORT ((GLushort) 0xFFFF) +#define CR_MAXINT ((GLint) 0x7FFFFFFF) +#define CR_MAXUINT ((GLuint) 0xFFFFFFFF) +#define CR_MAXFLOAT 1.0f +#define CR_MAXDOUBLE 1.0 + +#define CRBITS_LENGTH 32 +#define CRBITS_ONES 0xFFFFFFFF +typedef unsigned int CRbitvalue; + +typedef struct { + GLfloat x1, x2, y1, y2; +} CRrectf; + +typedef struct { + GLint x1, y1, x2, y2; +} CRrecti; + +#define VECTOR(type, name) typedef struct { type x,y,z,w; } name +#define COLOR(type, name) typedef struct { type r,g,b,a; } name +#define TEXCOORD(type, name) typedef struct { type s,t,r,q; } name + +VECTOR(GLdefault,GLvector); +VECTOR(GLenum,GLvectore); +VECTOR(GLubyte,GLvectorub); +VECTOR(GLbyte,GLvectorb); +VECTOR(GLushort,GLvectorus); +VECTOR(GLshort,GLvectors); +VECTOR(GLint,GLvectori); +VECTOR(GLuint,GLvectorui); +/* These two are defined in cr_matrix.h */ +/* VECTOR(GLfloat,GLvectorf); */ +/* VECTOR(GLdouble,GLvectord); */ +COLOR(GLdefault,GLcolor); +COLOR(GLenum,GLcolore); +COLOR(GLubyte,GLcolorub); +COLOR(GLbyte,GLcolorb); +COLOR(GLushort,GLcolorus); +COLOR(GLshort,GLcolors); +COLOR(GLint,GLcolori); +COLOR(GLuint,GLcolorui); +COLOR(GLfloat,GLcolorf); +COLOR(GLdouble,GLcolord); +TEXCOORD(GLdefault,GLtexcoord); +TEXCOORD(GLenum,GLtexcoorde); +TEXCOORD(GLubyte,GLtexcoordub); +TEXCOORD(GLbyte,GLtexcoordb); +TEXCOORD(GLushort,GLtexcoordus); +TEXCOORD(GLshort,GLtexcoords); +TEXCOORD(GLint,GLtexcoordi); +TEXCOORD(GLuint,GLtexcoordui); +TEXCOORD(GLfloat,GLtexcoordf); +TEXCOORD(GLdouble,GLtexcoordd); + +#undef VECTOR +#undef COLOR +#undef TEXCOORD + +#define COMPARE_VECTOR(a,b) ((a)[0] != (b)[0] || (a)[1] != (b)[1] || (a)[2] != (b)[2] || (a)[3] != (b)[3]) +#define COMPARE_TEXCOORD(a,b) ((a)[0] != (b)[0] || (a)[1] != (b)[1] || (a)[2] != (b)[2] || (a)[3] != (b)[3]) +#define COMPARE_COLOR(x,y) ((x)[0] != (y)[0] || (x)[1] != (y)[1] || (x)[2] != (y)[2] || (x)[3] != (y)[3]) + +/* Assign scalers to short vectors: */ +#define ASSIGN_2V( V, V0, V1 ) \ +do { \ + (V)[0] = V0; \ + (V)[1] = V1; \ +} while(0) + +#define ASSIGN_3V( V, V0, V1, V2 ) \ +do { \ + (V)[0] = V0; \ + (V)[1] = V1; \ + (V)[2] = V2; \ +} while(0) + +#define ASSIGN_4V( V, V0, V1, V2, V3 ) \ +do { \ + (V)[0] = V0; \ + (V)[1] = V1; \ + (V)[2] = V2; \ + (V)[3] = V3; \ +} while(0) + + +/* Copy short vectors: */ +#define COPY_2V( DST, SRC ) \ +do { \ + (DST)[0] = (SRC)[0]; \ + (DST)[1] = (SRC)[1]; \ +} while (0) + +#define COPY_3V( DST, SRC ) \ +do { \ + (DST)[0] = (SRC)[0]; \ + (DST)[1] = (SRC)[1]; \ + (DST)[2] = (SRC)[2]; \ +} while (0) + +#define COPY_4V( DST, SRC ) \ +do { \ + (DST)[0] = (SRC)[0]; \ + (DST)[1] = (SRC)[1]; \ + (DST)[2] = (SRC)[2]; \ + (DST)[3] = (SRC)[3]; \ +} while (0) + +#define COPY_2V_CAST( DST, SRC, CAST ) \ +do { \ + (DST)[0] = (CAST)(SRC)[0]; \ + (DST)[1] = (CAST)(SRC)[1]; \ +} while (0) + +#define COPY_3V_CAST( DST, SRC, CAST ) \ +do { \ + (DST)[0] = (CAST)(SRC)[0]; \ + (DST)[1] = (CAST)(SRC)[1]; \ + (DST)[2] = (CAST)(SRC)[2]; \ +} while (0) + +#define COPY_4V_CAST( DST, SRC, CAST ) \ +do { \ + (DST)[0] = (CAST)(SRC)[0]; \ + (DST)[1] = (CAST)(SRC)[1]; \ + (DST)[2] = (CAST)(SRC)[2]; \ + (DST)[3] = (CAST)(SRC)[3]; \ +} while (0) + +#if defined(__i386__) +#define COPY_4UBV(DST, SRC) \ +do { \ + *((GLuint*)(DST)) = *((GLuint*)(SRC)); \ +} while (0) +#else +/* The GLuint cast might fail if DST or SRC are not dword-aligned (RISC) */ +#define COPY_4UBV(DST, SRC) \ +do { \ + (DST)[0] = (SRC)[0]; \ + (DST)[1] = (SRC)[1]; \ + (DST)[2] = (SRC)[2]; \ + (DST)[3] = (SRC)[3]; \ +} while (0) +#endif + +#define COPY_2FV( DST, SRC ) \ +do { \ + const GLfloat *_tmp = (SRC); \ + (DST)[0] = _tmp[0]; \ + (DST)[1] = _tmp[1]; \ +} while (0) + +#define COPY_3FV( DST, SRC ) \ +do { \ + const GLfloat *_tmp = (SRC); \ + (DST)[0] = _tmp[0]; \ + (DST)[1] = _tmp[1]; \ + (DST)[2] = _tmp[2]; \ +} while (0) + +#define COPY_4FV( DST, SRC ) \ +do { \ + const GLfloat *_tmp = (SRC); \ + (DST)[0] = _tmp[0]; \ + (DST)[1] = _tmp[1]; \ + (DST)[2] = _tmp[2]; \ + (DST)[3] = _tmp[3]; \ +} while (0) + + + +#define COPY_SZ_4V(DST, SZ, SRC) \ +do { \ + switch (SZ) { \ + case 4: (DST)[3] = (SRC)[3]; \ + case 3: (DST)[2] = (SRC)[2]; \ + case 2: (DST)[1] = (SRC)[1]; \ + case 1: (DST)[0] = (SRC)[0]; \ + } \ +} while(0) + + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_TYPES_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_stencil.h b/src/VBox/GuestHost/OpenGL/include/state/cr_stencil.h new file mode 100644 index 00000000..27823eb2 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_stencil.h @@ -0,0 +1,107 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_STENCIL_H +#define CR_STATE_STENCIL_H + +#include "cr_glstate.h" +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> +#include <iprt/assert.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define CRSTATE_STENCIL_BUFFER_ID_FRONT 0 +#define CRSTATE_STENCIL_BUFFER_ID_BACK 1 +#define CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK 2 +#define CRSTATE_STENCIL_BUFFER_COUNT 3 + +/* stencil buffer settings were accessed with StencilXxx with ActiveStencilFaceEXT == GL_FRONT or StencilXxxSeparate(GL_FRONT_AND_BACK) */ +#define CRSTATE_STENCIL_BUFFER_REF_ID_FRONT_AND_BACK 0 +/* stencil buffer settings were accessed with StencilXxxSeparate(GL_FRONT_FRONT) */ +#define CRSTATE_STENCIL_BUFFER_REF_ID_FRONT 1 +/* stencil buffer settings were accessed with StencilXxxSeparate(GL_FRONT_BACK) */ +#define CRSTATE_STENCIL_BUFFER_REF_ID_BACK 2 +/* stencil buffer settings were accessed with StencilXxx with ActiveStencilFaceEXT == GL_BACK */ +#define CRSTATE_STENCIL_BUFFER_REF_ID_TWO_SIDE_BACK 3 +#define CRSTATE_STENCIL_BUFFER_REF_COUNT 4 + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue func[CR_MAX_BITARRAY]; + CRbitvalue op[CR_MAX_BITARRAY]; + CRbitvalue clearValue[CR_MAX_BITARRAY]; + CRbitvalue writeMask[CR_MAX_BITARRAY]; +} CRStencilBits_v_33; + +typedef struct { + CRbitvalue func[CR_MAX_BITARRAY]; + CRbitvalue op[CR_MAX_BITARRAY]; +} CRStencilBufferRefBits; + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue enableTwoSideEXT[CR_MAX_BITARRAY]; + CRbitvalue activeStencilFace[CR_MAX_BITARRAY]; + CRbitvalue clearValue[CR_MAX_BITARRAY]; + CRbitvalue writeMask[CR_MAX_BITARRAY]; + /* note: here we use _BUFFER_REF_ rather than _REF_ because we track the way buffers are accessed here, + * to ensure the correct function is called on hw->chromium state restoration, + * i.e. we want to avoid always calling StencilXxxSeparate, but call StencilXxx when it was actually called */ + CRStencilBufferRefBits bufferRefs[CRSTATE_STENCIL_BUFFER_REF_COUNT]; +} CRStencilBits; + +typedef struct { + GLboolean stencilTest; + GLenum func; + GLint mask; + GLint ref; + GLenum fail; + GLenum passDepthFail; + GLenum passDepthPass; + GLint clearValue; + GLint writeMask; +} CRStencilState_v_33; + +typedef struct { + GLenum func; + GLint mask; + GLint ref; + GLenum fail; + GLenum passDepthFail; + GLenum passDepthPass; +} CRStencilBufferState; + +typedef struct { + /* true if stencil test is enabled */ + GLboolean stencilTest; + /* true if GL_EXT_stencil_two_side is enabled (glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT)) */ + GLboolean stencilTwoSideEXT; + /* GL_FRONT or GL_BACK */ + GLenum activeStencilFace; + GLint clearValue; + GLint writeMask; + CRStencilBufferState buffers[CRSTATE_STENCIL_BUFFER_COUNT]; +} CRStencilState; + +DECLEXPORT(void) crStateStencilInit(CRContext *ctx); +DECLEXPORT(void) crStateStencilBufferInit(CRStencilBufferState *s); + +DECLEXPORT(void) crStateStencilDiff(CRStencilBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateStencilSwitch(CRStencilBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_STENCIL_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_texture.h b/src/VBox/GuestHost/OpenGL/include/state/cr_texture.h new file mode 100644 index 00000000..707db996 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_texture.h @@ -0,0 +1,250 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_TEXTURE_H +#define CR_STATE_TEXTURE_H + +#include "cr_hash.h" +#include "state/cr_statetypes.h" +#include "state/cr_limits.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Tells state tracker to rely on diff_api to store/load texture images + * and avoid host memory allocation. + */ +#define CR_STATE_NO_TEXTURE_IMAGE_STORE + +#if defined(CR_ARB_pixel_buffer_object) && !defined(CR_STATE_NO_TEXTURE_IMAGE_STORE) +#error CR_ARB_pixel_buffer_object not supported without CR_STATE_NO_TEXTURE_IMAGE_STORE +#endif + +#define CR_MAX_MIPMAP_LEVELS 20 + +typedef struct { + GLubyte redbits; + GLubyte greenbits; + GLubyte bluebits; + GLubyte alphabits; + GLubyte luminancebits; + GLubyte intensitybits; + GLubyte indexbits; +} CRTextureFormat; + +typedef struct { + GLubyte *img; + int bytes; + GLint width; /* width, height, depth includes the border */ + GLint height; + GLint depth; + GLint internalFormat; + GLint border; + GLenum format; + GLenum type; + int bytesPerPixel; +#if CR_ARB_texture_compression + GLboolean compressed; +#endif + GLboolean generateMipmap; + const CRTextureFormat *texFormat; + + CRbitvalue dirty[CR_MAX_BITARRAY]; +} CRTextureLevel; + +typedef struct { + GLenum target; + GLuint id; + GLuint hwid; + + /* The mipmap levels */ + CRTextureLevel *level[6]; /* 6 cube faces */ + + GLcolorf borderColor; + GLenum minFilter, magFilter; + GLenum wrapS, wrapT; +#ifdef CR_OPENGL_VERSION_1_2 + GLenum wrapR; + GLfloat priority; + GLfloat minLod; + GLfloat maxLod; + GLint baseLevel; + GLint maxLevel; +#endif +#ifdef CR_EXT_texture_filter_anisotropic + GLfloat maxAnisotropy; +#endif +#ifdef CR_ARB_depth_texture + GLenum depthMode; +#endif +#ifdef CR_ARB_shadow + GLenum compareMode; + GLenum compareFunc; +#endif +#ifdef CR_ARB_shadow_ambient + GLfloat compareFailValue; +#endif +#ifdef CR_SGIS_generate_mipmap + GLboolean generateMipmap; +#endif + GLboolean pinned; /* <- keep the texture alive if its ctxUsage reaches zero */ + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue imageBit[CR_MAX_BITARRAY]; + CRbitvalue paramsBit[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY]; + /* bitfield representing the object usage. 1 means the object is used by the context with the given bitid */ + CRbitvalue ctxUsage[CR_MAX_BITARRAY]; +} CRTextureObj; + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY]; + CRbitvalue current[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY]; + CRbitvalue objGen[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY]; + CRbitvalue eyeGen[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY]; + CRbitvalue genMode[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY]; + /* XXX someday create more bits for texture env state */ + CRbitvalue envBit[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY]; +} CRTextureBits; + +typedef struct { + /* Current texture objects (in terms of glBindTexture and glActiveTexture) */ + CRTextureObj *currentTexture1D; + CRTextureObj *currentTexture2D; + CRTextureObj *currentTexture3D; +#ifdef CR_ARB_texture_cube_map + CRTextureObj *currentTextureCubeMap; +#endif +#ifdef CR_NV_texture_rectangle + CRTextureObj *currentTextureRect; +#endif + + GLboolean enabled1D; + GLboolean enabled2D; + GLboolean enabled3D; +#ifdef CR_ARB_texture_cube_map + GLboolean enabledCubeMap; +#endif +#ifdef CR_NV_texture_rectangle + GLboolean enabledRect; +#endif +#ifdef CR_EXT_texture_lod_bias + GLfloat lodBias; +#endif + + GLenum envMode; + GLcolorf envColor; + + /* GL_ARB_texture_env_combine */ + GLenum combineModeRGB; /* GL_REPLACE, GL_DECAL, GL_ADD, etc. */ + GLenum combineModeA; /* GL_REPLACE, GL_DECAL, GL_ADD, etc. */ + GLenum combineSourceRGB[3]; /* GL_PRIMARY_COLOR, GL_TEXTURE, etc. */ + GLenum combineSourceA[3]; /* GL_PRIMARY_COLOR, GL_TEXTURE, etc. */ + GLenum combineOperandRGB[3]; /* SRC_COLOR, ONE_MINUS_SRC_COLOR, etc */ + GLenum combineOperandA[3]; /* SRC_ALPHA, ONE_MINUS_SRC_ALPHA, etc */ + GLfloat combineScaleRGB; /* 1 or 2 or 4 */ + GLfloat combineScaleA; /* 1 or 2 or 4 */ + + GLtexcoordb textureGen; + GLvectorf objSCoeff; + GLvectorf objTCoeff; + GLvectorf objRCoeff; + GLvectorf objQCoeff; + GLvectorf eyeSCoeff; + GLvectorf eyeTCoeff; + GLvectorf eyeRCoeff; + GLvectorf eyeQCoeff; + GLtexcoorde gen; + + /* These are only used for glPush/PopAttrib */ + CRTextureObj Saved1D; + CRTextureObj Saved2D; + CRTextureObj Saved3D; +#ifdef CR_ARB_texture_cube_map + CRTextureObj SavedCubeMap; +#endif +#ifdef CR_NV_texture_rectangle + CRTextureObj SavedRect; +#endif +} CRTextureUnit; + +typedef struct { + /* Default texture objects (name = 0) */ + CRTextureObj base1D; + CRTextureObj base2D; + CRTextureObj base3D; +#ifdef CR_ARB_texture_cube_map + CRTextureObj baseCubeMap; +#endif +#ifdef CR_NV_texture_rectangle + CRTextureObj baseRect; +#endif + + /* Proxy texture objects */ + CRTextureObj proxy1D; + CRTextureObj proxy2D; + CRTextureObj proxy3D; +#ifdef CR_ARB_texture_cube_map + CRTextureObj proxyCubeMap; +#endif +#ifdef CR_NV_texture_rectangle + CRTextureObj proxyRect; +#endif + + GLuint curTextureUnit; /* GL_ACTIVE_TEXTURE */ + + GLint maxLevel; /* number of mipmap levels possible: [0..max] */ + GLint max3DLevel; + GLint maxCubeMapLevel; + GLint maxRectLevel; + + GLboolean broadcastTextures; /*@todo what is it for?*/ + + /* Per-texture unit state: */ + CRTextureUnit unit[CR_MAX_TEXTURE_UNITS]; +} CRTextureState; + +DECLEXPORT(void) crStateTextureInit(CRContext *ctx); +DECLEXPORT(void) crStateTextureDestroy(CRContext *ctx); +DECLEXPORT(void) crStateTextureFree(CRContext *ctx); + +DECLEXPORT(void) crStateTextureInitTexture(GLuint name); +DECLEXPORT(CRTextureObj *) crStateTextureAllocate(GLuint name); + /*void crStateTextureDelete(GLuint name);*/ +DECLEXPORT(CRTextureObj *) crStateTextureGet(GLenum target, GLuint textureid); +DECLEXPORT(int) crStateTextureGetSize(GLenum target, GLenum level); +DECLEXPORT(const GLvoid *) crStateTextureGetData(GLenum target, GLenum level); + +DECLEXPORT(int) crStateTextureCheckDirtyImages(CRContext *from, CRContext *to, GLenum target, int textureUnit); + +DECLEXPORT(void) crStateTextureDiff(CRTextureBits *t, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateTextureSwitch(CRTextureBits *t, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +DECLEXPORT(void) crStateTextureObjectDiff(CRContext *fromCtx, + const CRbitvalue *bitID, + const CRbitvalue *nbitID, + CRTextureObj *tobj, GLboolean alwaysDirty); + +DECLEXPORT(void) crStateDiffAllTextureObjects( CRContext *g, CRbitvalue *bitID, GLboolean bForceUpdate ); + +DECLEXPORT(void) crStateDeleteTextureObjectData(CRTextureObj *tobj); +DECLEXPORT(void) crStateDeleteTextureObject(CRTextureObj *tobj); + +DECLEXPORT(GLuint) STATE_APIENTRY crStateTextureHWIDtoID(GLuint hwid); +DECLEXPORT(GLuint) STATE_APIENTRY crStateGetTextureHWID(GLuint id); +DECLEXPORT(GLuint) STATE_APIENTRY crStateGetTextureObjHWID(CRTextureObj *tobj); + +void crStateRegTextures(GLsizei n, GLuint *names); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_TEXTURE_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_transform.h b/src/VBox/GuestHost/OpenGL/include/state/cr_transform.h new file mode 100644 index 00000000..66e4709e --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_transform.h @@ -0,0 +1,91 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef GLTRANS_H +#define GLTRANS_H + +#include "state/cr_statetypes.h" + +#include <iprt/cdefs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define NUM_MATRICES 4 + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue *currentMatrix; /* points to one of the following */ + CRbitvalue matrixMode[CR_MAX_BITARRAY]; + CRbitvalue modelviewMatrix[CR_MAX_BITARRAY]; + CRbitvalue projectionMatrix[CR_MAX_BITARRAY]; + CRbitvalue colorMatrix[CR_MAX_BITARRAY]; + CRbitvalue textureMatrix[CR_MAX_BITARRAY]; + CRbitvalue programMatrix[CR_MAX_BITARRAY]; + CRbitvalue clipPlane[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue base[CR_MAX_BITARRAY]; +} CRTransformBits; + +typedef struct { + CRmatrix *top; /* points into stack */ + CRmatrix *stack; /* array [maxDepth] of CRmatrix */ + GLuint depth; /* 0 <= depth < maxDepth */ + GLuint maxDepth; /* size of stack[] array */ +} CRMatrixStack; + +typedef struct { + GLvectord *clipPlane; + GLboolean *clip; + + GLenum matrixMode; + + /* matrix stacks */ + CRMatrixStack modelViewStack; + CRMatrixStack projectionStack; + CRMatrixStack colorStack; + CRMatrixStack textureStack[CR_MAX_TEXTURE_UNITS]; + CRMatrixStack programStack[CR_MAX_PROGRAM_MATRICES]; + CRMatrixStack *currentStack; + + GLboolean modelViewProjectionValid; + CRmatrix modelViewProjection; /* product of modelview and projection */ + +#ifdef CR_OPENGL_VERSION_1_2 + GLboolean rescaleNormals; +#endif +#ifdef CR_IBM_rasterpos_clip + GLboolean rasterPositionUnclipped; +#endif + GLboolean normalize; +} CRTransformState; + + +DECLEXPORT(void) crStateTransformInit(CRContext *ctx); +DECLEXPORT(void) crStateTransformDestroy(CRContext *ctx); + +DECLEXPORT(void) crStateInitMatrixStack(CRMatrixStack *stack, int maxDepth); + +DECLEXPORT(void) crStateLoadMatrix(const CRmatrix *m); + +DECLEXPORT(void) crStateTransformUpdateTransform(CRTransformState *t); +DECLEXPORT(void) crStateTransformXformPoint(CRTransformState *t, GLvectorf *p); + +DECLEXPORT(void) crStateTransformXformPointMatrixf(const CRmatrix *m, GLvectorf *p); +DECLEXPORT(void) crStateTransformXformPointMatrixd(const CRmatrix *m, GLvectord *p); + +DECLEXPORT(void) crStateTransformDiff(CRTransformBits *t, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +DECLEXPORT(void) crStateTransformSwitch(CRTransformBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_TRANSFORM_H */ diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_viewport.h b/src/VBox/GuestHost/OpenGL/include/state/cr_viewport.h new file mode 100644 index 00000000..6ea7b7a2 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/include/state/cr_viewport.h @@ -0,0 +1,57 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved. + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#ifndef CR_STATE_VIEWPORT_H +#define CR_STATE_VIEWPORT_H + +#include "state/cr_statetypes.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + CRbitvalue dirty[CR_MAX_BITARRAY]; + CRbitvalue v_dims[CR_MAX_BITARRAY]; + CRbitvalue s_dims[CR_MAX_BITARRAY]; + CRbitvalue enable[CR_MAX_BITARRAY]; + CRbitvalue depth[CR_MAX_BITARRAY]; +} CRViewportBits; + +typedef struct { + /* Viewport state */ + GLint viewportX; + GLint viewportY; + GLint viewportW; + GLint viewportH; + GLclampd nearClip; + GLclampd farClip; + GLboolean viewportValid; + + /* Scissor state */ + GLboolean scissorTest; + GLint scissorX; + GLint scissorY; + GLsizei scissorW; + GLsizei scissorH; + GLboolean scissorValid; +} CRViewportState; + +DECLEXPORT(void) crStateViewportInit(CRContext *ctx); + +DECLEXPORT(void) crStateViewportApply( CRViewportState *v, GLvectorf *p ); +DECLEXPORT(void) crStateViewportMakeCurrent(CRViewportState *v, CRViewportBits *vb); + +DECLEXPORT(void) crStateViewportDiff(CRViewportBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); +DECLEXPORT(void) crStateViewportSwitch(CRViewportBits *bb, CRbitvalue *bitID, + CRContext *fromCtx, CRContext *toCtx); + +#ifdef __cplusplus +} +#endif + +#endif /* CR_STATE_VIEWPORT_H */ |